Skip to content

Commit 1e0f7b3

Browse files
authored
docs: Troubleshooting "Failed to run sql query: connection terminated due to connection timeout" (supabase#40336)
1 parent af98191 commit 1e0f7b3

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
title = "Error: Failed to run sql query: Connection terminated due to connection timeout"
3+
topics = [ "database", "studio" ]
4+
5+
[[errors]]
6+
http_status_code = 500
7+
message = "Error: Failed to run sql query: Connection terminated due to connection timeout"
8+
---
9+
10+
![Failed to run sql query: Connection terminated due to connection timeout](/docs/img/troubleshooting/failed-to-run-sql-query-connection-terminated-due-to-connection-timeout.jpg)
11+
12+
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.
13+
14+
- Check your database health in [Database reports](/dashboard/project/_/reports/database).
15+
- If needed, increase resources in [Compute and Disk](/dashboard/project/_/settings/compute-and-disk).
16+
17+
Review the appropriate guides based on your scenario:
18+
19+
- [High CPU usage](/docs/guides/troubleshooting/high-cpu-usage)
20+
- [High RAM usage](/docs/guides/troubleshooting/exhaust-ram)
21+
- [High Swap usage](/docs/guides/troubleshooting/exhaust-swap)
22+
- [High Disk I/O](/docs/guides/troubleshooting/exhaust-disk-io)
23+
- [Query optimization](/docs/guides/database/query-optimization)
24+
25+
You can also set up alerts using a [Prometheus endpoint / Grafana charts](/docs/guides/telemetry/metrics) to monitor vital resources.
171 KB
Loading

0 commit comments

Comments
 (0)