Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Confusing ETXTBSY error, drivelist 5.1.8 #372

Open
pamuz opened this issue Sep 1, 2020 · 1 comment
Open

Confusing ETXTBSY error, drivelist 5.1.8 #372

pamuz opened this issue Sep 1, 2020 · 1 comment

Comments

@pamuz
Copy link

pamuz commented Sep 1, 2020

We saw an error in our application and it seems to involve this module. The exact error we saw is:

internal/child_process.js:407
    throw errnoException(err, 'spawn');
    ^
Error: spawn ETXTBSY
    at ChildProcess.spawn (internal/child_process.js:407:11)
    at spawn (child_process.js:548:9)
    at Object.execFile (child_process.js:232:17)
    at executeScript (/root/workspace/edge1-app/server/node_modules/drivelist/lib/execute.js:101:16)
    at /root/workspace/edge1-app/server/node_modules/drivelist/lib/execute.js:167:5
    at /root/workspace/edge1-app/server/node_modules/drivelist/lib/execute.js:81:5
    at /root/workspace/edge1-app/server/node_modules/graceful-fs/graceful-fs.js:61:14
    at FSReqCallback.oncomplete (fs.js:156:23) {
  errno: 'ETXTBSY',
  code: 'ETXTBSY',
  syscall: 'spawn'
}

This is with version 5.1.8 of the module.

The usage of the module in our code is limited to:

    Drivelist.list((err, drives) => {
      if (err) {
        ErrorReporter.log(err)
      } else {
        this.data.scanningDrives = false
        this._gotDrives(drives)
      }
    })

Do you have any insights if this is actually from the drivelist module?

@lurch
Copy link
Contributor

lurch commented Sep 2, 2020

This is a complete-stab-in-the-dark (I don't work on drivelist), but is it possible that you're calling the drivelist command "too often"?

Although looking at https://github.com/balena-io-modules/drivelist/blob/master/CHANGELOG.md it seems that 5.1.8 is a very old version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants