# Error 1053 when starting Jenkins Windows service

**URL:** <https://community.jenkins.io/t/error-1053-when-starting-jenkins-windows-service/9431>\
**Category:** Using Jenkins\
**Tags:** windows\
**Created:** [September 6, 2023, 12:14pm UTC](https://community.jenkins.io/t/error-1053-when-starting-jenkins-windows-service/9431 "2023-09-06T12:14:03Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![egssantana](https://avatars.discourse-cdn.com/v4/letter/e/ed655f/32.png) [@egssantana](https://community.jenkins.io/u/egssantana)\
**Post date:** [September 6, 2023, 12:14pm UTC](https://community.jenkins.io/t/error-1053-when-starting-jenkins-windows-service/9431/1 "2023-09-06T12:14:03Z")

</div>

I’m installing Jenkins and after finalizing the settings in the jenkins.xml file I’m trying to start the Jenkins service and it’s showing the following message:  
“Windows cannot start the service on Local Computer.  
Error 1053: Service does not respond to start or control request in a timely manner.”

I consulted some videos on the web on the subject and most ask to include a line in regedit\>\>HKEY\_LOCAL\_MACHINE\SYSTEM\CurrentControlSet\Control and include the Servicespipetimeout key with the value 180000 and it did not solve the problem.

Does anyone have a tip for solving the problem?  
Thank you very much  
#Genexus

Jenkins setup:

---

<div class="post-metadata">

**Author:** ![poddingue](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/poddingue/32/985_2.png) [@poddingue](https://community.jenkins.io/u/poddingue)\
**Post date:** [September 6, 2023, 2:57pm UTC](https://community.jenkins.io/t/error-1053-when-starting-jenkins-windows-service/9431/2 "2023-09-06T14:57:21Z")

</div>

Hello @egssantana and welcome to this community. 👋

The “Error 1053: Service does not respond to start or control request in a timely manner” is a common issue when trying to start a Windows service, including the Jenkins service. This error occurs when the service takes longer than the Windows Service Control Manager (SCM) expects to start.

Here are some steps you can take to troubleshoot and potentially resolve this issue:

1. **Check Jenkins Configuration** : Ensure that your Jenkins configuration is correct, including the paths and Java settings in the `jenkins.xml` file.

2. **Check Java Installation** : Make sure that Java is installed correctly on your system and that the `JAVA_HOME` environment variable is set correctly. Jenkins requires a Java Runtime Environment (JRE) or Java Development Kit (JDK) `11+` to run.

3. **Check for Port Conflicts** : Make sure that the port specified for Jenkins in the `jenkins.xml` file (default is 8080) is not in use by another application. Port conflicts can prevent Jenkins from starting.

4. **Increase Service Timeout** : While you mentioned changing the `ServicesPipeTimeout` in the Windows Registry to 180,000 milliseconds (3 minutes), you can try increasing this value further if your Jenkins setup takes longer to start.

5. **Check Jenkins Logs** : Examine the Jenkins log files for any errors or issues that might be preventing it from starting. You can usually find Jenkins logs in the `JENKINS_HOME/logs` directory. Look for any exceptions or error messages.

6. **Run Jenkins in Console Mode** : To gather more information about why Jenkins is failing to start, try running Jenkins in console (command-line) mode.

7. **Monitor** the console for any error messages or exceptions that might provide clues about the issue.

8. **Check System Resource Usage** : Ensure that your system has sufficient resources (CPU, RAM, disk space) available for Jenkins to run. Resource constraints can cause startup delays.

9. **Antivirus/Firewall** : Sometimes, antivirus or firewall software can interfere with the startup of Jenkins. Temporarily disabling or configuring exceptions in your security software can help diagnose if this is the issue.

10. **Check Windows Event Viewer** : The Windows Event Viewer might have additional details about why the Jenkins service is failing to start. Check the “Application” or “System” logs for any related error messages.

---

<div class="post-metadata">

**Author:** ![slide\_o\_mix](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/slide_o_mix/32/20977_2.png) [@slide\_o\_mix](https://community.jenkins.io/u/slide_o_mix)\
**Post date:** [September 6, 2023, 3:40pm UTC](https://community.jenkins.io/t/error-1053-when-starting-jenkins-windows-service/9431/3 "2023-09-06T15:40:19Z")

</div>

You’ll want to check the Jenkins service log as well, which, if you used the default installation directory in the installer, should be in c:\Program Files\Jenkins

---

<div class="post-metadata">

**Author:** ![egssantana](https://avatars.discourse-cdn.com/v4/letter/e/ed655f/32.png) [@egssantana](https://community.jenkins.io/u/egssantana)\
**Post date:** [September 6, 2023, 4:55pm UTC](https://community.jenkins.io/t/error-1053-when-starting-jenkins-windows-service/9431/4 "2023-09-06T16:55:09Z")

</div>

> [@poddingue](#):
>
> - **Check System Resource Usage** : Ensure that your system has sufficient resources (CPU, RAM, disk space) available for Jenkins to run. Resource constraints can cause startup delays.

Thanks for the feedback, I’ll check.  
#Genexus

---

<div class="post-metadata">

**Author:** ![egssantana](https://avatars.discourse-cdn.com/v4/letter/e/ed655f/32.png) [@egssantana](https://community.jenkins.io/u/egssantana)\
**Post date:** [September 6, 2023, 4:55pm UTC](https://community.jenkins.io/t/error-1053-when-starting-jenkins-windows-service/9431/5 "2023-09-06T16:55:21Z")

</div>

Thanks for the feedback, I’ll check.  
#Genexus

---

<div class="post-metadata">

**Author:** ![egssantana](https://avatars.discourse-cdn.com/v4/letter/e/ed655f/32.png) [@egssantana](https://community.jenkins.io/u/egssantana)\
**Post date:** [September 6, 2023, 5:32pm UTC](https://community.jenkins.io/t/error-1053-when-starting-jenkins-windows-service/9431/6 "2023-09-06T17:32:53Z")

</div>

> [@poddingue](#):
>
> **Run Jenkins in Console Mode** : To gather more information about why Jenkins is failing to start, try running Jenkins in console (command-line) mode.
> 
> - Open a command prompt with administrator privileges.
> - Navigate to the Jenkins installation directory.
> - Run the following command to start Jenkins:  
> `java -jar jenkins.war`

I went through the entire list and managed to start jenkins through “C:\tools\Jenkins\>java -jar jenkins.war”. But the service on windows did not work.

By the way the windows service will not work.  
Every time I use it I’ll have to run “C:\tools\Jenkins\>java -jar jenkins.war”, not bad.  
Thank you very much for your attention.

---

<div class="post-metadata">

**Author:** ![slide\_o\_mix](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/slide_o_mix/32/20977_2.png) [@slide\_o\_mix](https://community.jenkins.io/u/slide_o_mix)\
**Post date:** [September 6, 2023, 5:44pm UTC](https://community.jenkins.io/t/error-1053-when-starting-jenkins-windows-service/9431/7 "2023-09-06T17:44:46Z")

</div>

You will have to do that every time you start the system, hwich is not a good idea. Did you install using the Windows installer? Based on the path for jenkins.war it doesn’t seem so?

---

<div class="post-metadata">

**Author:** ![egssantana](https://avatars.discourse-cdn.com/v4/letter/e/ed655f/32.png) [@egssantana](https://community.jenkins.io/u/egssantana)\
**Post date:** [September 6, 2023, 5:48pm UTC](https://community.jenkins.io/t/error-1053-when-starting-jenkins-windows-service/9431/8 "2023-09-06T17:48:19Z")

</div>

I installed it following the windows installation video as per the official website.

> **[Windows](https://www.jenkins.io/doc/book/installing/windows/)**
>
> Jenkins – an open source automation server which enables developers around the world to reliably build, test, and deploy their software

I made exactly the same settings.  
#Genexus

---

<div class="post-metadata">

**Author:** ![slide\_o\_mix](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/slide_o_mix/32/20977_2.png) [@slide\_o\_mix](https://community.jenkins.io/u/slide_o_mix)\
**Post date:** [September 6, 2023, 7:08pm UTC](https://community.jenkins.io/t/error-1053-when-starting-jenkins-windows-service/9431/9 "2023-09-06T19:08:34Z")

</div>

Did you download the war file separately? Did you look at the log in C:\Program Files\Jenkins? That is usually the best place to look for service issues since that is where winsw (the service wrapper) writes its log.

---

<div class="post-metadata">

**Author:** ![egssantana](https://avatars.discourse-cdn.com/v4/letter/e/ed655f/32.png) [@egssantana](https://community.jenkins.io/u/egssantana)\
**Post date:** [September 11, 2023, 12:07pm UTC](https://community.jenkins.io/t/error-1053-when-starting-jenkins-windows-service/9431/10 "2023-09-11T12:07:32Z")

</div>

Good morning Alex!  
For installation I downloaded jenkins.msi and according to the installation instructions it asked to install in: "c:\tools\jenkins" and in this directory there are the following files:  
jenkins.exe  
jenkins.exe.confing  
jenkins.war  
jenkins.xml
