ansible-nginx-uwsgi-supervisor
ansible-nginx-uwsgi-supervisor copied to clipboard
UWSGI abnormal termination error
Hi
I've followed the same step to deploy my django app using uwsgi and nginx. but didi it manually. But when i start the uwsgi proccess using supervisorctl command i'm getting a error
uwsgi:uwsgi_00: ERROR (spawn error)
But it checked there are 8 uwsgi processes in the server. I'm not sure what really happening when i start uwsgi process, i gettting the error but my site is still working.
here is my supervisor config and error log `
[program:uwsgi]
command=/var/www/django/virtual/bin/uwsgi --ini /var/www/django/uwsgi.ini
user=root
process_name = %(program_name)s_%(process_num)02d
autostart=true
autorestart=true
stderr_logfile=/var/www/django/super.log
stdout_logfile=/var/www/django/super.log`
uwsgi.ini file `
[uwsgi]
master = true
socket = /tmp/uwsgi.sock
chmod-socket = 666
chdir = /var/www/django/webserver_test
wsgi-file = /var/www/django/webserver_test/Django_app/wsgi.py
virtualenv = /var/www/django/virtual
vacuum = true
enable-threads = true
daemonize= /var/www/django/uwsgi.log`
supervisor error log
2017-05-29 09:12:49,438 INFO spawned: 'uwsgi_00' with pid 20159 2017-05-29 09:12:49,560 INFO exited: uwsgi_00 (exit status 0; not expected) 2017-05-29 09:12:50,565 INFO spawned: 'uwsgi_00' with pid 20164 2017-05-29 09:12:50,589 INFO exited: uwsgi_00 (exit status 0; not expected) 2017-05-29 09:12:52,597 INFO spawned: 'uwsgi_00' with pid 20169 2017-05-29 09:12:52,613 INFO exited: uwsgi_00 (exit status 0; not expected) 2017-05-29 09:12:55,621 INFO spawned: 'uwsgi_00' with pid 20174 2017-05-29 09:12:55,644 INFO exited: uwsgi_00 (exit status 0; not expected) 2017-05-29 09:12:56,646 INFO gave up: uwsgi_00 entered FATAL state, too many start retries too quickly
there was no error when start the uwsgi process manually. At that time there where only 2 process in the server toooo. Can you help me FIx this