Error: spawn ETXTBSY
adarshpala-hubdoc opened this issue · 6 comments
Issue: #19
Error: spawn ETXTBSY
at _errnoException (util.js:1022:11)
at ChildProcess.spawn (internal/child_process.js:323:11)
at exports.spawn (child_process.js:502:9)
at Object.exports.execFile (child_process.js:212:15)
I'm reopening this issue again because I'm seeing the same problem pop up in CI right now. This was the accepted solution that was merged into master:
#23
The version of the dependancy is 1.3.7
The problem occurs when attempting to launch browserstack-local during an AWS CodeBuild run. It isn't consistently throwing an error though so there may still be a race condition which was mentioned in the original issue.
The problem occurred in a container running Ubuntu 14.04.6 LTS.
Did you try updating to the latest version 1.4.2 ?
Try this out and do share your findings.
Thanks for your help, once enough CI builds have run I will update the issue.
Unfortunately, it looks like updating to version 1.4.2 didn't solve the problem as a CI build has failed with the same problem since the update.
Update on this issue: After several more CI builds have run the frequency of running into this problem seems to have increased if anything. Is there anything else that I could do to prevent this from happening?
@adarshpala-hubdoc Please share the logs from this module. Check
Thank you, the issue has been fixed. The problem was that the function to run test-cafe was not being called in the callback function supplied to the browserstack-local launch function. It was instead being called directly after which resulted in a race condition. This was fixed by calling test-cafe in the callback function.