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

[Windows]: Error: EBUSY: resource busy or locked, unlink '...\isolate-000001B4104292E0-4132-4132-v8.log' #266

Closed
budarin opened this issue Sep 27, 2022 · 5 comments
Labels

Comments

@budarin
Copy link

budarin commented Sep 27, 2022

using the cmd on Windows

0x --collect-only -P 'sh ./scripts/benchmark/autocannon.sh' ./dist/server.js;

get the error:

Waiting for subprocess to exit...Error:
EBUSY: resource busy or locked, unlink 'D:\Project\isolate-000001B4104292E0-4132-4132-v8.log'
    at Object.unlinkSync (node:fs:1780:3)
    at C:\Users\Master\AppData\Local\npm-cache\_npx\157372ca833166ed\node_modules\0x\index.js:95:12
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async zeroEks (C:\Users\Master\AppData\Local\npm-cache\_npx\157372ca833166ed\node_modules\0x\index.js:46:43)     
    at async cmd (C:\Users\Master\AppData\Local\npm-cache\_npx\157372ca833166ed\node_modules\0x\cmd.js:98:21) {
  errno: -4082,
  syscall: 'unlink',
  code: 'EBUSY',
  path: 'D:\\Project\\isolate-000001B4104292E0-4132-4132-v8.log'
}

Windows 10 Pro

@budarin budarin changed the title [Windows]: Waiting for subprocess to exit...Error: EBUSY: resource busy or locked, unlink '...\isolate-000001B4104292E0-4132-4132-v8.log' [Windows]: Error: EBUSY: resource busy or locked, unlink '...\isolate-000001B4104292E0-4132-4132-v8.log' Sep 27, 2022
@jordanbtucker
Copy link

This appears to be a WSL issue.

microsoft/WSL#7972

@budarin
Copy link
Author

budarin commented Oct 6, 2022

I'm sorry, but I didn't see the connection of my case with that

@budarin budarin closed this as completed Oct 6, 2022
@budarin budarin reopened this Oct 6, 2022
@budarin
Copy link
Author

budarin commented Oct 14, 2022

It seems to me that the problem is that there is an attempt to unlink the file while the Windows subsystems are still writing data to it. Maybe you should give some time and try to unlink later or move it to the very end of the program?

@github-actions
Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the Stale label Nov 14, 2022
@github-actions
Copy link

This issue was closed because it has been stalled for 5 days with no activity.

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

No branches or pull requests

2 participants