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

Jenkins crashes on (safe) restart

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Critical Critical
    • core
    • None

      Jenkins crashes when restarting it via /safeRestart. Afterwards, the service must be manually stopped with systemclt stop jenkins before starting it again.

       

      I sadly have no idea why this happens, the only issue that looks similar is https://issues.jenkins.io/browse/JENKINS-33681

       

      Any advice on debugging is highly welcome.

      Dec 28 10:42:35 x01135926.schaeffler.com jenkins[25455]: 2022-12-28 09:42:35.459+0000 [id=5681]        INFO        jenkins.model.Jenkins#_cleanUpPersistQueue: Persisting build queue
      Dec 28 10:42:35 x01135926.schaeffler.com jenkins[25455]: 2022-12-28 09:42:35.471+0000 [id=5681]        INFO        jenkins.model.Jenkins#_cleanUpAwaitDisconnects: Waiting for node disconnection completion
      Dec 28 10:42:35 x01135926.schaeffler.com jenkins[25455]: 2022-12-28 09:42:35.474+0000 [id=5681]        SEVERE        jenkins.model.Jenkins#_cleanUpPluginServletFilters: Failed to stop filters
      Dec 28 10:42:35 x01135926.schaeffler.com jenkins[25455]: java.lang.ClassNotFoundException: net.bull.javamelody.MonitoringInitialContextFactory
      Dec 28 10:42:35 x01135926.schaeffler.com jenkins[25455]:         at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:476)
      Dec 28 10:42:35 x01135926.schaeffler.com jenkins[25455]:         at jenkins.util.URLClassLoader2.findClass(URLClassLoader2.java:35)
      Dec 28 10:42:35 x01135926.schaeffler.com jenkins[25455]:         at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:589)
      Dec 28 10:42:35 x01135926.schaeffler.com jenkins[25455]:         at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
      Dec 28 10:42:35 x01135926.schaeffler.com jenkins[25455]: Caused: java.lang.NoClassDefFoundError: net/bull/javamelody/MonitoringInitialContextFactory
      Dec 28 10:42:35 x01135926.schaeffler.com jenkins[25455]:         at net.bull.javamelody.FilterContext.destroy(FilterContext.java:472)
      Dec 28 10:42:35 x01135926.schaeffler.com jenkins[25455]:         at net.bull.javamelody.MonitoringFilter.destroy(MonitoringFilter.java:176)
      Dec 28 10:42:35 x01135926.schaeffler.com jenkins[25455]:         at net.bull.javamelody.PluginMonitoringFilter.destroy(PluginMonitoringFilter.java:74)
      Dec 28 10:42:35 x01135926.schaeffler.com jenkins[25455]:         at hudson.util.PluginServletFilter.cleanUp(PluginServletFilter.java:185)
      Dec 28 10:42:35 x01135926.schaeffler.com jenkins[25455]:         at jenkins.model.Jenkins._cleanUpPluginServletFilters(Jenkins.java:3908)
      Dec 28 10:42:35 x01135926.schaeffler.com jenkins[25455]:         at jenkins.model.Jenkins.cleanUp(Jenkins.java:3605)
      Dec 28 10:42:35 x01135926.schaeffler.com jenkins[25455]:         at hudson.lifecycle.ExitLifecycle.restart(ExitLifecycle.java:67)
      Dec 28 10:42:35 x01135926.schaeffler.com jenkins[25455]:         at jenkins.model.Jenkins$20.run(Jenkins.java:4570)
      Dec 28 10:42:35 x01135926.schaeffler.com jenkins[25455]: 2022-12-28 09:42:35.474+0000 [id=5681]        INFO        hudson.lifecycle.Lifecycle#onStatusUpdate: Jenkins stopped
      Dec 28 10:42:35 x01135926.schaeffler.com systemd[1]: jenkins.service: Main process exited, code=exited, status=5/NOTINSTALLED
      Dec 28 10:42:35 x01135926.schaeffler.com systemd[1]: jenkins.service: Failed with result 'exit-code'.
      Dec 28 10:42:56 x01135926.schaeffler.com systemd[1]: Stopped Jenkins Continuous Integration Server.

            Unassigned Unassigned
            meiswjn Jan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: