flask-react-spa
flask-react-spa copied to clipboard
docker-compose up --build fails with permision errors
Actually throwing all kind of errors any help would be greatly appreciated the project looks awesome!
Errors
Attaching to flask-react-spa_redis_1, flask-react-spa_celery_beat_1, flask-react-spa_sphinx_docs_1, flask-react-spa_mailhog_1, flask-react-spa_postgres_1, flask-react-spa_celery_worker_1, flask-react-spa_backend_1, flask-react-spa_frontend_1
redis_1 | find: .: Permission denied
redis_1 | chown: .: Permission denied
celery_beat_1 | Traceback (most recent call last):
celery_beat_1 | File "/usr/local/bin/celery", line 11, in node frontend/internals/scripts/dependencies.js
frontend_1 | npm ERR! Exit status 1
frontend_1 | npm ERR!
frontend_1 | npm ERR! Failed at the [email protected] build:dll script.
frontend_1 | npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
frontend_1 |
frontend_1 | npm ERR! A complete log of this run can be found in:
frontend_1 | npm ERR! /root/.npm/_logs/2019-05-13T17_11_53_370Z-debug.log
frontend_1 | npm info it worked if it ends with ok
frontend_1 | npm info using [email protected]
frontend_1 | npm info using [email protected]
frontend_1 | npm info lifecycle [email protected]~prestart: [email protected]
frontend_1 | npm info lifecycle [email protected]~start: [email protected]
frontend_1 |
frontend_1 | > [email protected] start /flask
frontend_1 | > node frontend/server
frontend_1 |
backend_1 | python3: can't open file 'manage.py': [Errno 13] Permission denied
backend_1 | Waiting for postgres ready...
frontend_1 | module.js:473
frontend_1 | throw err;
frontend_1 | ^
frontend_1 |
frontend_1 | Error: Cannot find module '/flask/frontend/server'
frontend_1 | at Function.Module._resolveFilename (module.js:527:15)
frontend_1 | at Function.Module._load (module.js:453:25)
frontend_1 | at Function.Module.runMain (module.js:665:10)
frontend_1 | at startup (bootstrap_node.js:187:16)
frontend_1 | at bootstrap_node.js:607:3
frontend_1 | npm info lifecycle [email protected]~start: Failed to exec start script
frontend_1 | npm ERR! code ELIFECYCLE
frontend_1 | npm ERR! errno 1
frontend_1 | npm ERR! [email protected] start: node frontend/server
frontend_1 | npm ERR! Exit status 1
frontend_1 | npm ERR!
frontend_1 | npm ERR! Failed at the [email protected] start script.
frontend_1 | npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
frontend_1 |
frontend_1 | npm ERR! A complete log of this run can be found in:
frontend_1 | npm ERR! /root/.npm/_logs/2019-05-13T17_11_53_943Z-debug.log
flask-react-spa_frontend_1 exited with code 1
backend_1 | python3: can't open file 'manage.py': [Errno 13] Permission denied
backend_1 | Waiting for postgres ready...
backend_1 | python3: can't open file 'manage.py': [Errno 13] Permission denied
backend_1 | Waiting for postgres ready...
backend_1 | python3: can't open file 'manage.py': [Errno 13] Permission denied
backend_1 | Waiting for postgres ready...
backend_1 | python3: can't open file 'manage.py': [Errno 13] Permission denied
backend_1 | Waiting for postgres ready...
backend_1 | python3: can't open file 'manage.py': [Errno 13] Permission denied
backend_1 | Waiting for postgres ready...
backend_1 | python3: can't open file 'manage.py': [Errno 13] Permission denied
backend_1 | Waiting for postgres ready...
backend_1 | python3: can't open file 'manage.py': [Errno 13] Permission denied
backend_1 | Waiting for postgres ready...
backend_1 | python3: can't open file 'manage.py': [Errno 13] Permission denied
backend_1 | Waiting for postgres ready...
backend_1 | python3: can't open file 'manage.py': [Errno 13] Permission denied
backend_1 | Waiting for postgres ready...
backend_1 | python3: can't open file 'manage.py': [Errno 13] Permission denied
backend_1 | Waiting for postgres ready...
infinite loop or so it seems
Got Anything?
BTW System Info Fedora30 kernel 5.0.13-300.fc30.x86_64
Thanks
Hmm, let me take a look after work.
@scollar71 Hey, so I tried doing a clean build of this from master, and it does work for me (Arch Linux). So I suspect the permissions problem is on your end?
Are you running docker/docker-compose
as root? When I set docker up for dev I usually follow this guide: https://docs.docker.com/install/linux/linux-postinstall/#manage-docker-as-a-non-root-user
I have tried running all ways possible ( I think )
That guide is more or less it seems how I have set-up for build
Can you explain further your backend: config.js & frontend: config.py not really familiar with this type of set-up, possibly something I am doing wrong there by leaving untouched? - Other than name change naturally
Unfortunately this is my only dedicated dev machine, possibly a Fedora30 issue I'm going to roll-back have another crack at it. I have had some bizarre issues since recent release of thirty. just tried local building this with err s as well
Ok well Built Flawlessly Both local and Docker on Opensuse & Fedora29. Now I'm going to enjoy 'Tinkering' with it a little Thanks