Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug Report: Connection Timeout using mongodb+srv:// connection string #7143

Open
yaminidhamija opened this issue Dec 20, 2024 · 1 comment
Open
Assignees
Labels
Status: Open Issue has been triaged by the front-line engineers and is being worked on verification Type: Bug Label issue as a bug defect

Comments

@yaminidhamija
Copy link

yaminidhamija commented Dec 20, 2024

Brief Summary

Payara 5
We need to connect to Atlas Mongo using private endpoint using mongodb+srv:// connection string but We are getting Connection Time out.
MongoSocketOpenException: Exception opening socket}, caused by java.net.SocketException: Connection reset

Our application runs on AWS, so we are using private endpoint for secure connection: https://www.mongodb.com/docs/atlas/security-private-endpoint/#private-endpoint-concepts

It works fine if we use it without private endpoint on our machine.

Expected Outcome

Should be able to connect with Atlas Mongo using mongodb+srv://

Current Outcome

Connection Time Out Error

Reproducer

   MongoClient client = MongoClients.create("mongodb+srv://.....");
   client.getDatabase("test-db").getCollection("test-collection").find().into(new ArrayList<>()).size());

Operating System

Linux

JDK Version

11

Payara Distribution

Payara Micro

@yaminidhamija yaminidhamija added Status: Open Issue has been triaged by the front-line engineers and is being worked on verification Type: Bug Label issue as a bug defect labels Dec 20, 2024
@yaminidhamija
Copy link
Author

@skipper4 Can you please check this. Issue is with private endpoints

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Open Issue has been triaged by the front-line engineers and is being worked on verification Type: Bug Label issue as a bug defect
Projects
None yet
Development

No branches or pull requests

2 participants