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

Linking in Azure Linux AppService after v1.9.4 not working - EBADF: bad file descriptor, copyfile #7440

Open
michaelmiklis opened this issue Jul 26, 2019 · 6 comments

Comments

@michaelmiklis
Copy link

michaelmiklis commented Jul 26, 2019

When running yarn version higher than 1.9.4 linking will fail with random packages / files:

error An unexpected error occurred: "EBADF: bad file descriptor, copyfile '/usr/local/share/.cache/yarn/v2/npm-amdefine-1.0.1-4a5282ac164729e93619bcfd3ad151f817ce91f5/LICE
NSE' -> '/home/site/wwwroot/node_modules/amdefine/LICENSE'".

It is reproducible when installing yarn using "npm install yarn@Version" and triggering yarn:
node node_modules/yarn/bin/yarn.js install --production --non-interactive --force

Version 1.9.4 is working, version 1.10.0 is the first version throwing an error. Maybe it is related to #5456

package.txt

@st-bender
Copy link

Hi,
I ran into a similar problem where jupterlab wouldn't build (jupyterlab/jupyterlab#6969).
#5456 (and the update #6432) really seems to be the culprit, replacing ficloneFlag by 0 fixed my problem, maybe it will fix yours as well?

Cheers.

@st-bender
Copy link

Hi,
It's been a while, I think the problem was in libuv and should be fixed with the latest release (v1.33.0) of libuv. Could you check? It probably takes some time to propagate to the packagers, though.
Cheers.

@michaelmiklis
Copy link
Author

Hello,
is libuv part of the yarn npm package or how can i get the latest version?
kind regards

@st-bender
Copy link

Hello,
is libuv part of the yarn npm package or how can i get the latest version?
kind regards

Hi, I think it is bundled with node.js. A pull request has been submitted, I guess it will take a few days to show up as an update. If you know how to compile things, you could check out the libuv repository and compile it yourself to replace the current one.
Depends a little on your setup how difficult that will be.

Btw., did you try to edit the yarn program file as suggested above?

Cheers.

@st-bender
Copy link

Hi again,
The bug is fixed for me by updating libuv to the latest version (v1.33.1).
The updated library and a new version of nodejs are at least available via the python conda package manager. I don't know how your setup looks like, you could try updating npm via npm install -g npm, or maybe you find something useful here:
https://stackoverflow.com/questions/6237295/how-can-i-update-nodejs-and-npm-to-the-next-versions
Cheers.

@FossPrime
Copy link

I'm also experiencing this in android-x86-termux. I manually installed libuv 1.43, but it seems to be ignored. It seems to reliably fail while installing the first package on the list '@babel/code-frame'.

~/tdps/learn-admin $ npm --version
8.3.1
~/tdps/learn-admin $ yarn --version
1.22.17
~/tdps/learn-admin $ node --version
v17.4.0

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

3 participants