Uploaded image for project: 'Jenkins Website'
  1. Jenkins Website
  2. WEBSITE-494

Jenkins.io local run: NoMethodError: undefined method `[]' for nil:NilClass

    Details

    • Type: Bug
    • Status: Done (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: core
    • Labels:
      None
    • Similar Issues:

      Description

      Jenkins.io local run does not longer work for me:

      15:33:53 - INFO - LiveReload is waiting for a browser to connect.
      [2018-06-11 15:34:01] INFO  WEBrick 1.3.1
      [2018-06-11 15:34:01] INFO  ruby 2.3.6 (2017-12-14) [x86_64-linux]
      [2018-06-11 15:34:01] INFO  WEBrick::HTTPServer#start: pid=1 port=4242
      [2018-06-11 15:34:37] ERROR NoMethodError: undefined method `[]' for nil:NilClass
      	/Users/nenashev/Documents/jenkins/infra/jenkins.io/vendor/gems/ruby/2.3.0/gems/awestruct-0.5.7/lib/awestruct/rack/generate.rb:19:in `call'
      	/Users/nenashev/Documents/jenkins/infra/jenkins.io/vendor/gems/ruby/2.3.0/gems/rack-1.6.8/lib/rack/builder.rb:153:in `call'
      	/Users/nenashev/Documents/jenkins/infra/jenkins.io/vendor/gems/ruby/2.3.0/gems/rack-1.6.8/lib/rack/handler/webrick.rb:88:in `service'
      	/usr/local/lib/ruby/2.3.0/webrick/httpserver.rb:140:in `service'
      	/usr/local/lib/ruby/2.3.0/webrick/httpserver.rb:96:in `run'
      	/usr/local/lib/ruby/2.3.0/webrick/server.rb:314:in `block in start_thread'
      	/Users/nenashev/Documents/jenkins/infra/jenkins.io/vendor/gems/ruby/2.3.0/gems/logging-2.2.2/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context'
      172.17.0.1 - - [11/Jun/2018:15:34:37 UTC] "GET /projects/gsoc/ HTTP/1.1" 500 318
      - -> /projects/gsoc/
      [2018-06-11 15:34:37] ERROR NoMethodError: undefined method `[]' for nil:NilClass
      	/Users/nenashev/Documents/jenkins/infra/jenkins.io/vendor/gems/ruby/2.3.0/gems/awestruct-0.5.7/lib/awestruct/rack/generate.rb:19:in `call'
      	/Users/nenashev/Documents/jenkins/infra/jenkins.io/vendor/gems/ruby/2.3.0/gems/rack-1.6.8/lib/rack/builder.rb:153:in `call'
      	/Users/nenashev/Documents/jenkins/infra/jenkins.io/vendor/gems/ruby/2.3.0/gems/rack-1.6.8/lib/rack/handler/webrick.rb:88:in `service'
      	/usr/local/lib/ruby/2.3.0/webrick/httpserver.rb:140:in `service'
      	/usr/local/lib/ruby/2.3.0/webrick/httpserver.rb:96:in `run'
      	/usr/local/lib/ruby/2.3.0/webrick/server.rb:314:in `block in start_thread'
      	/Users/nenashev/Documents/jenkins/infra/jenkins.io/vendor/gems/ruby/2.3.0/gems/logging-2.2.2/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context'
      172.17.0.1 - - [11/Jun/2018:15:34:37 UTC] "GET /favicon.ico HTTP/1.1" 500 318
      - -> /favicon.ico
      [2018-06-11 15:34:41] ERROR NoMethodError: undefined method `[]' for nil:NilClass
      	/Users/nenashev/Documents/jenkins/infra/jenkins.io/vendor/gems/ruby/2.3.0/gems/awestruct-0.5.7/lib/awestruct/rack/generate.rb:19:in `call'
      	/Users/nenashev/Documents/jenkins/infra/jenkins.io/vendor/gems/ruby/2.3.0/gems/rack-1.6.8/lib/rack/builder.rb:153:in `call'
      	/Users/nenashev/Documents/jenkins/infra/jenkins.io/vendor/gems/ruby/2.3.0/gems/rack-1.6.8/lib/rack/handler/webrick.rb:88:in `service'
      	/usr/local/lib/ruby/2.3.0/webrick/httpserver.rb:140:in `service'
      	/usr/local/lib/ruby/2.3.0/webrick/httpserver.rb:96:in `run'
      	/usr/local/lib/ruby/2.3.0/webrick/server.rb:314:in `block in start_thread'
      	/Users/nenashev/Documents/jenkins/infra/jenkins.io/vendor/gems/ruby/2.3.0/gems/logging-2.2.2/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context'
      172.17.0.1 - - [11/Jun/2018:15:34:41 UTC] "GET / HTTP/1.1" 500 318
      

        Attachments

          Activity

          oleg_nenashev Oleg Nenashev created issue -
          oleg_nenashev Oleg Nenashev made changes -
          Field Original Value New Value
          Issue Type New Feature [ 2 ] Bug [ 1 ]
          markewaite Mark Waite made changes -
          Status To Do [ 10003 ] Done [ 10004 ]
          Resolution Fixed [ 1 ]

            People

            • Assignee:
              Unassigned
              Reporter:
              oleg_nenashev Oleg Nenashev
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: