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

This article is part of our Knowledge Base and is provided for guidance-based purposes only. The solutions or workarounds described here are not officially supported by CloudBees and may not be applicable in all environments. Use at your own discretion, and test changes in a safe environment before applying them to production systems.