Can't connect to MongoDB after region migration
I changed my MongoDB container's region from US West to EU West.
I can see its host "roundhouse.proxy.rlwy.net" hasn't changed.
But after migration I'm receiving error while connecting to it.
Error message:
connection <monitor> to 35.214.158.190:45845 closed
17 Replies
Project ID:
d0351c30-dbdf-4528-a8ee-0563f4e086dc
d0351c30-dbdf-4528-a8ee-0563f4e086dc
It is connecting from railway website.
![No description](https://answer-overflow-discord-attachments.s3.amazonaws.com/1185292250373165067/image.png)
make sure you are using reference variables https://docs.railway.app/guides/variables#referencing-another-services-variable
and then make sure your code is using those environment variables
It is
I also copied MONGO_URL variable, and pasted it directly to Mongo Compass
and did it work from compass?
![No description](https://answer-overflow-discord-attachments.s3.amazonaws.com/1185292891430584420/image.png)
No
can you try specifying the database to connect to? in this case it looks like its
test
I specified using mongoose didnt work.
I added /test at the end of the url string, didnt work
is your app on railway able to connect?
![No description](https://answer-overflow-discord-attachments.s3.amazonaws.com/1185293907043561562/image.png)
Not able
Thread has been flagged to Railway team by @Brody.
It worked
It took about 30 minutes to work by itself
not ideal 😐
Before it would immediately able to connect after migration
This time downtime was about 30 mins
Thank you