10 months ago
I have already configured a TCP port.
But whether from other clients or from Railway's Data UI interface, I cannot connect to MongoDB.
Why so hard ... really really speechless.
4 Replies
10 months ago
Hey there! We've found the following might help you get unblocked faster:
- 🧵 MongoDB Service Connected but App Cannot Establish Database Connection - Mongoose State 0 (Disconnected)
- 🧵 Issue with SMTP connection on Railway (Error 500)
- 🧵 Redis Private Network Connection Issue
- 🧵 Connection Reset while connecting to MongoDB instance from Librechat
If you find the answer from one of these, please let us know by solving the thread!
10 months ago
ok, i know why.
tcp prot have to set xxx -> :27017.
anyone tell me why?
10 months ago
So the left side is the external port, and the right side is the internal port.
I always thought it was the other way around.
10 months ago
If you're reffering to connecting with mongodb isntance with something like "MongoDB Compass".
go into "Variables" section, and copy MONGODB_PUBLIC_URL
using this URL, you can access your mongoDB.
do Note that it contains your password so,
"handle with care"
Attachments
Status changed to Solved mikurisan • 10 months ago