Forums

DATABASE ISSUES

Hello, My PostgreSQL database seem to be unstable. When running a task it throw "Failed to retrieve tasks. Database unreachable". But after i disable the web for a while and re-enabled it, the connection to he db went through. This cycle is just repeating itself. The db connection is highly unstable and it just started like an hour ago. Please i need urgent assistance.

this a bit urgent please. we are bleeding

That sounds like you are trying to keep your database connections open forever and do not have any code to recover when the database connection times out. Make sure that, before you use a database connection, it is still useable. Whatever library you are using to connect to the database should have methods to reconnect to the database when the connection has timed out.