[docker Course 5-11] EACCESS permission denied

Hello there ,

I’m working on WSL2 with an Ubuntu-20.04 distro

During this lesson, when mosh introduces the path to volumes with the $(pwd) path (1.58min) and I try to start a new container, if I look at the logs, it says the following:

react-app@0.1.0 start /app
react-scripts start

:information_source: 「wds」: Project is running at http://172.17.0.6/
:information_source: 「wds」: webpack output is served from
:information_source: 「wds」: Content not from webpack is served from /app/public
:information_source: 「wds」: 404s will fallback to /
Starting the development server…

Failed to compile.

EACCES: permission denied, open ‘/app/node_modules/.cache/.eslintcache’

can anyone give me some pointers ?

After looking around for a bit, it seems to be a question of privilege access for the app user, but I’m still not very confortable with tinkering with that ^^

thanks a lot for your help, whoever you are !

Stan

1 Like

Try adding this “somewhere”: chown -R app /app
That should make the user “app” owner of the directory.
I really wonder how this worked for Mosh and does not work for us. And why he does not care to fix it.

@wdburgdorf @standm - Glad to see I’m not the only one with this issue. I’ve just gone through this course yesterday and today and am stumped on the permissions issue. Have either of you found a working solution?
Thanks for your help!