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: To Do (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • 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

          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          Access to the front page fails in a similar way

          Show
          oleg_nenashev Oleg Nenashev added a comment - Access to the front page fails in a similar way
          Hide
          zbynek Zbynek Konecny added a comment -

          Oleg Nenashev can you still reproduce this with Ruby 2.6? I sometimes get "undefined method" temporarily but restarting the dev server.

          Show
          zbynek Zbynek Konecny added a comment - Oleg Nenashev can you still reproduce this with Ruby 2.6? I sometimes get "undefined method" temporarily but restarting the dev server.

            People

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

              Dates

              • Created:
                Updated: