[prev in list] [next in list] [prev in thread] [next in thread] 

List:       uwsgi
Subject:    Re: [uWSGI] restarting uwsgi with HUP occasionally gives bad fd
From:       Tim Tisdall <tisdall () gmail ! com>
Date:       2014-04-16 15:42:16
Message-ID: CAGxYWpYK9QGnRuiKUGd3nN-h9AODkvNu314AmrEcMcDuW3uYXQ () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


It is used in the master too, so I guess that must be it.  I'll see what I
can do about it, thanks!


On Wed, Apr 16, 2014 at 10:56 AM, Roberto De Ioris <roberto@unbit.it> wrote:

>
> > Which config?  The INI config file I use to start up uwsgi?  Here's that
> > config:
> >
> > ------------------
> > [uwsgi]
> > # %d - the absolute path of the directory containing the config file
> > socket = /var/run/uwsgi/metrics_dev.sock
> > master = true
> > processes = 2
> > threads = 20
> > harakiri = 60
> > harakiri-verbose = true
> > limit-post = 65536
> > post-buffering = 8192
> > daemonize = /var/log/uwsgi/metrics_dev.log
> > pidfile = /var/run/uwsgi/metrics_dev.pid
> > max-requests = 1000
> > log-slow = true
> > virtualenv = %denv/
> > uid=33
> > gid=33
> > vacuum=False
> > enable-threads=True
> > attach-daemon = %denv/bin/python %dmainserver/msg_server.py
> > %ddevelopment.ini
> > attach-daemon = %denv/bin/python %dmainserver/alert_generator.py
> > %ddevelopment.ini
> > -----------------
> >
> > I am using zeromq, but not as the interface between uwsgi and nginx, just
> > for internal process use.  If it were that, I'd think that uwsgi would
> > still be able to recover and restart as expected.
> >
> >
>
> if zeromq is initialized in the master (and it crashes), the master will
> die too. This happens because zeromq generates a posix thread.
>
>
> Check where you initialize zeromq
>
> --
> Roberto De Ioris
> http://unbit.it
> _______________________________________________
> uWSGI mailing list
> uWSGI@lists.unbit.it
> http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
>

[Attachment #5 (text/html)]

<div dir="ltr">It is used in the master too, so I guess that must be it.   I&#39;ll \
see what I can do about it, thanks!</div><div class="gmail_extra"><br><br><div \
class="gmail_quote">On Wed, Apr 16, 2014 at 10:56 AM, Roberto De Ioris <span \
dir="ltr">&lt;<a href="mailto:roberto@unbit.it" \
target="_blank">roberto@unbit.it</a>&gt;</span> wrote:<br> <blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div class="HOEnZb"><div class="h5"><br> &gt; Which config?   \
The INI config file I use to start up uwsgi?   Here&#39;s that<br> &gt; config:<br>
&gt;<br>
&gt; ------------------<br>
&gt; [uwsgi]<br>
&gt; # %d - the absolute path of the directory containing the config file<br>
&gt; socket = /var/run/uwsgi/metrics_dev.sock<br>
&gt; master = true<br>
&gt; processes = 2<br>
&gt; threads = 20<br>
&gt; harakiri = 60<br>
&gt; harakiri-verbose = true<br>
&gt; limit-post = 65536<br>
&gt; post-buffering = 8192<br>
&gt; daemonize = /var/log/uwsgi/metrics_dev.log<br>
&gt; pidfile = /var/run/uwsgi/metrics_dev.pid<br>
&gt; max-requests = 1000<br>
&gt; log-slow = true<br>
&gt; virtualenv = %denv/<br>
&gt; uid=33<br>
&gt; gid=33<br>
&gt; vacuum=False<br>
&gt; enable-threads=True<br>
&gt; attach-daemon = %denv/bin/python %dmainserver/msg_server.py<br>
&gt; %ddevelopment.ini<br>
&gt; attach-daemon = %denv/bin/python %dmainserver/alert_generator.py<br>
&gt; %ddevelopment.ini<br>
&gt; -----------------<br>
&gt;<br>
&gt; I am using zeromq, but not as the interface between uwsgi and nginx, just<br>
&gt; for internal process use.   If it were that, I&#39;d think that uwsgi would<br>
&gt; still be able to recover and restart as expected.<br>
&gt;<br>
&gt;<br>
<br>
</div></div>if zeromq is initialized in the master (and it crashes), the master \
will<br> die too. This happens because zeromq generates a posix thread.<br>
<br>
<br>
Check where you initialize zeromq<br>
<div class="HOEnZb"><div class="h5"><br>
--<br>
Roberto De Ioris<br>
<a href="http://unbit.it" target="_blank">http://unbit.it</a><br>
_______________________________________________<br>
uWSGI mailing list<br>
<a href="mailto:uWSGI@lists.unbit.it">uWSGI@lists.unbit.it</a><br>
<a href="http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi" \
target="_blank">http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi</a><br> \
</div></div></blockquote></div><br></div>



_______________________________________________
uWSGI mailing list
uWSGI@lists.unbit.it
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic