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

Restart fails on Windows master with slaves connected. "SEVERE: Restarting VM as requested by username" (Windows service not running as local system account)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: core
    • Labels:
    • Environment:
    • Similar Issues:

      Description

      I see this issue at every single restart, safeRestart or not. It seems to be related to the connected slaves:

      aug. 10, 2017 1:00:08 PM jenkins.model.Jenkins$26 run
      INFO: Restart in 10 seconds
      aug. 10, 2017 1:00:18 PM jenkins.model.Jenkins$26 run
      SEVERE: Restarting VM as requested by nkj
      aug. 10, 2017 1:00:18 PM jenkins.model.Jenkins cleanUp
      INFO: Stopping Jenkins
      aug. 10, 2017 1:00:18 PM jenkins.model.Jenkins$21 onAttained
      INFO: Started termination
      aug. 10, 2017 1:00:18 PM jenkins.model.Jenkins$21 onAttained
      INFO: Completed termination
      aug. 10, 2017 1:00:18 PM jenkins.model.Jenkins _cleanUpDisconnectComputers
      INFO: Starting node disconnection
      aug. 10, 2017 1:00:18 PM jenkins.slaves.DefaultJnlpSlaveReceiver channelClosed
      WARNING: safe-restart thread for EAC3 Win10 (dtdkcphpw200044) terminated
      java.nio.channels.ClosedChannelException

      Please NOTE: The Jenkins service runs as an Active Directory user, not a local system account (using "Log on as").

      The result is that Jenkins stops, but never restarts:

      INFO: Waiting for node disconnection completion
      aug. 10, 2017 1:00:20 PM jenkins.model.Jenkins cleanUp
      INFO: Jenkins stopped

      If I look at the service state at this point (after INFO: Jenkins stopped) using "Services", Jenkins appear to be running. A "Restart the service" brings it back up without giving any passwords (password for the user is stored).

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            nkjensen Niels Kristian Jensen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: