Skip to content

Error: spawn ETXTBSY #82

Closed
Closed

Description

@adarshpala-hubdoc

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.

Activity

  1. ckzgraphics commented on Aug 26, 2019

    @ckzgraphics
    Contributor

    Did you try updating to the latest version 1.4.2 ?

    Try this out and do share your findings.

  2. adarshpala-hubdoc commented on Aug 26, 2019

    @adarshpala-hubdoc
    Author

    Thanks for your help, once enough CI builds have run I will update the issue.

  3. adarshpala-hubdoc commented on Aug 28, 2019

    @adarshpala-hubdoc
    Author

    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.

  4. adarshpala-hubdoc commented on Sep 4, 2019

    @adarshpala-hubdoc
    Author

    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?

  5. vedharish commented on Sep 5, 2019

    @vedharish
    Contributor

    @adarshpala-hubdoc Please share the logs from this module. Check

  6. adarshpala-hubdoc commented on Sep 9, 2019

    @adarshpala-hubdoc
    Author

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions