Azure Data Factory Self Hosted IR Cannot Connect To MongoDB Timeout With No Exception

Samir Sharma 0 Reputation points
2024-03-05T22:15:40.4333333+00:00

I have an self-hosted (on Prem) Integrated Runtime. On this VM I have installed a MongoDB Compass client and I can connect to a target MongoDB cluster. The connection is okay and I can see the DB/collections.

I use the Azure Data Factory to create a Linked Service:

Create the Linked Service to use a MongoDB connection

Select the IR

Put the connection string:

mongodb://user:past@dbmymg.myhost.com:27017/oss_store/?readPreference=secondaryPreferred&directConnection=true

The result is:

Connection to MongoDB server is timeout.

A timeout occured after 30000ms selecting a server using CompositeServerSelector{ Selectors = MongoDB.Driver.MongoClient+AreSessionsSupportedServerSelector, LatencyLimitingServerSelector{ AllowedLatencyRange = 00:00:00.0150000 } }. Client view of cluster state is { ClusterId : "5", ConnectionMode : "Automatic", Type : "ReplicaSet", State : "Connected", Servers : [{ ServerId: "{ ClusterId : 5, EndPoint : "Unspecified/dbmymg.myhost:27017" }", EndPoint: "Unspecified/dbmymg.myhost:27017", State: "Connected", Type: "ReplicaSetOther", WireVersionRange: "[0, 6]", LastUpdateTimestamp: "2024-03-05T21:53:43.2768993Z" }] }.

There is no exception or error thrown. It just keeps coming back with the timeout and nothing else. Since the VM with a client running on it can connect with the SAME connection string.

If I change the authentication to be something that I know is wrong, the same thing happens - no execption, no error - just a timeout.

Assuming that the authentication is not occurring, how can I check this or force a authentication?

Azure Data Lake Storage
Azure Data Lake Storage
An Azure service that provides an enterprise-wide hyper-scale repository for big data analytic workloads and is integrated with Azure Blob Storage.
1,466 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
10,681 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.