docker-rails5-react-redux-boilerplate icon indicating copy to clipboard operation
docker-rails5-react-redux-boilerplate copied to clipboard

Error on client container

Open pikislabis opened this issue 8 years ago • 6 comments

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)
...

pikislabis avatar Feb 19 '17 09:02 pikislabis

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!

Angelmmiguel avatar Feb 19 '17 10:02 Angelmmiguel

Hi @Angelmmiguel,

I use Docker 1.10.2, Docker Machine 0.6.0 and I'am not using dinghy.

pikislabis avatar Feb 19 '17 20:02 pikislabis

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

somenugget avatar Jun 22 '17 08:06 somenugget

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 :)

Angelmmiguel avatar Jun 22 '17 09:06 Angelmmiguel

Ran into the repo not working as well.

I'll take a look myself for any fixes.

stuarthannig avatar Aug 06 '17 15:08 stuarthannig

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 :)

Angelmmiguel avatar Aug 07 '17 11:08 Angelmmiguel