trion-development / docker-ng-cli-e2e

Angular end2end tests inside docker
MIT License
24 stars 11 forks source link

Permission Denied w/ tag 11.2.3 #18

Closed lmgillaspie closed 3 years ago

lmgillaspie commented 3 years ago

After the latest update (11.2.3), our Concourse job using this image and another job using trion/ng-cli-karma started failing due to a lack of permissions. We did not make any changes to our job scripts; the only thing that changed was the image tag. For now we will downgrade to 11.2.2, but hope you can add admin privileges back to the container.

When trying to run apt-get update -yq we get the below error:

Reading package lists...

E: List directory /var/lib/apt/lists/partial is missing. - Acquire (13: Permission denied)

E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)

E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?

Also, when trying to run npm install we get the below error:

25hnpm WARN checkPermissions Missing write access to /tmp/build/7650dcdc/<app_name>/<frontend>

npm ERR! code EACCES

npm ERR! syscall access

npm ERR! path /tmp/build/7650dcdc/<app_name>/<frontend>

npm ERR! errno -13

npm ERR! Error: EACCES: permission denied, access '/tmp/build/7650dcdc/<app_name>/<frontend>'

npm ERR!  [Error: EACCES: permission denied, access '/tmp/build/7650dcdc/<app_name>/<frontend>'] {

npm ERR!   errno: -13,

npm ERR!   code: 'EACCES',

npm ERR!   syscall: 'access',

npm ERR!   path: '/tmp/build/7650dcdc/<app_name>/<frontend>'

npm ERR! }

npm ERR! 

npm ERR! The operation was rejected by your operating system.

npm ERR! It is likely you do not have the permissions to access this file as the current user

npm ERR! 

npm ERR! If you believe this might be a permissions issue, please double-check the

npm ERR! permissions of the file and its containing directories, or try running

npm ERR! the command again as root/Administrator.

npm ERR! A complete log of this run can be found in:

npm ERR!     /tmp/.npm/_logs/2021-03-04T21_24_14_154Z-debug.log
everflux commented 3 years ago

This seems to be the same issue as https://github.com/trion-development/docker-ng-cli-karma/issues/13

lmgillaspie commented 3 years ago

Same issue as trion-development/docker-ng-cli-karma#13 , which has been resolved. Thank you for the quick reply!