> Hi All.
>
>
> After a postgres DB restart, my django/uwsgi application did not
> gracefully
> reconnect to the database. It required a restart to get back online.
>
>
>   File
> "/home/xen/env/lib/python2.6/site-packages/django/core/handlers/wsgi.py",
> line 274, in __call__
>     signals.request_finished.send(sender=self.__class__)
>   File
> "/home/xen/env/lib/python2.6/site-packages/django/dispatch/dispatcher.py",
> line 172, in send
>     response = receiver(signal=self, sender=sender, **named)
>   File "/home/xen/env/lib/python2.6/site-packages/django/db/__init__.py",
> line 85, in close_connection
>     conn.close()
>   File
> "/home/xen/env/lib/python2.6/site-packages/django/db/backends/__init__.py",
> line 244, in close
>     self.connection.close()
> psycopg2.InterfaceError: connection already closed
>
>
> Anyone any idea how I could prevent this kind of outage in future?
>
>
> Thanks all.
>
>

Hi,
it looks like django never calls the reconnection. Is this an old (<1.2)
Django version ? Which uWSGI version and options ?

Is this 100% reproducible when you restart the server ?

-- 
Roberto De Ioris
http://unbit.it
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to