Deployment successful but Nightscout app cannot connect to external MongoDB project
saritd377
FREEOP

7 days ago

"Hi, I am trying to connect my Nightscout instance (cgm-remote-monitor) to a MongoDB instance which is hosted in a separate Railway project (virtuous-consideration).

​Both services are currently showing 'Deployment successful'.

​I have configured the MONGODB_URI variable in my Nightscout project.

​Despite the successful deployment, the Nightscout application fails to connect to the database and displays a '503 Application failed to respond' error.

​I have already set up a TCP Proxy for the MongoDB instance, but the connection still times out.

​Could you please help me understand if there are specific network restrictions or a preferred way to link two services across different Railway projects? Any guidance on the correct connection string format for cross-project communication would be greatly appreciated."

$10 Bounty

1 Replies

Railway
BOT

7 days ago

This thread has been opened as a bounty so the community can help solve it.

Status changed to Open Railway 7 days ago


is that 503 come from the mongodb?

I just see that you said the mongo is hosted on a separated project, why not just host it in the same project?


Welcome!

Sign in to your Railway account to join the conversation.

Loading...