We are unable to connect to the MongoDB

itsklimovPRO

8 months ago

Got the message via railway interface on MongoDB that was working before

We are unable to connect to the database over the public network.

Can you connect using this command?

yes, i am able to connect remotely

how to fix it?

Awaiting User Response

15 Replies

8 months ago

Hey there Nikolay,

While I raise the issue with the Railway team, would it be possible for you to switch to using the private network? GCP controls our public proxy and we have reported issues with connection consistency on the public network.

Thanks,
Angelo


Status changed to Awaiting User Response railway[bot] 8 months ago


itsklimovPRO

8 months ago

I can, because i have never done it, i do not know what may be affected, i have many services seating on this DB. Do i need to do something else other then clicking on "Enable private networking" button?


Status changed to Awaiting Railway Response railway[bot] 8 months ago


8 months ago

You enable it then use the Private Networking URL, in this case it's `MONGO_PRIVATE_URL" nothing should change except the packet reliability.


Status changed to Awaiting User Response railway[bot] 8 months ago


preston206HOBBY

8 months ago

I'm having the same problem. I'm new to Railway so I'm not sure what to do. When I click on the "Data" tab in the MongoDB service, I get the error: "We are unable to connect to the database over the public network". In my MongoDB settings and in my Node service settings, there is a green check next to the Private Networking option. This was working but I don't know when the error started because I was learning how to use Railway and trying things out. I tried deleting the MongoDB service and re-deploying it but I got the same error, out of the box.


Status changed to Awaiting Railway Response railway[bot] 8 months ago


8 months ago

Hey there,

After talking to the product team, I have confirmed it was the case that we did disable the "Data" tab for now. However, connections to your Mongo instance should still work nomially.

We are working to restore functionality.

Thanks,
Angelo


Status changed to Awaiting User Response railway[bot] 8 months ago


preston206HOBBY

8 months ago

thanks for the update. As a new customer for Railway this is a little discouraging to have a feature abruptly disabled without a notice. Does this type of thing happen often without notice? Also, is there another GUI I can use for managing the MongoDB database?


Status changed to Awaiting Railway Response railway[bot] 8 months ago


8 months ago

Only in very rare cases, this is one of those rare cases.

We recommend: https://www.mongodb.com/products/tools/compass in the meantime.


Status changed to Awaiting User Response railway[bot] 8 months ago


itsklimovPRO

8 months ago

thanks for the update. As a new customer for Railway this is a little discouraging to have a feature abruptly disabled without a notice. Does this type of thing happen often without notice? Also, is there another GUI I can use for managing the MongoDB database?

I am with these guys for a while and can confirm that they have some issues ones in a while but simplicity of their platform for pretty complex setups outweighs rare events.


Status changed to Awaiting Railway Response railway[bot] 8 months ago


itsklimovPRO

8 months ago

Docker compose is only the feature that I personally missing


preston206HOBBY

8 months ago

I'm up and running on Compass now. I don't like having to use a third party though.


itsklimovPRO

8 months ago

I'm up and running on Compass now. I don't like having to use a third party though.

Compass is not third party, it is Mongo own tool, just a bit more clogged user experience compare to railway interface, but because it has more features you'll need it in your mongo journey.


8 months ago

Cool- I am going to leave this thread open until our engineer re-enables the native panel (in progress) but good that you are unblocked!


Status changed to Awaiting User Response railway[bot] 8 months ago


8 months ago

Hello all!

We are sorry for the inconvenience this has caused but I am happy to announce that the data tab for the Mongo databases has been re-enabled!


preston206HOBBY

8 months ago

thanks! It's working again.

I have a question about Railway's implementation of MongoDB. Does the instance of MongoDB reside within the Railway ecosystem or does the service create an instance over at Atlas? Or Something else?


Status changed to Awaiting Railway Response railway[bot] 8 months ago


8 months ago

Railway just deploys a MongoDB container onto your project, from the Dockerhub farms.


Status changed to Awaiting User Response railway[bot] 8 months ago