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

EBUSY: resource busy or locked, unlink #225

Closed
owen-hong opened this issue Mar 8, 2016 · 4 comments
Closed

EBUSY: resource busy or locked, unlink #225

owen-hong opened this issue Mar 8, 2016 · 4 comments

Comments

@owen-hong
Copy link

code: "EPERM"errno: -4048message: "EPERM: operation not permitted, unlink 'C:\Program Files (x86)\Maxim\d3dcompiler_47.dll'"path: "C:\Program Files (x86)\Maxim\d3dcompiler_47.dll"

code: "EBUSY"errno: -4082message: "EBUSY: resource busy or locked, unlink 'C:\Program Files (x86)\Maxim\icudtl.dat'"path: "C:\Program Files (x86)\Maxim\icudtl.dat"

@RyanZim
Copy link
Collaborator

RyanZim commented Oct 26, 2016

Not enough info to reproduce. If this is still an issue, please open a new issue with more info/context.

@RyanZim RyanZim closed this as completed Oct 26, 2016
@gklasen
Copy link

gklasen commented Jul 12, 2018

It is new to me that missing information for reproducing an issue (you are right on that one!) automatically justifies to close issues.

@filmaj
Copy link

filmaj commented Mar 4, 2021

FWIW I hit this (on windows only) in my CI build, see https://github.com/copperinc/plugin-iot-rules/pull/4/checks?check_run_id=2034035750

I use copy and mkdirp during test setup, and remove during test teardown. The teardown part errors out with:

Suite error: plugin packaging function
  Message:
    Error: EBUSY: resource busy or locked, rmdir 'D:\a\plugin-iot-rules\plugin-iot-rules\test\tmp'
  Stack:
    error properties: Object({ errno: -4082, code: 'EBUSY', syscall: 'rmdir', path: 'D:\a\plugin-iot-rules\plugin-iot-rules\test\tmp' })
    Error: EBUSY: resource busy or locked, rmdir 'D:\a\plugin-iot-rules\plugin-iot-rules\test\tmp'

@filmaj
Copy link

filmaj commented Mar 4, 2021

Update: I was doing something stupid! My test setup involved creating a directory, changing into that directory (via process.chdir), then on test completion, deleting the directory, then changing out of the directory. On windows, this would cause issues (not on Ubuntu or mac OS).

I was able to fix it on windows by first changing out of the directory, then deleting it. Woopsy 😊

Repository owner locked as resolved and limited conversation to collaborators Mar 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants