<< Back to previous view

[QB-3024] Stale PID files prevent the agent startup
Created: 26/Jul/17  Updated: 31/Jan/19

Status: Closed
Project: QuickBuild
Component/s: None
Affects Version/s: 7.0.19
Fix Version/s: None

Type: Bug Priority: Major
Reporter: AlSt Assigned To: Robin Shen
Resolution: Duplicate Votes: 1
Remaining Estimate: Unknown Time Spent: Unknown
Original Estimate: Unknown


 Description   
If for some reason the agent crashes the pid file (sometimes) does not get cleaned. At the next startup attempt it just refuses to start because the pid file is still there.

Please also check if the pid file contains a valid process ID (with valid executable) and if it doesn't just remove the pid file or overwrite it with the new PID.

Thanks,
Alex

 Comments   
Comment by AlSt [ 05/Feb/18 03:14 PM ]
Hi.

This is still an issue. Is there any plan to get this resolved?

Thanks,
Alex
Comment by Robin Shen [ 05/Feb/18 11:41 PM ]
Please edit "conf/wrapper.conf" and search for line "wrapper.pidfile.strict=TRUE". Changing it as FALSE will make JSW ignoring existance of the pid file
Comment by AlSt [ 06/Feb/18 08:22 AM ]
Hi again,

is it ignoring the PID file entirely? I mean the file is needed to see if the wrapper is already running, but something like
* check pid file existing
* check PID in file if it is existing (a process is running with this PID)
* if it is existing -> stop
* if it is not existing -> overwrite
would make sense and not just checking if the file exists.
Comment by Robin Shen [ 06/Feb/18 11:27 PM ]
Yes that is true. We reported the issue to JSW vendor as well and hope they can get it fixed in future versions.
Comment by AlSt [ 07/Feb/18 07:57 AM ]
Thank you. Hopefully this will be incorporated in the next JSW release because this gets more and more annoying.
Comment by Robin Shen [ 31/Jan/19 01:09 AM ]
This will be fixed in QB9 via QB-3297
Generated at Fri May 03 14:03:58 UTC 2024 using JIRA 189.