Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-33556

exception when loading main page prior to authenticating

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Critical Critical
    • slack-plugin
    • None

      Exception when loading main page prior to authenticating:

      Oops!

      A problem occurred while processing the request. Please check our bug tracker to see if a similar problem has already been reported. If it is already reported, please vote and put a comment on it to let us gauge the impact of the problem. If you think this is a new issue, please file a new issue. When you file an issue, make sure to add the entire stack trace, along with the version of Jenkins and relevant plugins. The users list might be also useful in understanding what has happened.
      Stack trace

      java.lang.NullPointerException
      at java.util.TreeMap.put(TreeMap.java:556)
      at java.util.TreeSet.add(TreeSet.java:255)
      at jenkins.model.Jenkins.getUnprotectedRootActions(Jenkins.java:4294)
      at jenkins.model.Jenkins.getTarget(Jenkins.java:4263)
      at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:674)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:649)
      at org.kohsuke.stapler.Stapler.service(Stapler.java:238)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
      at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:686)
      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1494)
      at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:134)
      at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:125)
      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
      at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:49)
      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
      at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:117)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:135)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:93)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
      at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
      at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:171)
      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
      at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49)
      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
      at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
      at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)
      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1474)
      at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:499)
      at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
      at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:533)
      at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
      at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)
      at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428)
      at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
      at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)
      at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
      at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
      at org.eclipse.jetty.server.Server.handle(Server.java:370)
      at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489)
      at org.eclipse.jetty.server.BlockingHttpConnection.handleRequest(BlockingHttpConnection.java:53)
      at org.eclipse.jetty.ajp.Ajp13Connection.access$2900(Ajp13Connection.java:45)
      at org.eclipse.jetty.ajp.Ajp13Connection$RequestHandler.headerComplete(Ajp13Connection.java:237)
      at org.eclipse.jetty.ajp.Ajp13Parser.parseNext(Ajp13Parser.java:478)
      at org.eclipse.jetty.ajp.Ajp13Parser.parseAvailable(Ajp13Parser.java:158)
      at org.eclipse.jetty.server.BlockingHttpConnection.handle(BlockingHttpConnection.java:72)
      at org.eclipse.jetty.server.bio.SocketConnector$ConnectorEndPoint.run(SocketConnector.java:264)
      at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:745)

          [JENKINS-33556] exception when loading main page prior to authenticating

          I prioritized as minor because this bug does not prevent users from logging in, after which functionality does not seem to be impacted.

          George Sakhnovsky added a comment - I prioritized as minor because this bug does not prevent users from logging in, after which functionality does not seem to be impacted.

          Yoanis Gil added a comment -

          I'm running into this issue for Webhook notifications from Bitbucket. Any ideas how to get around this our why is this happen all of the sudden?

          Yoanis Gil added a comment - I'm running into this issue for Webhook notifications from Bitbucket. Any ideas how to get around this our why is this happen all of the sudden?

          Ben Walding added a comment -

          Root cause for one of our customers was upgrade of the slack plugin - v2.0.0 caused the issue.

          (Whether it is the slack plugin or some weird interaction has not been diagnosed yet).

          Rolling back to 1.8.1 resolved the issue.

          Ben Walding added a comment - Root cause for one of our customers was upgrade of the slack plugin - v2.0.0 caused the issue. (Whether it is the slack plugin or some weird interaction has not been diagnosed yet). Rolling back to 1.8.1 resolved the issue.

          Bartosz Janda added a comment -

          I had the same issue. In the Configure System -> Slack Webhook Settings -> Outgoing Webhook URL Endpoint set a name for the webhook, eg.: slackwebhook. This solves the issue for me.

          Bartosz Janda added a comment - I had the same issue. In the Configure System -> Slack Webhook Settings -> Outgoing Webhook URL Endpoint set a name for the webhook, eg.: slackwebhook . This solves the issue for me.

          Running Jenkins ver. 1.653 and did a rollback of Slack plugin to 1.8.1 - now Jenkins is working again.

          Plugin broken or Jenkins Core?

          Christian Sarazin added a comment - Running Jenkins ver. 1.653 and did a rollback of Slack plugin to 1.8.1 - now Jenkins is working again. Plugin broken or Jenkins Core?

          Sorin Sbarnea added a comment -

          Obviously that after manually removing the Slack plugin the option is missing from the configuration. Clearly the plugin is broken badly and the v2.0.0 version must be removed ASAP, as it will cause downtimes.

          Sorin Sbarnea added a comment - Obviously that after manually removing the Slack plugin the option is missing from the configuration. Clearly the plugin is broken badly and the v2.0.0 version must be removed ASAP, as it will cause downtimes.

          Knut Ahlers added a comment -

          Same for me with Jenkins 1.653 as well as 1.642. After disabling the Slack plugin everything is fine again.

          Also I wasn't able to start jobs because of a stack trace from the Slack plugin:

          java.lang.AssertionError: class jenkins.plugins.slack.SlackNotifier$SlackJobProperty is missing its descriptor
          	at jenkins.model.Jenkins.getDescriptorOrDie(Jenkins.java:1257)
          	at hudson.model.JobProperty.getDescriptor(JobProperty.java:105)
          	at hudson.model.JobProperty.getDescriptor(JobProperty.java:79)
          	at hudson.model.Descriptor.toMap(Descriptor.java:973)
          	at hudson.model.Job.getProperties(Job.java:558)
          	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:531)
          	at hudson.model.Run.execute(Run.java:1738)
          	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          	at hudson.model.ResourceController.execute(ResourceController.java:98)
          	at hudson.model.Executor.run(Executor.java:410)
          FATAL: class jenkins.plugins.slack.SlackNotifier$SlackJobProperty is missing its descriptor
          

          This plugin seems to be heavily broken.

          Knut Ahlers added a comment - Same for me with Jenkins 1.653 as well as 1.642. After disabling the Slack plugin everything is fine again. Also I wasn't able to start jobs because of a stack trace from the Slack plugin: java.lang.AssertionError: class jenkins.plugins.slack.SlackNotifier$SlackJobProperty is missing its descriptor at jenkins.model.Jenkins.getDescriptorOrDie(Jenkins.java:1257) at hudson.model.JobProperty.getDescriptor(JobProperty.java:105) at hudson.model.JobProperty.getDescriptor(JobProperty.java:79) at hudson.model.Descriptor.toMap(Descriptor.java:973) at hudson.model.Job.getProperties(Job.java:558) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:531) at hudson.model.Run.execute(Run.java:1738) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) FATAL: class jenkins.plugins.slack.SlackNotifier$SlackJobProperty is missing its descriptor This plugin seems to be heavily broken.

          Yoanis Gil added a comment -

          Just notified plugin creator here:

          https://github.com/jenkinsci/slack-plugin/pull/160

          Yoanis Gil added a comment - Just notified plugin creator here: https://github.com/jenkinsci/slack-plugin/pull/160

          Yoanis Gil added a comment -

          A PR has been created to address this bug:

          https://github.com/jenkinsci/slack-plugin/pull/190

          Yoanis Gil added a comment - A PR has been created to address this bug: https://github.com/jenkinsci/slack-plugin/pull/190

          Kenneth Baltrinic added a comment - - edited

          Concur that this is critical. It breaks our ability to manage Jenkins with chef because it makes Jenkins appear to be 'down' when it should be and is up.

          Do we have a timeline for when this will be released to LTS?

          Kenneth Baltrinic added a comment - - edited Concur that this is critical. It breaks our ability to manage Jenkins with chef because it makes Jenkins appear to be 'down' when it should be and is up. Do we have a timeline for when this will be released to LTS?

          Thank you Bartosz, your suggestion works as a quick workaround.

          George Sakhnovsky added a comment - Thank you Bartosz, your suggestion works as a quick workaround.

          Sam Gleske added a comment - - edited

          Placing this script console script in your $JENKINS_HOME/init.groovy.d directory is a workaround.

          https://github.com/samrocketman/jenkins-script-console-scripts/blob/master/disable-slack-webhooks.groovy

          It will permanently disable it. Restart your Jenkins instance for the change to take effect. Until a more permanent fix can be in place.

          Sam Gleske added a comment - - edited Placing this script console script in your $JENKINS_HOME/init.groovy.d directory is a workaround. https://github.com/samrocketman/jenkins-script-console-scripts/blob/master/disable-slack-webhooks.groovy It will permanently disable it. Restart your Jenkins instance for the change to take effect. Until a more permanent fix can be in place.

          Sam Gleske added a comment - - edited

          I reproduced the issue and thoroughly documented it (including a workaround).

          https://github.com/jenkinsci/slack-plugin/issues/191

          Moved this to the slack-plugin issues and assigned to Kurt. Closing this issue in favor of issue 191 in GitHub. Please follow up with communication there.

          Sam Gleske added a comment - - edited I reproduced the issue and thoroughly documented it (including a workaround). https://github.com/jenkinsci/slack-plugin/issues/191 Moved this to the slack-plugin issues and assigned to Kurt. Closing this issue in favor of issue 191 in GitHub. Please follow up with communication there.

          Sam Gleske added a comment -

          Sam Gleske added a comment - Closed in favor of https://github.com/jenkinsci/slack-plugin/issues/191

            kmadel Kurt Madel
            promo718 George Sakhnovsky
            Votes:
            5 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: