Docker error / run command
Trying to run it using docker run -itd --rm -p 8880:80 -p 8443:443 -p 1935:1935 --name livestream livestream
. Is this correct? It should be mapped to localhost:8880 but I cannot reach the website (neither using 80:80).
docker shows the following log and I guess it is not up.
2019-08-05 10:23:28,371 CRIT Supervisor is running as root. Privileges were not dropped because no user is specified in the config file. If you intend to run as root, you can set user=root in the config file to avoid this message.
2019-08-05 10:23:28,373 INFO supervisord started with pid 1
2019-08-05 10:23:29,377 INFO spawned: 'nginx' with pid 7
2019-08-05 10:23:29,382 INFO spawned: 'osp-dbUpgrade' with pid 8
2019-08-05 10:23:29,389 INFO spawned: 'gunicorn' with pid 9
2019-08-05 10:23:29,410 INFO success: osp-dbUpgrade entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2019-08-05 10:23:29,704 INFO exited: gunicorn (exit status 1; not expected)
2019-08-05 10:23:30,706 INFO success: nginx entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2019-08-05 10:23:30,710 INFO spawned: 'gunicorn' with pid 20
2019-08-05 10:23:31,016 INFO exited: gunicorn (exit status 1; not expected)
2019-08-05 10:23:32,529 INFO exited: osp-dbUpgrade (exit status 1; not expected)
2019-08-05 10:23:33,535 INFO spawned: 'gunicorn' with pid 26
2019-08-05 10:23:33,795 INFO exited: gunicorn (exit status 1; not expected)
2019-08-05 10:23:36,804 INFO spawned: 'gunicorn' with pid 27
2019-08-05 10:23:37,082 INFO exited: gunicorn (exit status 1; not expected)
2019-08-05 10:23:38,083 INFO gave up: gunicorn entered FATAL state, too many start retries too quickly
EDIT: trying to run gunicorn manually
/ # /usr/bin/gunicorn app:app -k gevent -w 1 --bind 0.0.0.0:5000 --reload --access-logfile /var/log/gunicorn/access.log --error-logfile /var/log/gunicorn/error.log
Error: class uri 'gevent' invalid or not found:
[Traceback (most recent call last):
File "/usr/lib/python3.7/site-packages/gunicorn/util.py", line 134, in load_class
mod = import_module('.'.join(components))
File "/usr/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 724, in exec_module
File "<frozen importlib._bootstrap_external>", line 860, in get_code
File "<frozen importlib._bootstrap_external>", line 791, in source_to_code
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/usr/lib/python3.7/site-packages/gunicorn/workers/ggevent.py", line 30
from gunicorn.workers.async import AsyncWorker
^
SyntaxError: invalid syntax
Edited by Kupfer