Jenkins service won't start after upgrading to latest version ( 1.471)

5,683 views
Skip to first unread message

Roland Zwaga

unread,
Jun 19, 2012, 8:31:53 AM6/19/12
to jenkins...@googlegroups.com
Hey there,

I just did an automatic upgrade using the webinterface to version 1.471 but after the upgrade the windows service no longer wants to start ;(

When checking the event log all I can find is this:
Child process [2848 - C:\Program Files\Java\jdk1.6.0_29\jre\bin\java -Xrs -Xmx786m -Dhudson.lifecycle=hudson.lifecycle.WindowsServiceLifecycle -jar "C:\Program Files\Jenkins\jenkins.war" --httpPort=8080] terminated with 1

No other error logs are being filled as far as I can see...

When I try to start the service manually I get this error almost immediately:

"Windows could not start the Jenkins service on Local Computer.
Error 1053: The service did not respond to the start or control request in a timely fashion."

Anyone else here run into a problem like this?

If all else fails, I guess I'll have to re-install Jenkins completely... ;(
So, my other question would be: Are there any tutorials or blogposts I could check out that describe how to copy a complete configuration for a Jenkins setup (so Jobs, plugins, etc)


thanks a lot in advance for any kind of help!

cheers,

Roland

Dirk Kuypers

unread,
Jun 19, 2012, 8:45:20 AM6/19/12
to jenkins...@googlegroups.com
Hi Roland,

at least you should have a jenkins.war.bak in your Jenkins directory.
So just rename it to Jenkins.war and restart. Then you should have
your old version back.

HTH
Dirk

2012/6/19 Roland Zwaga <ihateli...@gmail.com>:
--
Never trust a short-haired guru

Slide

unread,
Jun 19, 2012, 8:46:09 AM6/19/12
to jenkins...@googlegroups.com
Before anything else, have you tried running from the command line
with the same command?

If you want a clean JENKINS_HOME, but want to maintain you jobs, you
can just copy the JENKINS_HOME\jobs directory to another location (or
even better, just backup JENKINS_HOME to somewhere else) and then
delete JENKINS_HOME and reinstall. You should be able to copy the jobs
back over to the new JENKINS_HOME.

slide
--
Website: http://earl-of-code.com

Roland Zwaga

unread,
Jun 19, 2012, 9:03:30 AM6/19/12
to jenkins...@googlegroups.com
Hey Dirk,

Thanks for the tip, I have tried to do this but, alas,, the problem persists, very strange...

cheers,

Roland


On Tuesday, 19 June 2012 14:45:20 UTC+2, Dirk Kuypers wrote:
Hi Roland,

at least you should have a jenkins.war.bak in your Jenkins directory.
So just rename it to Jenkins.war and restart. Then you should have
your old version back.

HTH
Dirk

Roland Zwaga

unread,
Jun 19, 2012, 9:05:30 AM6/19/12
to jenkins...@googlegroups.com
Hey Slide,

I have tried running this command from the command line:


java -Xrs -Xmx786m -Dhudson.lifecycle=hudson.lifecycle.WindowsServiceLifecycle -jar "C:\Program Files\Jenkins\jenkins.war" --httpPort=8080

And it works without problems, the server just starts up and everything works fine. Its really just the windows service that all of a sudden seems
to fail to start...

cheers,

Roland

Slide

unread,
Jun 19, 2012, 9:07:50 AM6/19/12
to jenkins...@googlegroups.com
Are you running the service under the same user that you are running
the command from the console as?

slide
--
Website: http://earl-of-code.com

Roland Zwaga

unread,
Jun 19, 2012, 9:20:11 AM6/19/12
to jenkins...@googlegroups.com
No, they're different users. I'll try to run the service with the same user I used to start Jenkins on the command line.

But still, this happened all of a sudden after I did an automatic upgrade, so should this solve my problem, I still don't
understand how it started.

I'll have to wait until a bunch of jobs have finished building (impatient programmers hehe) and then I'll let you know if
it made a difference or not.

thanks so far,

Roland

Roland Zwaga

unread,
Jun 19, 2012, 9:27:55 AM6/19/12
to jenkins...@googlegroups.com

FYI, running the service under the same user as I do running the jar manually doesn't make a difference, service still refuses to start.

I have unpacked the the jenkins.war.bak file and replaced its contents in the JENKINS_HOME directory, so for all I understand this would
downgrade me to the previous version and still the service won't run.

I'm kind of baffled...

cheers,

Roland

Andrey Myatlyuk

unread,
Jun 19, 2012, 2:26:41 PM6/19/12
to jenkins...@googlegroups.com
Hi Roland,

Have you tried to execute the command directly:

C:\Program Files\Java\jdk1.6.0_29\jre\bin\java -Xrs -Xmx786m -Dhudson.lifecycle=hudson.lifecycle.WindowsServiceLifecycle -jar "C:\Program Files\Jenkins\jenkins.war" --httpPort=8080

Can you please confirm that java is functional at the location specified and the location of jenkins.war is correct?

Andrey

Andrey Myatlyuk

unread,
Jun 19, 2012, 2:28:16 PM6/19/12
to jenkins...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages