IBM Support

EVENT_HUB_02 - Failed to connect : Connection reset by peer

Troubleshooting


Problem

  • The behaviour is seen when we start the pipeline/job, it will fail to start with a connection reset error from the Azure Event Hub producer destination.

Symptom

  • We observe this connection error while writing to or consuming messages from Azure Event hub.

  • The error occurs in the Kubernetes environment exclusively.

Resolving The Problem

  • Usually, a connection reset occurs by the end point so most likely Event Hub is rejecting the handshake from the job.

  • Check if there is service outage.

  • Verify the Connection String Key.

  • Run the following command to check the connectivity from the SDC server/kubernetes container.

    nslookup <YourNamespaceName>.servicebus.windows.net:<portnumber>

This command should work if the environment is able to connect to Azure Event Hub.

  • Please make sure all the IP addresses and ports are whitelisted. If the namespace is utilising zone redundancy, there may be additional IPs which needs to be added.

  • Unblock the traffic and open port in firewall for communication.

Document Location

Worldwide

[{"Line of Business":{"code":"LOB76","label":"Data Platform"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSM21Y","label":"IBM StreamSets"},"ARM Category":[{"code":"","label":""}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Version(s)"},{"Line of Business":{"code":"LOB76","label":"Data Platform"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSM7CU","label":"IBM StreamSets Data Collector"},"ARM Category":[{"code":"","label":""}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Version(s)"}]

Document Information

Modified date:
15 March 2025

UID

ibm17186126