java.lang.RuntimeException: Unexpected issues encountered during cleanUp: null

Jenkins JIRA | Daniel Mish | 9 months ago
  1. 0

    [JIRA] [safe-restart] (JENKINS-33702) safeRestart fails with Authentication exception

    Google Groups | 9 months ago | Daniel.Mish@gfs.com (JIRA)
    java.lang.RuntimeException: Unexpected issues encountered during cleanUp: <span class="code-keyword" style="color: #000091">null</span>
  2. 0

    Jenkins hangs with "Please wait while Jenkins is restarting..." after a restart from the GUI. This seems to occur with any restart from the Jenkins GUI. I experienced the same issue when disabling plugins and selecting "Restart Once No Jobs are Running" or selecting the "Restart Safely" plugin. The following error shows in the log: {code} SEVERE: Failed to stop filters java.lang.UnsupportedOperationException at java.util.concurrent.CopyOnWriteArrayList$COWIterator.remove(CopyOnWriteArrayList.java:1040) at hudson.util.PluginServletFilter.cleanUp(PluginServletFilter.java:162) at jenkins.model.Jenkins._cleanUpPluginServletFilters(Jenkins.java:3237) at jenkins.model.Jenkins.cleanUp(Jenkins.java:2890) at hudson.lifecycle.UnixLifecycle.restart(UnixLifecycle.java:70) at jenkins.model.Jenkins$27.run(Jenkins.java:3846) Mar 21, 2016 1:28:41 PM jenkins.model.Jenkins cleanUp INFO: Jenkins stopped Mar 21, 2016 1:28: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:2905) at hudson.lifecycle.UnixLifecycle.restart(UnixLifecycle.java:70) at jenkins.model.Jenkins$27.run(Jenkins.java:3846) Caused by: java.lang.UnsupportedOperationException at java.util.concurrent.CopyOnWriteArrayList$COWIterator.remove(CopyOnWriteArrayList.java:1040) at hudson.util.PluginServletFilter.cleanUp(PluginServletFilter.java:162) at jenkins.model.Jenkins._cleanUpPluginServletFilters(Jenkins.java:3237) at jenkins.model.Jenkins.cleanUp(Jenkins.java:2890) ... 2 more {code} This occurred after an upgrade to Jenkins 1.653. I have also experienced this after running a safeRestart, executed using the following command: {code} curl -u ${key} -X POST -w "%{http_code}" --connect-time 5 --max-time 10 https://ci.gfs.com/scmProductAcquisition/safeRestart {code} where ${key} is the username:apikey. I have verified the login and API with successful logins. The command executes and the server does not shutdown or restart. The process ID remains the same and active. Killing and restarting works fine. Thread dumps produce no logging at all, as if the process did not actually exist.

    Jenkins JIRA | 9 months ago | Daniel Mish
    java.lang.RuntimeException: Unexpected issues encountered during cleanUp: null
  3. 0

    [JENKINS-33702] safeRestart fails with Authentication exception - Jenkins JIRA

    jenkins-ci.org | 4 months ago
    java.lang.RuntimeException: Unexpected issues encountered during cleanUp:
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Jenkins hangs with "Please wait while Jenkins is restarting..." after a restart from the GUI. This seems to occur with any restart from the Jenkins GUI. I experienced the same issue when disabling plugins and selecting "Restart Once No Jobs are Running" or selecting the "Restart Safely" plugin. The following error shows in the log: {code} SEVERE: Failed to stop filters java.lang.UnsupportedOperationException at java.util.concurrent.CopyOnWriteArrayList$COWIterator.remove(CopyOnWriteArrayList.java:1040) at hudson.util.PluginServletFilter.cleanUp(PluginServletFilter.java:162) at jenkins.model.Jenkins._cleanUpPluginServletFilters(Jenkins.java:3237) at jenkins.model.Jenkins.cleanUp(Jenkins.java:2890) at hudson.lifecycle.UnixLifecycle.restart(UnixLifecycle.java:70) at jenkins.model.Jenkins$27.run(Jenkins.java:3846) Mar 21, 2016 1:28:41 PM jenkins.model.Jenkins cleanUp INFO: Jenkins stopped Mar 21, 2016 1:28: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:2905) at hudson.lifecycle.UnixLifecycle.restart(UnixLifecycle.java:70) at jenkins.model.Jenkins$27.run(Jenkins.java:3846) Caused by: java.lang.UnsupportedOperationException at java.util.concurrent.CopyOnWriteArrayList$COWIterator.remove(CopyOnWriteArrayList.java:1040) at hudson.util.PluginServletFilter.cleanUp(PluginServletFilter.java:162) at jenkins.model.Jenkins._cleanUpPluginServletFilters(Jenkins.java:3237) at jenkins.model.Jenkins.cleanUp(Jenkins.java:2890) ... 2 more {code} This occurred after an upgrade to Jenkins 1.653. I have also experienced this after running a safeRestart, executed using the following command: {code} curl -u ${key} -X POST -w "%{http_code}" --connect-time 5 --max-time 10 https://ci.gfs.com/scmProductAcquisition/safeRestart {code} where ${key} is the username:apikey. I have verified the login and API with successful logins. The command executes and the server does not shutdown or restart. The process ID remains the same and active. Killing and restarting works fine. Thread dumps produce no logging at all, as if the process did not actually exist.

    Jenkins JIRA | 9 months ago | Daniel Mish
    java.lang.RuntimeException: Unexpected issues encountered during cleanUp: null
  6. 0

    [JIRA] [core] (JENKINS-33729) Jenkins 2.0 cannot restart after massive plugin installation

    Google Groups | 8 months ago | o.v.nenashev@gmail.com (JIRA)
    java.lang.RuntimeException: Unexpected issues encountered during cleanUp: null

    2 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.UnsupportedOperationException

      No message provided

      at java.util.concurrent.CopyOnWriteArrayList$COWIterator.remove()
    2. Java RT
      CopyOnWriteArrayList$COWIterator.remove
      1. java.util.concurrent.CopyOnWriteArrayList$COWIterator.remove(CopyOnWriteArrayList.java:1040)
      1 frame
    3. Hudson
      PluginServletFilter.cleanUp
      1. hudson.util.PluginServletFilter.cleanUp(PluginServletFilter.java:162)
      1 frame
    4. jenkins.model
      Jenkins.cleanUp
      1. jenkins.model.Jenkins._cleanUpPluginServletFilters(Jenkins.java:3237)
      2. jenkins.model.Jenkins.cleanUp(Jenkins.java:2890)
      2 frames
    5. Hudson
      UnixLifecycle.restart
      1. hudson.lifecycle.UnixLifecycle.restart(UnixLifecycle.java:70)
      1 frame
    6. jenkins.model
      Jenkins$27.run
      1. jenkins.model.Jenkins$27.run(Jenkins.java:3846)
      1 frame