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 on Windows GitHub Action #6201
Comments
It seems this is not fixed after all. Even after updating to v7.29.2 I can still see the error: https://github.com/platformatic/platformatic/actions/runs/4415116019/jobs/7737726392
|
I thought graceful-fs retries on EBUSY |
Apparently not, which sounds weird. https://github.com/search?q=repo%3Aisaacs%2Fnode-graceful-fs+EBUSY&type=code |
I can consistently reproduce this on my virtualized windows environment, not just in Github Actions. If you have a fix to test I can definitely test pre-release. |
ok, I'll check on Windows too. Maybe I'll be able to reproduce it locally. |
Try 7.30.0-0 |
I cannot reproduce this locally anymore. Thanks for the help/support! |
Falling back to copying packages from store pnpm: EBUSY: resource busy or locked, copyfile 'd:\pools.pnpm-store\v3\files\91\9eded09712882972a3e568d465b89a5a1c12c81122a9f6052a47bb6d8b15127f864a0fe2246cd2ec402ae44c913751280ce297156ba41e45a75f8ddaabef4e' -> 'C:\xxx\node_modules.pnpm@swagger-api+apidom-core@0.69.0\node_modules@swagger-api_tmp_2716_bc7f600b996c76bc14cfcb02f9f226e1\cjs\index.cjs' C:\xxx>pnpm --version The Problem exists after installing pnpm 7.30.0 |
unzip the file, and copy the package.json file in an empty directory and call and in our case we get above Error. We are sure that virus scanner check that file but your retry does not work |
Try to use a store from the |
Hallo zkochan, i did set store-dir to c:\pools.pnpm-store and the same Result |
can you please open the issue. Thanks |
@Aliziloubaf something that is too much of a coincidence is that we both get this error as part of the |
Is there any solution for this Problem? |
I cannot reproduce the issue locally on my PC. I think the only solution to try to reproduce it would be to add platformatic as an e2e test to pnpm. However, I am not sure how to fix this if retry did not help. |
I cannot reproduce the problem anymore locally, only on actions. For some very unknown reasons some files are locked for 30+ seconds. I think the best way to solve this it to provide a recipe on how to have your action retry automatically. |
Maybe we could try to read the file and then write it? |
I think that would be the last resort option, but it could be worth a shot. I'm starting to think there is some bug in actions. |
Actually, it looks like graceful-fs added a retry only for the rename function, so it makes sense that the issue wasn't fixed: isaacs/node-graceful-fs@ab32dab If I understand correctly, to fix this, we'd have to add EBUSY to this if statement: |
I have patched graceful-fs and released pnpm v7.31.0-0 @mcollina and @Aliziloubaf, please try it. I still can't reproduce it even via CI. |
@zkochan Had you try to install package |
I have added dependencies from platformatic and they don't fail: #6340 |
Well, I have been encountering it for a very long time in my repository https://github.com/aomex/aomex/actions/runs/4606117155/jobs/8139017700 |
Does v7.31.0-0 fix the issue? |
@zkochan I tested my project with v7.31.0-0 several times, and CI looks fine. |
Recently a similar fix was merged for rename isaacs#127. But a similar issue happens on copy as well. ref pnpm/pnpm#6201
This seems to be fixed for me. |
@mcollina do you mean with v7.31.0-0 it is fixed? |
I can still see this in v8.1.1: https://github.com/platformatic/platformatic/actions/runs/4616647923/jobs/8161974544?pr=848#step:5:187. Not sure why it's so intermittent. |
Unfortunately, the bug also occurred with us. Caused by dependencies of swagger-ui I can exclude access from an anti-virus. I hope this helps to isolate the bug |
The fix was not released in 7.31.0 or 8.1.1 The fix is only in v7.31.0-0 |
Yes the version v7.31.0-0 works. However, the cause still seems to be there.
|
🚢 7.32 and 8.2 |
Last pnpm version that worked:
7.29.0
pnpm version:
7.29.1
Code to reproduce the issue:
Run Github Actions on a large workspace project on Windows
Expected behavior:
Install not failing
Actual behavior:
Take a look at https://github.com/platformatic/platformatic/actions/runs/4375185250/jobs/7656654747
It seems that somewhere a retry for
EBUSY
is missing.The text was updated successfully, but these errors were encountered: