Cannot connect to database

Hello, I keep getting errors while connecting to my database (I’m using psycopg in Python) such as:

consuming input failed: terminating connection due to administrator command
SSL connection has been closed unexpectedly

I have implemented a retry strategy to make sure enough time is left for the database to startup, but even when it is not idle I get those seemingly random errors.

Can you help me understanding what exactly is happening? Thank you!


We shut down databases if there are no queries for the last 5 minutes and such error message may appear if we shut it down. However, open connection should prevent this from happening, so that needs some investigation. Feel free to drop an email to support@ with the project name and we’ll have a look.