These are chat archives for allegro/ralph

18th
Aug 2016
Arkadiusz Adamski
@ar4s
Aug 18 2016 06:37
@brylor I will check that today :smile:
Bryan Taylor
@brylor
Aug 18 2016 15:21
No luck with the npm problem? :(
Hahaha I think I fixed it! added -g to npm install in docker/provision_js.sh
and the next one :(
/root/init_js.sh: line 5: /opt/ralph/node_modules/.bin/gulp: No such file or directory
ERROR: Service 'web' failed to build: The command '/bin/sh -c $SCRIPTS_PATH/init_js.sh' returned a non-zero code: 1
ah cause gulp was prob installed globally
Bryan Taylor
@brylor
Aug 18 2016 15:39
idk whats going on, have no idea about node
Bryan Taylor
@brylor
Aug 18 2016 17:25
from the nodejs chan: "@brylor you're using an ANCIENT node and npm
if you installed node with apt, don't do that. install from source or with http://nvm.sh
you need to be on node 4 or 6, and npm 2 or 3.
Bryan Taylor
@brylor
11:24
ok ty
@brylor shakes fist at apt "
✪ vi4m Marcin Kliks
@vi4m
Aug 18 2016 17:26
ekhm.
good to know.
Bryan Taylor
@brylor
Aug 18 2016 17:27
I've commited the docker image at the failed build stage, so I'm able to work with it... ill keep you updated
✪ vi4m Marcin Kliks
@vi4m
Aug 18 2016 17:27
ok
Bryan Taylor
@brylor
Aug 18 2016 18:27
I managed to update the Docker scripts to install node via nvm, the error is gone and it appears I have fixed the node prob of course now:
 web_1    | [2016-08-18 11:19:08 +0000] [1] [INFO] Listening at: http://0.0.0.0:8000 (1)
web_1    | [2016-08-18 11:19:08 +0000] [1] [INFO] Using worker: sync
web_1    | [2016-08-18 11:19:08 +0000] [9] [INFO] Booting worker with pid: 9
web_1    | [2016-08-18 11:19:08 +0000] [9] [ERROR] Exception in worker process
web_1    | Traceback (most recent call last):
web_1    |   File "/usr/local/lib/python3.4/dist-packages/gunicorn/arbiter.py", line 557, in spawn_worker
web_1    |     worker.init_process()
web_1    |   File "/usr/local/lib/python3.4/dist-packages/gunicorn/workers/base.py", line 126, in init_process
web_1    |     self.load_wsgi()
web_1    |   File "/usr/local/lib/python3.4/dist-packages/gunicorn/workers/base.py", line 136, in load_wsgi
web_1    |     self.wsgi = self.app.wsgi()
web_1    |   File "/usr/local/lib/python3.4/dist-packages/gunicorn/app/base.py", line 67, in wsgi
web_1    |     self.callable = self.load()
web_1    |   File "/usr/local/lib/python3.4/dist-packages/gunicorn/app/wsgiapp.py", line 65, in load
web_1    |     return self.load_wsgiapp()
web_1    |   File "/usr/local/lib/python3.4/dist-packages/gunicorn/app/wsgiapp.py", line 52, in load_wsgiapp
web_1    |     return util.import_app(self.app_uri)
web_1    |   File "/usr/local/lib/python3.4/dist-packages/gunicorn/util.py", line 357, in import_app
web_1    |     __import__(module)
web_1    | ImportError: No module named 'ralph.wsgi'
web_1    | [2016-08-18 11:19:08 +0000] [9] [INFO] Worker exiting (pid: 9)
web_1    | [2016-08-18 11:19:08 +0000] [1] [INFO] Shutting down: Master
I have to cd src...
Bryan Taylor
@brylor
Aug 18 2016 21:19
Ok this is what I have so far: brylor/ralph@e6822c3
But I still get the above ralph.wsgi error because docker compose has command: gunicorn -w 4 -b 0.0.0.0:8000 -t 300 ralph.wsgi ... but that is executed in /opt/ralph, it should be /opt/ralph/src but I can't make the paths/environments happy ...
btw my github accounts are messed up :(
Bryan Taylor
@brylor
Aug 18 2016 21:26
actually: brylor/ralph@f16660b