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

Jenkins 2.0 cannot restart after massive plugin installation

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Critical Critical
    • core

      Reproduction steps:
      1) Select many plugins for upgrade
      2) Update them with "restart after installation option"

      Expected behavior:

      • Jenkins installs plugins and restarts

      Actual behavior:

      • Jenkins shuts down the web UI
      • Jenkins does not restart due to "Caused by: java.lang.UnsupportedOperationException
        at java.util.concurrent.CopyOnWriteArrayList$COWIterator.remove"
      • Jenkins cannot open the UI anymore due to the exception from getActiveInstance()

      Log:

      Mar 22, 2016 5:38:30 PM hudson.model.UpdateCenter$UpdateCenterConfiguration download
      INFO: Downloading JUnit Plugin
      Mar 22, 2016 5:38:30 PM jenkins.model.Jenkins$27 run
      INFO: Restart in 10 seconds
      Mar 22, 2016 5:38:40 PM jenkins.model.Jenkins$27 run
      SEVERE: Restarting VM as requested by anonymous
      Mar 22, 2016 5:38:40 PM jenkins.model.Jenkins cleanUp
      INFO: Stopping Jenkins
      Mar 22, 2016 5:38:40 PM jenkins.model.Jenkins$22 onAttained
      INFO: Started termination
      Mar 22, 2016 5:38:40 PM com.cloudbees.opscenter.context.Messaging$Local close
      INFO: Messaging Stopped
      Mar 22, 2016 5:38:40 PM jenkins.model.Jenkins$22 onAttained
      INFO: Completed termination
      Mar 22, 2016 5:38:40 PM jenkins.model.Jenkins _cleanUpDisconnectComputers
      INFO: Starting node disconnection
      Mar 22, 2016 5:38:41 PM jenkins.model.Jenkins _cleanUpShutdownPluginManager
      INFO: Stopping plugin manager
      Mar 22, 2016 5:38:41 PM jenkins.model.Jenkins _cleanUpPersistQueue
      INFO: Persisting build queue
      Mar 22, 2016 5:38:41 PM jenkins.model.Jenkins _cleanUpAwaitDisconnects
      INFO: Waiting for node disconnection completion
      Mar 22, 2016 5:38:41 PM jenkins.model.Jenkins _cleanUpPluginServletFilters
      SEVERE: Failed to stop filters
      java.lang.UnsupportedOperationException
              at java.util.concurrent.CopyOnWriteArrayList$COWIterator.remove(CopyOnWriteArrayList.java:1176)
              at hudson.util.PluginServletFilter.cleanUp(PluginServletFilter.java:162)
              at jenkins.model.Jenkins._cleanUpPluginServletFilters(Jenkins.java:3292)
              at jenkins.model.Jenkins.cleanUp(Jenkins.java:2945)
              at hudson.lifecycle.UnixLifecycle.restart(UnixLifecycle.java:70)
              at jenkins.model.Jenkins$27.run(Jenkins.java:3901)
      
      Mar 22, 2016 5:38:41 PM jenkins.model.Jenkins cleanUp
      INFO: Jenkins stopped
      Mar 22, 2016 5:38:41 PM jenkins.model.Jenkins$27 run
      WARNING: Failed to restart Jenkins
      java.lang.RuntimeException: Unexpected issues encountered during cleanUp: null
              at jenkins.model.Jenkins.cleanUp(Jenkins.java:2960)
              at hudson.lifecycle.UnixLifecycle.restart(UnixLifecycle.java:70)
              at jenkins.model.Jenkins$27.run(Jenkins.java:3901)
      Caused by: java.lang.UnsupportedOperationException
              at java.util.concurrent.CopyOnWriteArrayList$COWIterator.remove(CopyOnWriteArrayList.java:1176)
              at hudson.util.PluginServletFilter.cleanUp(PluginServletFilter.java:162)
              at jenkins.model.Jenkins._cleanUpPluginServletFilters(Jenkins.java:3292)
              at jenkins.model.Jenkins.cleanUp(Jenkins.java:2945)
              ... 2 more
      
      Mar 22, 2016 5:38:41 PM org.eclipse.jetty.util.log.JavaUtilLog warn
      WARNING: Error while serving http://172.30.0.217:8080/adjuncts/b616bb17/lib/layout/menu_right_arrow.png
      java.lang.reflect.InvocationTargetException
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:497)
              at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:324)
              at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:167)
              at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:100)
              at org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:403)
              at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
              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:790)
      ....
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
              at java.lang.Thread.run(Thread.java:745)
      Caused by: javax.servlet.ServletException: org.apache.commons.jelly.JellyTagException: jar:file:/var/cache/jenkins/war/WEB-INF/lib/jenkins-core-2.0-alpha-5-SNAPSHOT.jar!/lib/layout/layout.jelly:161:89: <j:invokeStatic> method getActiveInstance threw exception: Jenkins has not been started, or was already shut down
              at org.kohsuke.stapler.jelly.JellyRequestDispatcher.forward(JellyRequestDispatcher.java:60)
              at hudson.util.HudsonIsRestarting.doDynamic(HudsonIsRestarting.java:45)
              ... 65 more
      Caused by: org.apache.commons.jelly.JellyTagException: jar:file:/var/cache/jenkins/war/WEB-INF/lib/jenkins-core-2.0-alpha-5-SNAPSHOT.jar!/lib/layout/layout.jelly:161:89: <j:invokeStatic> method getActiveInstance threw exception: Jenkins has not been started, or was already shut down
              at org.apache.commons.jelly.tags.core.InvokeStaticTag.doTag(InvokeStaticTag.java:148)
              at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)
              at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
              at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99)
              at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
              at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99)
              at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
              at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105)
              at org.kohsuke.stapler.jelly.CallTagLibScript.run(CallTagLibScript.java:120)
              at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
              at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105)
              at org.kohsuke.stapler.jelly.JellyViewScript.run(JellyViewScript.java:95)
              at org.kohsuke.stapler.jelly.DefaultScriptInvoker.invokeScript(DefaultScriptInvoker.java:63)
              at org.kohsuke.stapler.jelly.DefaultScriptInvoker.invokeScript(DefaultScriptInvoker.java:53)
              at org.kohsuke.stapler.jelly.JellyRequestDispatcher.forward(JellyRequestDispatcher.java:55)
      ....
      

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

              Created:
              Updated:
              Resolved: