Hello,
My server recently experienced a severe CPU overload. I have resolved the overload, but my PostgreSQL service is now stuck in a constant restart loop, which prevents apps like n8n from starting.
I have done troubleshooting and have confirmed the following:
- docker ps | grep postgres shows the container is permanently in a Restarting state.
- A full server reboot, even with all other apps stopped, did not resolve the issue.
- The docker logs postgresql command does not show any fatal crash errors. Instead, it shows a repeating loop where the database successfully performs automatic recovery, reports database system is ready to accept connections, and then is terminated a few seconds later.
- This suggests the PostgreSQL service is running correctly, but is failing Cloudron's internal health check and being killed.
- Because the database is never online for more than a few seconds, apps that depend on it (like n8n) cannot start and fail with a DNS lookup error (getaddrinfo EAI_AGAIN postgresql).
The core server health is now good (htop is low, disk space is fine), but this PostgreSQL loop is preventing me from using my apps.
Could you please advise on how to diagnose the failing health check or how to force the PostgreSQL service into a stable state?