2 years ago
im searched online but its been a bit confusing based on what info railway gives me
64 Replies
2 years ago
may i ask whats confusing?
deploy mongo into your project, then setup reference variables on your desired service -
MONGO_URL=${{MongoDB.MONGO_URL}}and then use the MONGO_URL environment variable in your code with whatever mongo client you like
im trying to connect through mongodb vs code but its just saying:
Unable to load connection: MongoServerSelectionError: connection to 35.212.138.205:43765 closed
2 years ago
you are trying to connect to mongodb on railway locally?
2 years ago
what does vscode have to do with this?
im jut trying to remove some entries in the database but i need to connect to it
2 years ago
what database client are you trying to use
2 years ago
try with dbgate
2 years ago
i dont see an error?
2 years ago
click test
2 years ago
what is the deployment status of the mongodb
2 years ago
can you give me the host and port for the database?
2 years ago
2 years ago
are you on school, work, public internet? you could be behind a firewall that blocks non common ports, 43765 is not a common port
2 years ago
what os are you using?
2 years ago
does that come with the nc command?
2 years ago
nc -zv roundhouse.proxy.rlwy.net 43765
jaxonhensch@MacBook-Pro-9 ~ % nc -zv roundhouse.proxy.rlwy.net 43765
Connection to roundhouse.proxy.rlwy.net port 43765 [tcp/*] succeeded!2 years ago
interesting
2 years ago
try redeploying the database
2 years ago
can you connect to this with dbgate? - mongodb://mongo:mCLJxOdpiWxZHTXLNdateBAWzlDcLzWk@monorail.proxy.rlwy.net:50629
2 years ago
screenshot of the tcp proxy for mongo please
2 years ago
yeah, 27021 is wrong, remove the proxy and add it back with 27017, this will then change the url service variable so be sure to copy it again and try with dbgate
2 years ago
dont think so
2 years ago
copy your new url and try with dbgate
2 years ago
send me your mongo deloy logs please
2 years ago
have you tried to redeploy?
2 years ago
odd, but good!
2 years ago
no problem!
2 years ago
next time you open a help thread for an error, please include that error in the post




