Why jenkins restart every day?

3,253 views
Skip to first unread message

Gaetan

unread,
Oct 30, 2012, 6:04:05 AM10/30/12
to Jenkins Users
Hello

My Jenkins installation want to restart everyday and and i don't find why.

I have a nightly test job that run for at least 15 hours, and when it is underway, jenkins switch to "Jenkins is going to shutdown" job, so it doesn't accept jobs. If I cancel it, some job can be started but it switch back to this shutdown mode.

I don't do jenkins update every day, so I don't see why it always wants to restart.

Any idea?
Many thanks!
-----
Gaetan


Mandeville, Rob

unread,
Oct 30, 2012, 7:19:45 AM10/30/12
to jenkins...@googlegroups.com

I don’t know the answer, but didn’t want you to think we’re ignoring you.  I don’t think that the group has enough to bite on to answer this…yet.

 

My setup has Jenkins running for weeks at a time, so this is definitely not normal.

 

Some useful information might be:

 

1: Which version of Jenkins are you running?

2: Which OS are you running on?

3: Which web container are you running it in (Tomcat, Glassfish, Jetty, etc.)?  If you’re just running “java –jar jenkins.war” or somesuch, you’re using the internal Winstone container

4: How does your system launch Jenkins?  Is it a Unix init.d service, or a Windows service, or do you just launch it at the command line?

5: Are you using a plugin to back up your Jenkins configuration?  I had one at one point and it wanted to shut down my Jenkins daily so that it didn’t back up a moving target.

 

--Rob

The information in this message is for the intended recipient(s) only and may be the proprietary and/or confidential property of Litle & Co., LLC, and thus protected from disclosure. If you are not the intended recipient(s), or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any use, dissemination, distribution or copying of this communication is prohibited. If you have received this communication in error, please notify Litle & Co. immediately by replying to this message and then promptly deleting it and your reply permanently from your computer.

Larry Shatzer, Jr.

unread,
Oct 30, 2012, 10:14:29 AM10/30/12
to jenkins...@googlegroups.com
Are you running your job with this plugin: https://wiki.jenkins-ci.org/display/JENKINS/Exclusive+Execution+Plugin? It will prevent other jobs from running, and the way it does that is to put it into "shutdown" mode so no other jobs run at the same time.

Gaetan

unread,
Oct 30, 2012, 10:43:27 AM10/30/12
to jenkins...@googlegroups.com
Hello

Thanks for your quick answsers!

Here are mine :
- Latest Jenkins, using Linux standalone service (init.d). I'm under latest ubuntu 12.10
- I have the exclusive execution  plugin installed but I don't use it. I'm disabling it right now
- which backup plugin are you talking about? I'm using "Backup plugin", but since it doesn't seem to do the job, I'm also disabling it.

Regards,
-----
Gaetan




2012/10/30 Larry Shatzer, Jr. <lar...@gmail.com>

Eric Pyle

unread,
Nov 2, 2012, 11:15:10 AM11/2/12
to jenkins...@googlegroups.com

I have also seen our Jenkins get stuck in “Jenkins is going to shut down” mode, and it appears to be caused by the thin-backup plugin trying to begin a backup while a long-running job is running. The best solution seems to be to schedule nightly backups to run before starting any long-running jobs in the evening or overnight hours.

 

Regards,

Eric

Gaetan

unread,
Nov 13, 2012, 9:45:58 AM11/13/12
to jenkins...@googlegroups.com
Hello

I can confirm it was coming from the thinBackup plugin. Thanks a lot !

-----
Gaetan




2012/11/2 Eric Pyle <Eric...@tomtom.com>
Reply all
Reply to author
Forward
0 new messages