Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#33088 closed Bug (invalid)

Remaining connection slots are reserved for non-replication superuser connections

Reported by: David Babalola Owned by: nobody
Component: Database layer (models, ORM) Version: 3.2
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

I recently deployed an app to Heroku using Postgres free tier as database.
I am using Django 3.2
Everything was working fine until I started getting a mail with the following error:

Internal Server Error: /
OperationalError at /
FATAL:  remaining connection slots are reserved for non-replication superuser connections

This happens anytime I open the site. It just started doing this.
I thought waiting a while would solve the problem, but it didn't.

  1. What does this error mean?
  2. What causes the error?
  3. How can I solve it?

My CONN_MAX_AGE is set to 500.

Change History (3)

comment:1 by David Babalola, 3 years ago

Component: UncategorizedDatabase layer (models, ORM)

comment:2 by Mariusz Felisiak, 3 years ago

Resolution: invalid
Status: newclosed

See TicketClosingReasons/UseSupportChannels for ways to get help. Trac is not a support channel.

comment:3 by Mariusz Felisiak, 3 years ago

Summary: Django Heroku: remaining connection slots are reserved for non-replication superuser connectionsRemaining connection slots are reserved for non-replication superuser connections
Note: See TracTickets for help on using tickets.
Back to Top