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

Jenkins fails to restart after plugin updates on Debian 11 (bullseye)

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • core
    • None
    • 2.335, 2.332.1

      Jenkins fails to restart after plugin updates, when installed via Debian package

      To reproduce:

      1. Install Jenkins from https://pkg.jenkins.io/debian-stable 
      2. Install some plugin updates via the Jenkins web UI, and tell Jenkins to restart when done
      3. Observe that the "Please wait while Jenkins is restarting ..." page remains forever

      Looking into the logs, there is:

      WARNING jenkins.model.Jenkins$20#run: Failed to restart Jenkins
      java.io.IOException: Failed to exec 'jenkins: /bin/java' No such file or directory
              at hudson.lifecycle.UnixLifecycle.restart(UnixLifecycle.java:87)
              at jenkins.model.Jenkins$20.run(Jenkins.java:4397) 

      Naturally, trying to execute a command named 'jenkins: /bin/java' failed. But why did it try?

      Looking at the running Jenkins process, its /proc/<PID>/cmdline value has been updated to have 'jenkins: /bin/java'.

      It is being run under the /usr/bin/daemon process manager, which performs this name update to make the identity of the service process clearer in process listings.

       

      The Jenkins Debian packages should not install Jenkins in a way which defeats its own auto-restart functionality.

          [JENKINS-65809] Jenkins fails to restart after plugin updates on Debian 11 (bullseye)

          Max created issue -
          Dirk Heinrichs made changes -
          Link New: This issue is related to JENKINS-41218 [ JENKINS-41218 ]
          Mark Waite made changes -
          Summary Original: Jenkins fails to restart after plugin updates, installed via Debian package New: Jenkins fails to restart after plugin updates on Debian 11 (bullseye)
          Mark Waite made changes -
          Link New: This issue is duplicated by JENKINS-67510 [ JENKINS-67510 ]
          Mark Waite made changes -
          Released As New: 2.335
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Closed [ 6 ]
          Mark Waite made changes -
          Labels New: lts-candidate
          Ildefonso Montero made changes -
          Labels Original: lts-candidate New: 2.332.2-fixed
          Mark Waite made changes -
          Labels Original: 2.332.2-fixed
          Mark Waite made changes -
          Released As Original: 2.335 New: 2.335, 2.332.1

            Unassigned Unassigned
            maxb Max
            Votes:
            9 Vote for this issue
            Watchers:
            15 Start watching this issue

              Created:
              Updated:
              Resolved: