[JIRA] (JENKINS-55106) Build stuck on final "exit 0"

70 views
Skip to first unread message

jenkins.jira@wikipiedi.it (JIRA)

unread,
Dec 10, 2018, 9:22:03 AM12/10/18
to jenkinsc...@googlegroups.com
Michele Ippolito created an issue
 
Jenkins / Bug JENKINS-55106
Build stuck on final "exit 0"
Issue Type: Bug Bug
Assignee: Unassigned
Components: core
Created: 2018-12-10 14:21
Environment: Jenkins 2.150
Windows 7
cygwin
Labels: regression
Priority: Minor Minor
Reporter: Michele Ippolito

After executing successfully the shell script the workers remain stuck for 10 minutes on the final "exit 0".

There hasn't been any other failure that I could find: all the jobs run exactly as planned, they just don't seem to exit.

The fact that the jobs remain stuck for exactly 600 seconds makes me think of a timeout of some sort.

Reverting to 2.138 fixed the issue, that's why I am marking it as a regression.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

vamsi_ch@rocketmail.com (JIRA)

unread,
Dec 11, 2018, 3:05:01 PM12/11/18
to jenkinsc...@googlegroups.com
Guru Vamsi CHINTALA commented on Bug JENKINS-55106
 
Re: Build stuck on final "exit 0"

We are seeing the same issue in regular builds and pull requests, build stucks on exit 0 for 10 minutes and reports the status.

vamsi_ch@rocketmail.com (JIRA)

unread,
Dec 11, 2018, 3:05:02 PM12/11/18
to jenkinsc...@googlegroups.com
Guru Vamsi CHINTALA edited a comment on Bug JENKINS-55106
We are seeing the same issue in regular builds and pull requests, build stucks on exit 0 for 10 more than 5 minutes and reports the status.

skline@precisiontele.com (JIRA)

unread,
Dec 12, 2018, 8:53:02 AM12/12/18
to jenkinsc...@googlegroups.com

We are seeing this issue as well on version 2.150.1 running on Windows Server 2012 R2. Builds that took 4 minutes prior to the upgrade were taking 18 minutes afterward. We have reverted to version 2.138.3, which resolved the issue.

If there's information that I can provide to help pin this down, please let me know.

vamsi_ch@rocketmail.com (JIRA)

unread,
Dec 12, 2018, 10:18:01 AM12/12/18
to jenkinsc...@googlegroups.com

Reverting the jenkins version to 2.138.3 fixed the issue. Hope it is fixed in next Jenkins LTS version.

Thank you  Sean.

anatoly.shirokov@gmail.com (JIRA)

unread,
Dec 14, 2018, 1:57:01 PM12/14/18
to jenkinsc...@googlegroups.com

anatoly.shirokov@gmail.com (JIRA)

unread,
Dec 14, 2018, 2:24:03 PM12/14/18
to jenkinsc...@googlegroups.com
Anatoly Shirokov edited a comment on Bug JENKINS-55106
Confirmed. The same issue with 2.150.1. As you see exactly 10 minutes before finished :

```

19:59:42 D:\Jenkins\jobs\product\workspace>echo done
19:59:42 done
19:59:42
19:59:42 D:\Jenkins\jobs\product\workspace>exit 0
20:09:44 Finished: SUCCESS

```

We have reverted to the 2.138.2 version.

 

 

anatoly.shirokov@gmail.com (JIRA)

unread,
Dec 14, 2018, 2:25:03 PM12/14/18
to jenkinsc...@googlegroups.com
Anatoly Shirokov edited a comment on Bug JENKINS-55106
Confirmed. The same issue with 2.150.1. As you see exactly 10 minutes before finished the finish :

 
{code:java}

19:59:42 D:\Jenkins\jobs\product\workspace>echo done
19:59:42 done
19:59:42
19:59:42 D:\Jenkins\jobs\product\workspace>exit 0
20:09:44 Finished: SUCCESS
{code}

We have reverted to the 2.138.2 version.

 

 

anatoly.shirokov@gmail.com (JIRA)

unread,
Dec 14, 2018, 2:25:03 PM12/14/18
to jenkinsc...@googlegroups.com
Anatoly Shirokov edited a comment on Bug JENKINS-55106
Confirmed. The same issue with 2.150.1. As you see exactly 10 minutes before finished:

```  
{code:java}
19:59:42 D:\Jenkins\jobs\product\workspace>echo done
19:59:42 done
19:59:42
19:59:42 D:\Jenkins\jobs\product\workspace>exit 0
20:09:44 Finished: SUCCESS
{code}
```

We have reverted to the 2.138.2 version.

 

 

anatoly.shirokov@gmail.com (JIRA)

unread,
Dec 14, 2018, 2:42:02 PM12/14/18
to jenkinsc...@googlegroups.com
Anatoly Shirokov edited a comment on Bug JENKINS-55106
Confirmed. The same issue with 2.150.1 on Windows 2003, JDK 8 . As you see exactly 10 minutes before the finish:


 
{code:java}
19:59:42 D:\Jenkins\jobs\product\workspace>echo done
19:59:42 done
19:59:42
19:59:42 D:\Jenkins\jobs\product\workspace>exit 0
20:09:44 Finished: SUCCESS
{code}
We have reverted to the 2.138.2 version.

 

 

anatoly.shirokov@gmail.com (JIRA)

unread,
Dec 14, 2018, 2:42:03 PM12/14/18
to jenkinsc...@googlegroups.com
Anatoly Shirokov edited a comment on Bug JENKINS-55106
Confirmed. The same issue with 2.150.1 on Windows Server 2003, JDK 8. As you see exactly 10 minutes before the finish:


 
{code:java}
19:59:42 D:\Jenkins\jobs\product\workspace>echo done
19:59:42 done
19:59:42
19:59:42 D:\Jenkins\jobs\product\workspace>exit 0
20:09:44 Finished: SUCCESS
{code}
We have reverted to the 2.138.2 version.

 

 

anatoly.shirokov@gmail.com (JIRA)

unread,
Dec 14, 2018, 2:54:02 PM12/14/18
to jenkinsc...@googlegroups.com
Anatoly Shirokov updated an issue
 
Change By: Anatoly Shirokov
Priority: Minor Critical

scb147@bakerpage.com (JIRA)

unread,
Feb 6, 2019, 4:47:03 PM2/6/19
to jenkinsc...@googlegroups.com
Shawn Baker commented on Bug JENKINS-55106
 
Re: Build stuck on final "exit 0"

I can also confirmed this on Windows Server 2012 R2, JDK 8 on Jenkins 2.150.2.  After the Build portion of the configuration has completed, there is a 10 minute delay before the Post-build Actions begin.

I reverted back to 2.138.4.

jenkins.jira@wikipiedi.it (JIRA)

unread,
Feb 12, 2019, 7:48:02 AM2/12/19
to jenkinsc...@googlegroups.com

I tried upgrading my instance to 2.164 and I can still reproduce it. I'll revert again to 2.138 for the moment.

I'll lose access to this instance soon (~3 weeks) so if anyone needs me to try stuff, now's the time.

vamsi_ch@rocketmail.com (JIRA)

unread,
Feb 12, 2019, 8:55:02 AM2/12/19
to jenkinsc...@googlegroups.com

skline@precisiontele.com (JIRA)

unread,
Feb 13, 2019, 12:14:03 PM2/13/19
to jenkinsc...@googlegroups.com

Thank you very much for pointing this out, Guru. We tried this and are now running 2.150.2 without the delay.

Have a great day!

kredens@outlook.com (JIRA)

unread,
Mar 21, 2019, 4:11:03 AM3/21/19
to jenkinsc...@googlegroups.com
K D commented on Bug JENKINS-55106

Still doesn't work properly, had to roll back from 2.164.1 LTS to 2.138.4 LTS. Workaround mentioned above doesn't work for me either, builds are getting stuck.

dbeck@cloudbees.com (JIRA)

unread,
Mar 23, 2019, 5:24:03 AM3/23/19
to jenkinsc...@googlegroups.com

Workaround mentioned above doesn't work for me either

Are you sure you applied it correctly? Check the /systemInfo to see whether the system property is defined in Jenkins?

kredens@outlook.com (JIRA)

unread,
Mar 23, 2019, 10:16:03 AM3/23/19
to jenkinsc...@googlegroups.com
kredens commented on Bug JENKINS-55106

Daniel Beck yes, it's applied properly and still various builds are randomly getting stuck. 

dbeck@cloudbees.com (JIRA)

unread,
Mar 23, 2019, 11:10:03 AM3/23/19
to jenkinsc...@googlegroups.com

kredens While you're waiting for the build to finish, check what Jenkins is doing: https://wiki.jenkins.io/display/JENKINS/Obtaining+a+thread+dump

josh.schreuder@gmail.com (JIRA)

unread,
Mar 27, 2019, 12:32:02 AM3/27/19
to jenkinsc...@googlegroups.com

Does this work for Jenkins slaves? This fixed our master instance, but it seems like a similar issue is present with jobs that run on slaves.

Adding `-DSoftKillWaitSeconds=0` to jenkins-slave.xml and restarting the service adds it to the command line, but it doesn't seem to have any effect. Any ideas?

kredens@outlook.com (JIRA)

unread,
Mar 27, 2019, 2:49:02 AM3/27/19
to jenkinsc...@googlegroups.com
kredens commented on Bug JENKINS-55106

I should add I also run the jobs on slaves, not on the master node.

rob.anderson@nomadgames.co.uk (JIRA)

unread,
Apr 26, 2019, 3:23:03 AM4/26/19
to jenkinsc...@googlegroups.com

We also experience this but only on slave machines, and adding -DSoftKillWaitSeconds=0 has no affect on slave nodes.

kwlamb@gmail.com (JIRA)

unread,
May 2, 2019, 3:23:04 PM5/2/19
to jenkinsc...@googlegroups.com
Ken Lamb commented on Bug JENKINS-55106

We also experience this issue with jobs that run on slave machines. Adding -DSoftKillWaitSeconds did not affect the issue.

kwlamb@gmail.com (JIRA)

unread,
May 2, 2019, 6:50:03 PM5/2/19
to jenkinsc...@googlegroups.com
Ken Lamb edited a comment on Bug JENKINS-55106
We also experience this issue with jobs that run on slave machines. Adding -DSoftKillWaitSeconds did not affect the issue.


Tried rolling back to Jenkins version 2.150.3, but the bug was still there.

Then, rolled back to Jenkins version 2.138.3, and the bug is now gone.

We will have to stay on 2.138.3 until this bug is resolved.

kwlamb@gmail.com (JIRA)

unread,
May 2, 2019, 7:44:02 PM5/2/19
to jenkinsc...@googlegroups.com
Ken Lamb edited a comment on Bug JENKINS-55106
We also experience this issue with jobs that run on slave machines. Adding -DSoftKillWaitSeconds did not affect the issue.

Tried rolling back to Jenkins version 2.150.3, but the bug was still there.

Then, rolled back to Jenkins version 2.138. 3 4 , and the bug is now gone.

We will have to stay on 2.138.
3 4 until this bug is resolved.

dbeck@cloudbees.com (JIRA)

unread,
May 2, 2019, 8:36:02 PM5/2/19
to jenkinsc...@googlegroups.com

To clarify, are you setting the system property on agent processes? I.e. as additional launch arguments to java -jar agent.jar?

kwlamb@gmail.com (JIRA)

unread,
May 2, 2019, 8:42:04 PM5/2/19
to jenkinsc...@googlegroups.com
Ken Lamb commented on Bug JENKINS-55106

I only set it on the master launch process. From what I have read, it has no effect on slaves.

dbeck@cloudbees.com (JIRA)

unread,
May 2, 2019, 8:48:02 PM5/2/19
to jenkinsc...@googlegroups.com

Right, Josh wrote that. Would still like explicit confirmation from someone affected that setting it doesn't work, including confirmation that it appears correctly on the URL /computer/name_here/systemInfo in the list of system properties, since it's easy to get the Java invocation wrong.

josh.schreuder@gmail.com (JIRA)

unread,
May 2, 2019, 10:52:08 PM5/2/19
to jenkinsc...@googlegroups.com
Josh Schreuder updated an issue
 
Change By: Josh Schreuder
Attachment: image-2019-05-03-12-51-09-161.png

josh.schreuder@gmail.com (JIRA)

unread,
May 2, 2019, 10:52:09 PM5/2/19
to jenkinsc...@googlegroups.com
Josh Schreuder updated an issue
Change By: Josh Schreuder
Attachment: image-2019-05-03-12-51-45-572.png

josh.schreuder@gmail.com (JIRA)

unread,
May 2, 2019, 10:53:02 PM5/2/19
to jenkinsc...@googlegroups.com
Josh Schreuder commented on Bug JENKINS-55106
 
Re: Build stuck on final "exit 0"

Daniel Beck

Here's the slave command line:

And from jenkins-slave.xml

I'm pretty confident that this invocation is correct, as it's copied from our master agent where this parameter is working fine.

scb147@bakerpage.com (JIRA)

unread,
Jul 12, 2019, 3:28:02 PM7/12/19
to jenkinsc...@googlegroups.com

Any progress with this? I understand that there is a workaround, but shouldn't the issue that broke it be looked at to at least see why it's broken?

scb147@bakerpage.com (JIRA)

unread,
Jul 12, 2019, 3:29:04 PM7/12/19
to jenkinsc...@googlegroups.com
Shawn Baker edited a comment on Bug JENKINS-55106
Any progress with this? I understand that there is a workaround, but shouldn't the issue commit that broke it be looked at to at least see why it's broken?

P.Mascha@osram.com (JIRA)

unread,
Aug 22, 2019, 5:27:03 AM8/22/19
to jenkinsc...@googlegroups.com

Can you please fix this? 

fsteff@gmail.com (JIRA)

unread,
Aug 27, 2019, 4:17:03 AM8/27/19
to jenkinsc...@googlegroups.com

We've had this problem for 6 months or more, and have been searching high and low for a solution, without finding this issue.

Just applied the workaround on one of our agents, and immediately cut down the build-time of one of our jobs by 25 minutes!!!!!!!!!! 

I can't wait to see how much server time will be freed by this, but it looks like a LOT!

anlin@adobe.com (JIRA)

unread,
Feb 6, 2020, 12:48:03 PM2/6/20
to jenkinsc...@googlegroups.com
Andy Lin commented on Bug JENKINS-55106

This issue is preventing me from upgrading my Jenkins, and the plugin to Jenkins version gap is getting harder and harder to deal with.

Is this issue going to be looked at? And has anyone had success with a workaround for a Jenkins instance that uses only slave machines?

This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

kwlamb@gmail.com (JIRA)

unread,
Feb 6, 2020, 12:58:03 PM2/6/20
to jenkinsc...@googlegroups.com
Ken Lamb commented on Bug JENKINS-55106

Just wanted to add a "me too" to Andy Lin's comment.
I used to be very diligent about keeping my Jenkins and all the plugins up to date.
This bug, however, has everything stuck with what works using Jenkins 2.138.4.

Rocha@Stratovan.com (JIRA)

unread,
Feb 6, 2020, 1:01:03 PM2/6/20
to jenkinsc...@googlegroups.com

Andy Lin, what scenario are you encountering this under? I had a similar problem when using MS Visual Studio on a slave.

In my case the problem is that the slave waits for remote processes to close, and has a timeout of ~2 minutes per process. I found that I had parallel compiles enabled and 6 remote VS compile session on the slave. When it finished, those VS processes would not go away, and every 2 minutes jenknis would kill one of them.

I learned that MS causes compile processes to stick around once they are started. The idea being that when a new compile is needed it can grab one of the idle processes. However, in my case Jenkins doesn't need/want any more compiles and is stuck waiting for the VS processes to go away.

There is a flag that can be used at the command line that informs VS to not keep the processes alive. Details for this can be found in a similar issue I logged JENKINS-59400

anlin@adobe.com (JIRA)

unread,
Feb 6, 2020, 1:22:12 PM2/6/20
to jenkinsc...@googlegroups.com
Andy Lin commented on Bug JENKINS-55106

John Rocha, I do use MS Visual Studio on some of my slave machines, but I don't think it does parallel compilation. I'll be sure to try out what you suggested. Do you experience the issue if you don't do parallel compiles?

I have Mac slave machines for the other half. The solution you had might apply in some way so I'll have to investigate if xcodebuild also does something similar with lingering processes. Thanks!

Rocha@Stratovan.com (JIRA)

unread,
Feb 6, 2020, 1:36:05 PM2/6/20
to jenkinsc...@googlegroups.com

Andy Lin, I didn't seem to notice it when I did simple compiles without parallel compilation. Although I honestly would expect there to be at least a 2 minute delay even if there is just one compile process. But I don't know.

Good luck.

kredens@outlook.com (JIRA)

unread,
Feb 24, 2020, 7:43:06 AM2/24/20
to jenkinsc...@googlegroups.com
kredens commented on Bug JENKINS-55106

I don't see the issue anymore using v2.204.2 and newest set of BlueOcean plugins.

kredens@outlook.com (JIRA)

unread,
Feb 24, 2020, 7:43:07 AM2/24/20
to jenkinsc...@googlegroups.com
kredens edited a comment on Bug JENKINS-55106
I don can 't see the issue anymore using v2.204.2 and newest set of BlueOcean plugins.

kredens@outlook.com (JIRA)

unread,
Apr 8, 2020, 7:45:03 AM4/8/20
to jenkinsc...@googlegroups.com
kredens updated an issue
 
Change By: kredens
Comment: I can't see the issue anymore using v2.204.2 and newest set of BlueOcean plugins.
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo

kredens@outlook.com (JIRA)

unread,
Apr 8, 2020, 7:46:03 AM4/8/20
to jenkinsc...@googlegroups.com
kredens commented on Bug JENKINS-55106
 
Re: Build stuck on final "exit 0"

Well, time passes, and some jobs still get stuck on the FINAL stage for about two minutes before finally letting go. How hard can it be to fix this?

dbeck@cloudbees.com (JIRA)

unread,
Apr 8, 2020, 7:47:03 AM4/8/20
to jenkinsc...@googlegroups.com

kredens If it's so easy, submit a PR that does it.

kredens@outlook.com (JIRA)

unread,
Apr 8, 2020, 8:37:02 AM4/8/20
to jenkinsc...@googlegroups.com
kredens commented on Bug JENKINS-55106

Daniel Beck I'm not a developer on this project, neither am I using it by choice. Also - it used to work fine until someone changed something and can't be bothered to fix it.

Reply all
Reply to author
Forward
0 new messages