<< Back to previous view

[QB-3420] Text file busy warning when running command step causing build to fail
Created: 16/Jul/19  Updated: 11/Mar/20

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

Type: Bug Priority: Minor
Reporter: Sebastian Potasiak Assigned To: Robin Shen
Resolution: Cannot Reproduce Votes: 0
Remaining Estimate: Unknown Time Spent: Unknown
Original Estimate: Unknown


 Description   
We got a warning when running bash command step:

19:33:30,500 WARN - sh: 1: /opt/buildagent/temp/command1422920163808942113.sh: Text file busy

It's marked as a warning but caused the entire step to fail, so it should rather be an error.

It also seems to be a bug in QuickBuild (that this warning even occurred) as I assume the issue should not ever appear. I'm not sure why the file was busy, but I might suspect that two separate processes tried to use the same file at the same time. How is the number in the file name generated? It should be unique in all possible cases.

 Comments   
Comment by Robin Shen [ 17/Jul/19 12:20 AM ]
QB relies on JVM temp file generating mechanism to generate unique file for each run. At which point this error occurs? And is this happening all the time or occasionally?
Comment by Sebastian Potasiak [ 17/Jul/19 07:54 AM ]
The error occurs occasionally when running a command step. I assume the sh file contains a shell script defined in the script.
Comment by Robin Shen [ 18/Jul/19 12:55 AM ]
Can you please send me full log containing this error? You may send to [robin AT pmease DOT com]
Generated at Fri Apr 26 09:36:13 UTC 2024 using JIRA 189.