docker-rails5-react-redux-boilerplate
docker-rails5-react-redux-boilerplate copied to clipboard
Error on client container
Output of docker-compose up
command show some errors on frontend container, exiting it with code 1.
frontend_1 | npm ERR! Error: EACCES: permission denied, mkdir '/app/node_modules/.staging'
frontend_1 | npm ERR! { Error: EACCES: permission denied, mkdir '/app/node_modules/.staging'
frontend_1 | npm ERR! errno: -13,
frontend_1 | npm ERR! code: 'EACCES',
frontend_1 | npm ERR! syscall: 'mkdir',
frontend_1 | npm ERR! path: '/app/node_modules/.staging' }
...
frontend_1 | npm ERR! Error: EACCES: permission denied, open 'npm-debug.log.139430072'
frontend_1 | npm ERR! { Error: EACCES: permission denied, open 'npm-debug.log.139430072'
frontend_1 | npm ERR! errno: -13,
frontend_1 | npm ERR! code: 'EACCES',
frontend_1 | npm ERR! syscall: 'open',
frontend_1 | npm ERR! path: 'npm-debug.log.139430072' }
...
frontend_1 | Building: Main project for [undefined]
frontend_1 | module.js:474
frontend_1 | throw err;
frontend_1 | ^
frontend_1 |
frontend_1 | Error: Cannot find module '/app/vendor/vendor-manifest.json'
frontend_1 | at Function.Module._resolveFilename (module.js:472:15)
frontend_1 | at Function.Module._load (module.js:420:25)
frontend_1 | at Module.require (module.js:500:17)
frontend_1 | at require (internal/module.js:20:19)
frontend_1 | at buildConfig (/app/config/plugins.js:26:17)
frontend_1 | at Object.<anonymous> (/app/webpack.config.js:70:14)
...
Hi @pikislabis,
I need to check it. The user doesn't have permissions to write in the /app
. Can you tell me the version of Docker and if you are using dinghy
?
Thanks!
Hi @Angelmmiguel,
I use Docker 1.10.2
, Docker Machine 0.6.0
and I'am not using dinghy
.
Hello @pikislabis,
I was faced with the same problem. It is caused by the fact that the owner of /app
folder is bitnami
, not yoshi
.
I fixed it by adding sudo chown -R yoshi:yoshi .
before npm install
in https://github.com/Angelmmiguel/docker-rails5-react-redux-boilerplate/blob/master/client/scripts/frontend_entrypoint.sh
Thank you for your comment @somenugget. I need to update the repository in general to bump all the versions of the libraries and languages. The changes will fix this issue too.
I'll try to do it this weekend :)
Ran into the repo not working as well.
I'll take a look myself for any fixes.
Thank you @stuarthannig. I didn't have time to take a look to this repository. I would be nice if you can create a PR, so that we can collaborate to improve the boilerplate :)