# Server connection failed improvements

**Project:** Panel | **Board:** Live | **Votes:** 2
**URL:** https://roadmap.ploi.io/projects/3-panel-requests/items/644-server-connection-failed-improvements

---

Last few days one of my servers is being marked as "Server connection failed" and I wonder why and how. The server is operational just fine but last 3 days I've receieved the "Server connection failed" notification at 04:01.

I would like to propose a few improvements (if not implemented already):

- A retry, try again 5 minutes later instead of immediately marking the server as offline
- A constant retry where it's being retried a few hours later to see if it fixed itself and send a "Server connection restored" notification (it makes sense you stop retrying after a day or so of course)
- Update the notification subject to: "Server connection failed: <server-name>" so they are not grouped in a thread (unless for the same server)

Hope any of the above sound like improvements to the server connection handling and stops me having to manually step in every few days for some transient error 😉 

---

## Comments

**Dennis** (2025-03-10T08:38:56+00:00):
The flow has changed a little bit for testing connections now. The flow is like this when a server is completely **unreachable**:

- Test connection: detect failure -> wait 30 seconds for next attempt
- Test connection: detect failure -> wait 60 seconds for next attempt
- Test connection: detect failure -> wait 120 seconds for next attempt
- Test connection: detect failure -> wait 300 seconds for next attempt
- Send an email it failed to connect (with the server name in subject)

The flow is like this when a server is restored somewhere in between:

- Test connection: detect failure -> wait 30 seconds for next attempt
- Test connection: detect failure -> wait 60 seconds for next attempt
- Test connection: detect connection possible
- Send an email the connection has restored (wiht the server name in subject)

It will try to test the connection for 5 times maximum. We also show this in the settings page connection card:

![](https://roadmap.ploi.io/storage/Y7UkT5kfsA5Z99bPNtwRZJaZrv4c1mJvr7X60baj.png)

