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

Filesystem permission issue with node version > 12.18.4 on Docker build #37763

Closed
joeheyming opened this issue Mar 16, 2021 · 7 comments
Closed

Comments

@joeheyming
Copy link

joeheyming commented Mar 16, 2021

  • Node Version: 12.21.1
  • Platform: Docker Ubuntu
uname -a
Linux 9c82f221dbb3 4.4.0-34-generic #53-Ubuntu SMP Wed Jul 27 16:06:39 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
$ docker --version
Docker version 1.13.1, build 092cba3

What steps will reproduce the bug?

yarn install on my project is failing with the following error:

error An unexpected error occurred: "EPERM: operation not permitted, copyfile '/home/xxxx/.cache/yarn/v3/npm-@ant-design-icons-4.5.0-dc5ceff85503932265143dc5c3013167daa3f754/node_modules/@ant-design/icons/AccountBookFilled.d.ts' -> '/home/xxxx/web/node_modules/@ant-design/icons/AccountBookFilled.d.ts'".

How often does it reproduce? Is there a required condition?

Every single time I do yarn install with node version > 12.18.4, it fails (also fails with node 14)
When I downgrade to node 12.18.4, it succeeds.

What is the expected behavior?

yarn install succeeds.

What do you see instead?

error An unexpected error occurred: "EPERM: operation not permitted, copyfile '/home/xxxx/.cache/yarn/v3/npm-@ant-design-icons-4.5.0-dc5ceff85503932265143dc5c3013167daa3f754/node_modules/@ant-design/icons/AccountBookFilled.d.ts' -> '/home/xxxx/web/node_modules/@ant-design/icons/AccountBookFilled.d.ts'".

@RaisinTen
Copy link
Contributor

Is this the same issue as #37284?

@joeheyming
Copy link
Author

It looks similar. Probably related. Has this been fixed?

@RaisinTen
Copy link
Contributor

It is being fixed at libuv here: libuv/libuv#3123
I'm assuming that you're using cephfs? If not, we might have to report this again at libuv because the linked PR tries to fix this particularly for cephfs.

@joeheyming
Copy link
Author

Hi @RaisinTen I just used v15.11.0 and I was able to reproduce the issue:

error An unexpected error occurred: "EPERM: operation not permitted, copyfile '/home/xxx/.cache/yarn/v3/npm-@babel-preset-env-7.10.2-715930f2cf8573b0928005ee562bed52fb65fdfb/node_modules/@babel/preset-env/LICENSE' -> '/home/xxx/web/node_modules/@babel/preset-env/LICENSE'".
info If you think this is a bug, please open a bug report with the information provided in "/home/xxx/web/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
[xxx@56c0b783a5e3 web]$ node --version
v15.11.0

@RaisinTen
Copy link
Contributor

That's good. But are you using cephfs? The PR assumes that cephfs is being used.

@joeheyming
Copy link
Author

We are not using cephfs.

@RaisinTen
Copy link
Contributor

Okay, I have linked the issue in libuv/libuv#3123 (comment). Closing this as nothing can be done from our side.

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

2 participants