Applications having trouble connection to database
I've hosted my applications for quite some time on Railway and have noticed that with the new databases, my applications very often refuse to connect.
I've added a container running Ghost (blogging platform) and a MySQL database and Ghost is having serious trouble connecting to the database. Up to the point where it is infuriating and fails on API calls every 5-10 seconds
Project ID for this specific one is 23b0e8b7-ef52-4f6b-8683-9bf8157a7bf1 but I've been having it on other projects as well.
7 Replies
Project ID:
23b0e8b7-ef52-4f6b-8683-9bf8157a7bf1
@jr - trouble connecting to the database
To add to the example, this is the error that Ghost throws regularly I've had Prisma/Node.js refuse connection as well but don't have an error on hand.
An unexpected error occurred, please try again. getaddrinfo ENOTFOUND roundhouse.proxy.rlwy.net',
. Prisma throws a very similar error
can you try to add a 3 second sleep to the beginning of your start command?
It's a possibility to do so with the apps that I control, they only have it on first connect. They automatically retry and connect on a 2nd or 3rd attempt so it's not the worst. Ghost on the other hand is a Docker container out of my control and it keeps throwing the error when it's running, not only on start
Ghost on the other hand is a Docker container out of my controlnope, you can set start commands for docker images too!