Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
alfBI
Helper V
Helper V

Troubleshooting Connection Issues with Mongo DB using VNET Data Gateway


Troubleshooting Connection Issues with Mongo DB using VNET Data Gateway

Hi,

 

We are trying to ingest data from a Mongo DB placed on an Azure Kubernetes container onto our Fabric Lakehouse. For that purpose we have created a VNET  Data Gateway following steps described on MS doc

 

Create virtual network (VNet) data gateways | Microsoft Learn

 

Create virtual network (VNet) data gateways | Microsoft Learn

After that steps we have created the connection

 

alfBI_0-1769075191719.png

 


 When we test connection following error does appear (IP adress has been masked)

 

alfBI_1-1769075208028.png

 


EndPoint: "XX.XXX.XX.XX:27017", ReasonChanged: "Heartbeat", State: "Disconnected", ServerVersion: , TopologyVersion: , Type: "Unknown", HeartbeatException:
"MongoDB.Driver.MongoConnectionException: An exception occurred while opening a connection to the server. ---> System.IO.IOException: Authentication failed because the remote party has closed the transport stream.

 

On the Mongo DB side following logs is shown

 

ongodb-0 mongodb {"t":{"$date":"2026-01-22T09:10:36.211+00:00"},"s":"I", "c":"EXECUTOR", "id":22988,
"ctx":"conn331060","msg":"Error receiving request from client. Ending connection from remote","attr":
{"error":{"code":141,"codeName":"SSLHandshakeFailed","errmsg":"SSL handshake received but server is started without SSL support"},"remote":"XX.XXX.XX.XXX:19754","connectionId":331060}}

 

It is clear that there is some issue related with the authentication/SSL but no idea hwo to handle that. Any idea about how to manage that issue?

 

 

Regards,

4 REPLIES 4
v-hashadapu
Community Support
Community Support

Hi @alfBI , hope you are doing great. May we know if your issue is solved or if you are still experiencing difficulties. Please share the details as it will help the community, especially others with similar issues.

v-hashadapu
Community Support
Community Support

Hi @alfBI , Thank you for reaching out to the Microsoft Community Forum.

 

From your errors, Fabric is able to reach your MongoDB (the connection arrives at MongoDB), but it is trying to open a TLS/SSL connection, while your MongoDB server is running without SSL enabled. MongoDB therefore closes the connection immediately during the handshake, before any authentication happens.

 

This is not a firewall, DNS or credential problem. The failure happens at the transport layer, not at the login layer. Fabric’s VNET Data Gateway always uses secure (TLS) connections for MongoDB and does not support plain TCP connections. There is no setting in Fabric to disable SSL.

 

You must either enable TLS on MongoDB or place MongoDB behind a TLS-terminating proxy. If MongoDB remains non-TLS, Fabric will never be able to connect.

deborshi_nag
Power Participant
Power Participant

Hello @alfBI have you checked your gateway server has network access to the Mongo DB port? Try running this over Powershell

 

Test-NetConnection <mongodb-dns-or-ip> -Port 27017

 

I trust this will be helpful. If you found this guidance useful, you are welcome to acknowledge with a Kudos or by marking it as a Solution.

Good question, unfortunately it is not possible to execute this command from the Fabric VNet. Anyway we have checked that the problem comes from the fact that Mongo DB did not have TLS enabled (Fabric requires TLS 1.2)

Helpful resources

Announcements
January Fabric Update Carousel

Fabric Monthly Update - January 2026

Check out the January 2026 Fabric update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.