[uWSGI] Error on uwsgi worker spawn

Riccardo Magliocchetti riccardo.magliocchetti at gmail.com
Sun Jun 18 11:16:25 UTC 2017


Hello Vitaly,

please send text email and not html one.

Il 18/06/2017 01:42, Vitaly Trifanov ha scritto:
> Hello. I am running nginx + uwsgi 2.0.15 + mysql 5.5.55 application. Each time
> uwsgi respawns worker I get following error in logs (and 502 in browser):
>
> |SatJun1716:38:222017-RespawneduWSGI worker
> 1(newpid:9021)SatJun1716:38:222017-SIGPIPE:writing to a closed pipe/socket/fd
> (probably the client disconnected)!!!Traceback(most recent call
> last):File"/home/hikesadmin/.local/lib/python3.4/site-packages/django/core/handlers/wsgi.py",line
> 157,in__call__
> signals.request_started.send(sender=self.__class__,environ=environ)File"/home/hikesadmin/.local/lib/python3.4/site-packages/django/dispatch/dispatcher.py",line
> 191,insend response
> =receiver(signal=self,sender=sender,**named)File"/home/hikesadmin/.local/lib/python3.4/site-packages/django/db/__init__.py",line
> 61,inclose_old_connections
> conn.close_if_unusable_or_obsolete()File"/home/hikesadmin/.local/lib/python3.4/site-packages/django/db/backends/base/base.py",line
> 504,inclose_if_unusable_o r_obsolete
> self.close()File"/home/hikesadmin/.local/lib/python3.4/site-packages/django/db/backends/base/base.py",line
> 272,inclose
> self._close()File"/home/hikesadmin/.local/lib/python3.4/site-packages/django/db/backends/base/base.py",line
> 221,in_close
> returnself.connection.close()File"/home/hikesadmin/.local/lib/python3.4/site-packages/pymysql/connections.py",line
> 734,inclose sock.close()AttributeError:'NoneType'objecthas noattribute 'close'|

It's django trying to close a connection to mysql that does not exist, maybe a 
threading issue?


-- 
Riccardo Magliocchetti
@rmistaken

http://menodizero.it


More information about the uWSGI mailing list