Jenkins installed as a Windows Service will not restart through the restart webaddress

Article ID:115002402747
1 minute readKnowledge base

Issue

When I try to go to $JENKINS_URL/restart to restart my instance, it just hangs when trying to come back up. So I have to manually restart the service

Environment

  • CloudBees Jenkins Enterprise

  • Windows Machine

  • Jenkins installed as a Service

Resolution

  1. Ensure that your Jenkins user has the permissions to restart the Windows Jenkins service

  2. Go into your jenkins.xml inside of $JENKINS_HOME and look for the <id> and <name> tags. Those should match the name of your Service running Jenkins. If they do not, adjust the jenkins.xml file and re-save it