> <html><body><span style="font-family:Verdana; color:#000000; > font-size:10pt;"><div>Hi,</div><div><br></div><div>It seems a lot of > people maange uwsgi with supervisor but I haven't had any luck. Supervisor > starts UWSGI just fund but when I do a restart or a stop/start I get this > error in my logs:</div><div><br></div><pre id="alt_console" style=""><div > style=""><span class="ansi0 bgAnsi15" style="">bind(): Address already in > use [core/socket.c line 759]</span> > </div><div style=""> > </div><div > style=""><span class="ansi0 bgAnsi15" style="">2014-03-17 17:41:09,539 > DEBG fd 11 closed, stopped monitoring <POutputDispatcher at 42889016 > for <Subpro</span></div><div style=""><span class="ansi0 bgAnsi15" > style="">cess at 42340224 with name app in state STARTING> > (stdout)></span> </div><div > style=""><span class="ansi0 bgAnsi15" style="">2014-03-17 17:41:09,539 > DEBG fd 15 closed, stopped monitoring <POutputDispatcher at 42906112 > for <Subpro</span></div><div style=""><span class="ansi0 bgAnsi15" > style="">cess at 42340224 with name app in state STARTING> > (stderr)></span> </div><div > style=""><span class="ansi0 bgAnsi15" style="">2014-03-17 17:41:09,539 > INFO exited: app (exit status 1; not expected)</span> > </div><div style=""><span class="ansi0 bgAnsi15" > style="">2014-03-17 17:41:09,539 DEBG received SIGCLD indicating a child > quit</span> </div><div style=""><span > class="ansi0 bgAnsi15" style="">2014-03-17 17:41:10,540 INFO gave up: app > entered FATAL state, too many start retries too quickly</span> > </div><div style=""><br></div><div style="">This is my > configuration:</div><div style=""><br></div><div style=""><pre style=""># > UWSGI > /usr/local/bin/pip install uwsgi > cat << EOF > /var/www/test/uwsgi_$APP.ini > [uwsgi] > socket = <span style="">127.0.0.1:8001</span> > processes = 4 > chdir = /var/www/test > virtualenv = /var/www/test/venv > pythonpath = /var/www/test/venv/bin/python > module = run > callable = app > EOF > > # Supervisor > /usr/local/bin/pip install supervisor --pre > cat << EOF > /etc/supervisord.conf > [unix_http_server] > file=/var/run/supervisor.sock > [supervisord] > logfile=/var/log/supervisord.log > pidfile=/var/run/supervisord.pid > loglevel=debug > [rpcinterface:supervisor] > supervisor.rpcinterface_factory = > supervisor.rpcinterface:make_main_rpcinterface > [supervisorctl] > serverurl=unix:///var/run/supervisor.sock > [include] > files = /var/www/test/supervisor*.ini > EOF > > cat << EOF > /var/www/test/supervisor_app.ini > [program:test] > command=/usr/local/bin/uwsgi --ini /var/www/test/uwsgi_test.ini > user=uwsgi > autostart=true > autorestart=true > stderr_logfile=uwsgi_err.log > stdout_logfile=uwsgi_out.log > stopsignal=INT > EOF</pre><pre style=""><br></pre><pre style="">I am so stuck with this, > can someone please help?</pre></div></pre></span></body></html> > _______________________________________________ > uWSGI mailing list > [email protected] > http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi >
You should post uWSGI logs, they will report why the instance is not stopped. By the way if you are using supervisord only for uWSGI consider the Emperor instead as it is way easier -- Roberto De Ioris http://unbit.it _______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
