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

"Configure Global Security", "Configure Credentials", "Global Tool Configuration" menu items throw stack trace

    Details

    • Type: Task
    • Status: Reopened (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: core
    • Labels:
      None
    • Environment:
    • Similar Issues:

      Description

      We're running Jenkins version 2.81 on a 64-bit Windows 7 Professional machine, 8 GB RAM, using JRE v1.8.0.112.

      Certain Jenkins menus throw a stack trace:

      • Configure Global Security
      • Configure Credentials
      • Global Tool Configuration
      java.lang.AssertionError: InstanceIdentity is missing its singleton
      	at org.jenkinsci.main.modules.instance_identity.InstanceIdentity.get(InstanceIdentity.java:133)
      	at org.jenkinsci.main.modules.instance_identity.InstanceIdentityRSAProvider.getKeyPair(InstanceIdentityRSAProvider.java:23)
      	at jenkins.model.identity.InstanceIdentityProvider$KeyTypes.get(InstanceIdentityProvider.java:161)
      	at jenkins.model.identity.InstanceIdentityProvider$KeyTypes.getKeyPair(InstanceIdentityProvider.java:210)
      	at jenkins.model.identity.IdentityRootAction.getUrlName(IdentityRootAction.java:42)
      	at jenkins.model.Jenkins.getDynamic(Jenkins.java:3643)
      	at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627)
      	at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:343)
      	at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:184)
      	at org.kohsuke.stapler.MetaClass$10.dispatch(MetaClass.java:372)
      	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:715)
      Caused: javax.servlet.ServletException
      	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:765)
      	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:845)
      	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:790)
      	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:841)
      	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1650)
      	at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:135)
      	at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:138)
      	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637)
      	at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:49)
      	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637)
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
      	at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:90)
      	at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:171)
      	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637)
      	at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49)
      	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637)
      	at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:82)
      	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637)
      	at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)
      	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637)
      	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:533)
      	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
      	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:524)
      	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
      	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:190)
      	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595)
      	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:188)
      	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1253)
      	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:168)
      	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473)
      	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564)
      	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:166)
      	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1155)
      	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
      	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
      	at org.eclipse.jetty.server.Server.handle(Server.java:564)
      	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:317)
      	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251)
      	at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279)
      	at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:110)
      	at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124)
      	at org.eclipse.jetty.util.thread.Invocable.invokePreferred(Invocable.java:128)
      	at org.eclipse.jetty.util.thread.Invocable$InvocableExecutor.invoke(Invocable.java:222)
      	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:294)
      	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:199)
      	at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at java.lang.Thread.run(Thread.java:745)
      

      This is particularly problematic because it prevents us from adding new SSH keys to the server instance.

      (This seems to be related or similar to JENKINS-38057, which was recently closed.)

        Attachments

          Issue Links

            Activity

            Hide
            karthik537 Karthik N added a comment -

            I have started learning Jenkins, I too found the similar issues while trying to enter to "Config global security"

            Show
            karthik537 Karthik N added a comment - I have started learning Jenkins, I too found the similar issues while trying to enter to " Config global security "
            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            Karthik N how do you use Jenkins? Do you run it in Apache Tomcat or other external web container?

            Show
            oleg_nenashev Oleg Nenashev added a comment - Karthik N how do you use Jenkins? Do you run it in Apache Tomcat or other external web container?
            Hide
            subbuhj Subramanya Jagannath added a comment -

            Oleg Nenashev I am also facing the same issue, I am trying to run Jenkins in Windows machine, whenever I try to access Jenkins before login I use to get this error. I am using Java 8 and windows 10. Let me know if you need any more info. 

            Show
            subbuhj Subramanya Jagannath added a comment - Oleg Nenashev I am also facing the same issue, I am trying to run Jenkins in Windows machine, whenever I try to access Jenkins before login I use to get this error. I am using Java 8 and windows 10. Let me know if you need any more info. 
            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            Subramanya Jagannath I do not actively work on it at the moment. Somebody else might diagnose it, a fresh set of startup logs for the recent LTS would be helpful

            Show
            oleg_nenashev Oleg Nenashev added a comment - Subramanya Jagannath I do not actively work on it at the moment. Somebody else might diagnose it, a fresh set of startup logs for the recent LTS would be helpful
            Hide
            subbuhj Subramanya Jagannath added a comment -

            Sure .. thanks Oleg Nenashev. I will be creating new ticket for this issue.

            Show
            subbuhj Subramanya Jagannath added a comment - Sure .. thanks Oleg Nenashev . I will be creating new ticket for this issue.

              People

              • Assignee:
                Unassigned
                Reporter:
                gs0f40o0vseljgbjcxv2 Alex Fung
              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated: