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

[source-mongodb] Is there a way currently to make MongoDB connector work? [custom certificates] #36781

Open
1 task
shubhshah01 opened this issue Apr 3, 2024 · 2 comments
Labels
area/connectors Connector related issues community connectors/source/mongodb frozen Not being actively worked on team/db-dw-sources Backlog for Database and Data Warehouse Sources team type/bug Something isn't working

Comments

@shubhshah01
Copy link

shubhshah01 commented Apr 3, 2024

Connector Name

source-mongodb

Connector Version

1.3.0

What step the error happened?

Configuring a new connector

Relevant information

I want to make a connection from source-mongodb -> destination-postgres.
I have a self hosted replica set MongoDB instance.
Is there any way currently to achieve this ?

  1. With TLS/SSL allowed on mongo instance -> getting an error
    Caused by: javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    There is an open issue related to this probably [Epic] Custom SSL support in source-mongodb-v2 (to SSH & SSL support AWS documentDB) #33452

  2. Without TLS/SSL -> doesn't work as the documentation mentions it needs to be a replica set and TLS/SSL is required.

Any help would be appreciated. Thanks!

Relevant log output

java.lang.RuntimeException: java.lang.RuntimeException: java.lang.RuntimeException: Connector configuration is not valid. Unable to connect: Timed out after 30000 ms while waiting to connect. Client view of cluster state is {type=UNKNOWN, servers=[{address=localhost:27017, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSocketWriteException: Exception sending message}, caused by {javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target}, caused by {sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target}, caused by {sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target}}]

Contribute

  • Yes, I want to contribute
@shubhshah01
Copy link
Author

Update:
For above error -> Sync Mode - Incremental | Append + Deduped
But works when changed to -> Sync Mode - Full refresh | Overwrite

@marcosmarxm marcosmarxm changed the title Is there a way currently to make MongoDB connector work ? [source-mongodb] Is there a way currently to make MongoDB connector work ? Apr 10, 2024
@marcosmarxm
Copy link
Member

@airbytehq/java-connector-code-reviewers can someone take a look in next grooming section?

@evantahler evantahler changed the title [source-mongodb] Is there a way currently to make MongoDB connector work ? [source-mongodb] Is there a way currently to make MongoDB connector work? [custom certificates] May 1, 2024
@evantahler evantahler added the frozen Not being actively worked on label May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/connectors Connector related issues community connectors/source/mongodb frozen Not being actively worked on team/db-dw-sources Backlog for Database and Data Warehouse Sources team type/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants