Benzel
Project deployment spontaneously began crashing - Mongo Connection Error
Hello,
I've had a project deployed through Railway for nearly a year now, but last week my deployment began crashing out of nowhere. I haven't made any adjustments to the code or modified any of the settings. The deployment logs show the error beginning with the following message:
mongo connection error MongoServerSelectionError: Server selection timed out after 30000 ms
It then traces the path where the error occurred and gives the following additional information (I've truncated the error due to length limits on posts in here, but can provide further info if needed):
Despite the error being listed as a Mongo connection error, there's no signs of issues in the deployment for the MongoDB instance that I have spun up for this project.
Any ideas on what's causing this and how to fix it? I'm rather confused, given the above-mentioned lack of changes to source code or deployment settings. Hoping to get this figured out fairly soon, given that this is a project that I keep on my portfolio and I've recently begun testing the waters of the job market again.
Thanks in advance!10 replies