Back to Supabase

Failed To Run Sql Query Connection Terminated Due To Connection Timeout

apps/docs/content/troubleshooting/failed-to-run-sql-query-connection-terminated-due-to-connection-timeout.mdx

1.26.041.3 KB
Original Source

This error typically happens when the database is overloaded and causing an outage. As the database does not respond in a timely manner there can be a variety of symptoms such as tables not loading, error messages related to retrieving data and the dashboard seems to be unresponsive.

  • Check your database health in Database reports.
  • If needed, increase resources in Compute and Disk.
  • Alternatively, you can restart the database in Project Settings but this may be only a temporary fix if the project is undersized / unoptimized.

Review the appropriate guides based on your scenario:

You can also set up alerts using a Prometheus endpoint / Grafana charts to monitor vital resources.