I’m playing around with a strapi.
Sometimes, I get the error 502 when I try to access my site. I check the render dashboard and I in events displays the error “Server unhealthy Exited with status 1”.
After accessing the render dashboard, if I go back to my site, problem is gone.
What’s happening here? Any hint to find the problem?
Looking at the logs, I’m noticing some errors
debug: ⛔️ Server wasn't able to start properly.error: select "t0"."id" from "admin_users" as "t0" limit $1 - Connection terminated unexpectedly
We have had reports of some similar Postgres connection errors with Strapi. Typically adjusting the connection pool settings helps with this. We have an example here for some suggested changes. You may need to tweak the settings for your own use case. https://github.com/render-examples/strapi-postgres/pull/14
Let me know if this helps!