Unable to connect to Mongo Atlas

  1. Setup VPC peering between Qovery & Atlas with https://www.mongodb.com/docs/atlas/security-vpc-peering/
  2. Deployed application
  3. Verified it’s successfully running
  4. Cloned environment into the same cluster, not modifying anything
  5. Cloned env fails with {"message":"connection timed out","name":"MongoNetworkTimeoutError"}

Hi @Andreas_Asprou,

One thing that you can do to check if the problem is coming from your app or AWS is:

  1. Connect to one of your instances from this environment with qovery shell command.
  2. Install telnet or netcat client on this running instance (you may have a package manager like apt installed)
  3. Try to open a TCP socket with telnet or netcat. E.g telnet <your mongodb host> <your mongodb port>

Potential answers

  1. You successfully initiate a TCP connection with the MongoDB instance from your container: Then it means that the issue is coming from your application.
  2. If the telnet or netcat command returns a network time out error: Then it means that the issue is coming from the network side (VPC Peering misconfiguration?)
  3. If the telnet or netcat command returns a connection reset error: Then it is an issue on the MongoDB server side. You are better to contact MongoDB Atlas support to see what’s going on.

Can you show me the response from your telnet or netcat command?