Closed danielflippance closed 3 years ago
Hello, we reviewed this issue and determined that it doesn't fall into the bug report or feature request category. This issue tracker is not suitable for support requests, please repost your issue on StackOverflow using tag angular-cli
.
If you are wondering why we don't resolve support issues via the issue tracker, please check out this explanation.ns
Thanks for clarifying. I was also posted on StackOverflow: https://stackoverflow.com/questions/68120537/angular-build-eperm-operation-not-permitted-copyfile
Not sure if this is still an issue but the seccomp configuration is most likely the cause. The set of sys calls used by Node.js for copying files can be found by tracing through the source code here: https://github.com/nodejs/node/blob/v14.17.1/deps/uv/src/unix/fs.c#L1153
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.
Bug Report
Affected Package
The issue is happens when running a build: ng build
Is this a regression?
The Angular build worked before we updated our OS packages.
Description
We are running Jenkins on Docker to build an Angular 12 project. The Angular build was working until we updated the OS packages on the host machine during regular maintenance. After doing that we receive this error in the build:
We are using docker-compose seccomp to allow copyfile and we are running the Angular build as root to rule out permissions:
seccomp.json:
These are the packages that were updated on the Ubuntu host:
We can successfully create and copy files in the Jenkins
sh
commandMinimal Reproduction
The issue appears to be a combination of multiple OS versions alongside Angular and the latest OS packages listed above.
Exception or Error
Your Environment
Angular Version:
OS versions Host OS: Ubuntu 18.04.5 LTS (Bionic Beaver) Linux 4.15.0-126-generic angular/angular#129-Ubuntu SMP Mon Nov 23 18:53:38 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Jenkins Docker Container OS: Debian GNU/Linux 10 (buster)
Docker Docker version 20.10.7, build f0df350
Anything else relevant? To rule out permissions, we are running as root. We have tried the same build on Angular 9, 10, 11 and 12 with the same results.