-
Notifications
You must be signed in to change notification settings - Fork 30.7k
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
Node 22 node-gyp build fails "Text file busy" #53051
Comments
Also having this issue (running node through yarn on arch, kernel version 6.9.1), since a kernel upgrade yesterday. |
Same problem on arch after upgrading the kernel, any type of |
On my system any execution of |
Hello, after downgrading kernel to 6.8.9, the problem went away. |
Can you please open an issue in https://github.com/libuv/libuv/issues with the specific kernel version/s so we can blacklist them? Thanks |
I've made kernel bisect. the last good commit: 2708af1adc11700c6c3ce4109e3b133079a36a78 |
Also confirming it is definitely af5d68f8892f8ee8f137648b79ceb2abc153a19b after bisecting myself. |
There is a kernel patch for those interested. Otherwise this will probably be fixed in 6.9.2. |
The same issue happens with Node v18 and v20.
zen-kernel is unaffected.
|
I have updated the main bug comment with some extra information, indicated with an "Edit" marker above the text. Mainly to hopefully be seen by anyone just arriving at the bug. |
As a temporary workaround it's also possible to use the |
I don't know if this will help someone, but I'm able to run with no problems after downgrading the node to the version |
This solved my problem. Thanks <3 |
Still an issue with kernel 6.9.2. |
kernel 6.9.3 seems to fix this issue. |
Version
v22.0.0
Platform
Linux laharl 6.9.1-arch1-1 #1 SMP PREEMPT_DYNAMIC Fri, 17 May 2024 16:56:38 +0000 x86_64 GNU/Linux
Subsystem
node-gyp
What steps will reproduce the bug?
How often does it reproduce? Is there a required condition?
It happens every time. It appears to be a race condition with io_uring with kernel 6.9.x on x86_64.
What is the expected behavior? Why is that the expected behavior?
The packages should build properly.
What do you see instead?
Two of the node-gyp build steps fail:
Additional information
I am re-reporting this issue because it does not involve use of Docker. Currently, thelounge package has added a workaround to disable io_uring in libuv to allow the build to pass.
Edit 1:
Related bug reports have suggested this is only a problem because Arch builds nodejs against the system libuv, which it configures with the defaults, which enable io_uring support.
A kernel fix is slated for 6.9.2 that will likely work around the errors, but will not work around Arch or other distributions which have not disabled io_uring support in libuv like node has for security reasons. However, I am not sure how much of a threat model the io_uring support is, considering it's probably not that wise to be running node suid/sgid in the first place.
The text was updated successfully, but these errors were encountered: