a year ago
im searched online but its been a bit confusing based on what info railway gives me
0 Replies
a year 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
a year ago
you are trying to connect to mongodb on railway locally?
a year 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
a year ago
what database client are you trying to use
a year ago
try with dbgate
a year ago
i dont see an error?
a year ago
click test
a year ago
what is the deployment status of the mongodb
a year ago
can you give me the host and port for the database?
a year ago
a year 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
a year ago
what os are you using?
a year ago
does that come with the nc
command?
a year ago
nc -zv [roundhouse.proxy.rlwy.net](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!
a year ago
interesting
a year ago
try redeploying the database
a year ago
can you connect to this with dbgate? - mongodb://mongo:mCLJxOdpiWxZHTXLNdateBAWzlDcLzWk@monorail.proxy.rlwy.net:50629
a year ago
screenshot of the tcp proxy for mongo please
a year 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
a year ago
dont think so
a year ago
copy your new url and try with dbgate
a year ago
send me your mongo deloy logs please
a year ago
have you tried to redeploy?
a year ago
odd, but good!
a year ago
no problem!
a year ago
next time you open a help thread for an error, please include that error in the post