Reputation: 303
When I try manually to start Jenkins from "Computer Management" I got an error 1053: "Error 1053: The service did not respond to the start or control request in a timely fashion."
I try to start from CMD with: jenkins.exe start
and I get an error:
The system was working some 2 weeks ago, I don't know what happened.
Upvotes: 2
Views: 10183
Reputation: 377
If you're not getting any logs, maybe try running jenkins.exe at a command prompt and see if it provides something useful there.
I was having other issues with the Jenkins Windows service that required some changes to jenkins.xml and other places. I made those changes and the service started successfully. Yay! But while googling for that solution, I discovered some other changes I could make to jenkins.xml, so I made them. And for good measure added a couple comments regarding the changes. Then the Jenkins Windows service wouldn't start again. And suddenly there was NOTHING new in the logs at all. Undid the configuration changes I had just made, and still got nothing. Spent the rest of the day googling & tinkering unsuccessfully. Then I thought, "Hmm, why not just run jenkins.exe at a command prompt & see what happens." Did that, and . . .
The configuration file cound not be loaded. An XML comment cannot contain '--', and '-' cannot be the last character. Line 36, position 148.
Good. Grief.
Upvotes: 2
Reputation: 734
I faced same error 1053. The jenkinsservice was not able to start. I noticed that port 8080 was already taken by other windows application service. So i changed the port to other number in jenkins.xml in jenkins installation folder. Now the jenkins service is up and running.
Upvotes: 0
Reputation: 303
I found the problem, my server works very slow, probably because Windows. Windows can not start the Jenkins service in 30 seconds.
Solution:
The Service Control Manager will generate an event if a service does not respond within the defined timeout period (the default timeout period is 30000 milliseconds). To resolve this problem, use the Registry Editor to change the default timeout value for all services.
Upvotes: 3
Reputation: 385
Use task manager to check that there is not a hung instance of the service that is holding the listening TCP port open.
Are you using port 80, 8080 or something else?
Is it possible that IIS is installed on the machine and is stopping Jenkins from using the listening port?
Upvotes: 0