nginx-gunicorn-flask
nginx-gunicorn-flask copied to clipboard
Met something error
/usr/lib/python2.7/dist-packages/supervisor/options.py:296: UserWarning: Supervisord is running as root and it is searching for its configuration file in default locations (including its current working directory); you probably want to specify a "-c" argument specifying an absolute path to a configuration file for improved security.
'Supervisord is running as root and it is searching '
2016-07-21 18:23:11,253 CRIT Supervisor running as root (no user in config file)
2016-07-21 18:23:11,253 WARN Included extra file "/etc/supervisor/conf.d/gunicorn.conf" during parsing
2016-07-21 18:23:11,253 WARN Included extra file "/etc/supervisor/conf.d/supervisord.conf" during parsing
2016-07-21 18:23:11,260 INFO RPC interface 'supervisor' initialized
2016-07-21 18:23:11,260 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2016-07-21 18:23:11,260 INFO supervisord started with pid 1
2016-07-21 18:23:12,263 INFO spawned: 'nginx' with pid 9
2016-07-21 18:23:12,266 INFO spawned: 'gunicorn' with pid 10
2016-07-21 18:23:12,355 INFO exited: gunicorn (exit status 1; not expected)
2016-07-21 18:23:13,357 INFO success: nginx entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2016-07-21 18:23:13,357 INFO spawned: 'gunicorn' with pid 20
2016-07-21 18:23:13,527 INFO exited: gunicorn (exit status 3; not expected)
2016-07-21 18:23:15,530 INFO spawned: 'gunicorn' with pid 26
2016-07-21 18:23:15,608 INFO exited: gunicorn (exit status 1; not expected)
2016-07-21 18:23:18,614 INFO spawned: 'gunicorn' with pid 32
2016-07-21 18:23:18,712 INFO exited: gunicorn (exit status 1; not expected)
2016-07-21 18:23:19,714 INFO gave up: gunicorn entered FATAL state, too many start retries too quickly
Not familiar with nginx conf, and use all your Dockerfile and other conf, only replace ubuntu:12.04 to python:2.7, and met the error above, do you have any idea about that ?
Have you tried to do what the warning message suggests? i.e. "Supervisord is running as root and it is searching for its configuration file in default locations (including its current working directory); you probably want to specify a "-c" argument specifying an absolute path to a configuration file for improved security."
It means CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]