R
Railway

✋|help

Strapi crashes out of nowhere

Sseb19/14/2023
Hello, my Strapi app sometimes crashes out of nowhere. This is not very good, because I have a prod aplication running, that requires Strapi to be up and functional.

The error is:
select "t0"."id" from "admin_users" as "t0" limit $1 - Connection terminated unexpectedly

Something about this problem can be read here: https://github.com/strapi/strapi/issues/11741

Is there something I can do to prevent this, or at least can Strapi automatically restart the service after it crashes?

Thank you
Sseb19/14/2023
0885c9cf-f4bd-4d7f-8cad-71dd218e6114
Bbrody1929/14/2023
not a problem with strapi or railway, but just a caveat of running in docker.
make this same configuration in your database.js file
https://github.com/railwayapp-templates/strapi/blob/main/config/database.js#L12

Looking for more? Join the community!