django.db.utils.OperationalError: FATAL: remaining connection slots are reserved for non-replication superuser connections
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Critical
|
Blake Rouse | ||
2.1 |
Fix Released
|
Critical
|
Blake Rouse |
Bug Description
With no obvious preceding event, am now seeing this error in the logs (and MAAS UI is showing Internal server error for all requests):
Nov 8 07:24:56 maas1 sh[17635]: 2016-11-08 07:24:56 [maas.websocket
Nov 8 07:24:56 maas1 sh[17635]: 2016-11-08 07:24:56 [HTTPChannel,
Nov 8 07:24:56 maas1 sh[17635]: #011Traceback (most recent call last):
Nov 8 07:24:56 maas1 sh[17635]: #011 File "/usr/lib/
Nov 8 07:24:56 maas1 sh[17635]: #011 appIterator = self.applicatio
Nov 8 07:24:56 maas1 sh[17635]: #011 File "/usr/lib/
Nov 8 07:24:56 maas1 sh[17635]: #011 response = self.get_
Nov 8 07:24:56 maas1 sh[17635]: #011 File "/usr/lib/
Nov 8 07:24:56 maas1 sh[17635]: #011 response = get_response(
Nov 8 07:24:56 maas1 sh[17635]: #011 File "/usr/lib/
Nov 8 07:24:56 maas1 sh[17635]: #011 request, get_resolver(None), sys.exc_info())
Nov 8 07:24:56 maas1 sh[17635]: #011--- <exception caught here> ---
Nov 8 07:24:56 maas1 sh[17635]: #011 File "/usr/lib/
Nov 8 07:24:56 maas1 sh[17635]: #011 with transaction.
Nov 8 07:24:56 maas1 sh[17635]: #011 File "/usr/lib/
Nov 8 07:24:56 maas1 sh[17635]: #011 if not connection.
Nov 8 07:24:56 maas1 sh[17635]: #011 File "/usr/lib/
Nov 8 07:24:56 maas1 sh[17635]: #011 self.ensure_
Nov 8 07:24:56 maas1 sh[17635]: #011 File "/usr/lib/
Nov 8 07:24:56 maas1 sh[17635]: #011 self.connect()
Nov 8 07:24:56 maas1 sh[17635]: #011 File "/usr/lib/
Nov 8 07:24:56 maas1 sh[17635]: #011 six.reraise(
Nov 8 07:24:56 maas1 sh[17635]: #011 File "/usr/lib/
Nov 8 07:24:56 maas1 sh[17635]: #011 raise value.with_
Nov 8 07:24:56 maas1 sh[17635]: #011 File "/usr/lib/
Nov 8 07:24:56 maas1 sh[17635]: #011 self.connect()
Nov 8 07:24:56 maas1 sh[17635]: #011 File "/usr/lib/
Nov 8 07:24:56 maas1 sh[17635]: #011 self.connection = self.get_
Nov 8 07:24:56 maas1 sh[17635]: #011 File "/usr/lib/
Nov 8 07:24:56 maas1 sh[17635]: #011 connection = Database.
Nov 8 07:24:56 maas1 sh[17635]: #011 File "/usr/lib/
Nov 8 07:24:56 maas1 sh[17635]: #011 conn = _connect(dsn, connection_
Nov 8 07:24:56 maas1 sh[17635]: #011django.
Nov 8 07:24:56 maas1 sh[17635]: #011
Nov 8 07:24:56 maas1 sh[17635]: #011
Some kind of leak, maybe?
Versions:
maas 2.1.0+bzr5480-
Related branches
- Gavin Panella (community): Approve
-
Diff: 70 lines (+47/-2)2 files modifiedsrc/maasserver/listener.py (+14/-2)
src/maasserver/tests/test_listener.py (+33/-0)
- Blake Rouse (community): Approve
-
Diff: 70 lines (+47/-2)2 files modifiedsrc/maasserver/listener.py (+14/-2)
src/maasserver/tests/test_listener.py (+33/-0)
description: | updated |
Interestingly, the presenting symptom is gone now. I did not restart services.