Unable to connect to MongoDB
phamthanhthe
HOBBYOP

7 months ago

Hi support team

I am new to Railways and have a problem with your system. I can not see and manage the database. Please help me fix it. Thanks a lot.

Solved$10 Bounty

Pinned Solution

mateodemuynck
PRO

7 months ago

Hello,
Do you have a public TCP proxy in the settings tab ?
If not you need to create one since the dashboard is connecting to your database over public network

4 Replies

brody
EMPLOYEE

7 months ago

This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.

Status changed to Open brody 7 months ago


mateodemuynck
PRO

7 months ago

Hello,
Do you have a public TCP proxy in the settings tab ?
If not you need to create one since the dashboard is connecting to your database over public network


ashish-choudhari-git
FREE

7 months ago

This is usually due to network access restrictions.

1.Please ensure that public access is enabled for your MongoDB instance

(e.g., in MongoDB Atlas,left bottom side option, Network tab , add your IP or allow access from anywhere with 0.0.0.0/0 under Network Access settings).

2.Also, double-check that your connection string is correct in the Railway environment variables.

Username should be correct jn connection string and password too. If password contain @ ,replace it with %40


mateodemuynck

Hello,Do you have a public TCP proxy in the settings tab ?If not you need to create one since the dashboard is connecting to your database over public network

phamthanhthe
HOBBYOP

7 months ago

Thanks so much. Your advice works for me.


ashish-choudhari-git

This is usually due to network access restrictions.1.Please ensure that public access is enabled for your MongoDB instance(e.g., in MongoDB Atlas,left bottom side option, Network tab , add your IP or allow access from anywhere with 0.0.0.0/0 under Network Access settings).2.Also, double-check that your connection string is correct in the Railway environment variables.Username should be correct jn connection string and password too. If password contain @ ,replace it with %40

phamthanhthe
HOBBYOP

7 months ago

Thanks so much.


Status changed to Solved brody 7 months ago


Loading...