Can't connect to event hub from external machine. Connection setup timeout

BERENGER, RENAN 0 Reputation points
2024-02-23T21:29:01.1+00:00

Hi, I have a Apachel Camel application with a route to produce and another route to consume from Event Hub.

I'm using kafka connector and it was working fine. Recently new servers were created but I can't make it work on new servers.

We get the following error on startup:

[] 2024-02-23 16:16:50,683 WARN org.apache.kafka.clients.NetworkClient$DefaultMetadataUpdater: [Producer clientId=producer-1] Bootstrap broker bbnmsls-cim-ml-st-evhns.servicebus.windows.net:9093 (id: -1 rack: null) disconnected [] 2024-02-23 16:17:02,888 INFO org.apache.kafka.clients.NetworkClient: [Producer clientId=producer-3] Disconnecting from node -1 due to socket connection setup timeout. The timeout value is 24155 ms.

And this error when app try to produce:

org.apache.kafka.common.errors.TimeoutException: Topic bbnmsls-cim-ml-tmf-nc-evh-test not present in metadata after 60000 ms. > [] 2024-02-23 14:41:25,909 WARN org.apache.camel.spi.CamelLogger: Execution of JMS message listener failed. Caused by: [org.apache.camel.RuntimeCamelException - org.apache.kafka.common.errors.> TimeoutException: Topic bbnmsls-cim-ml-tmf-nc-evh-test not present in metadata after 60000 ms.] org.apache.camel.RuntimeCamelException: org.apache.kafka.common.errors.TimeoutException: Topic bbnmsls-cim-ml-tmf-nc-evh-test not present in metadata after 60000 ms.

Server, topic and authentication properties are correct. We also tried telnet to host and port and it is working fine. Any suggestion or comment will be appreciated.

Azure Event Hubs
Azure Event Hubs
An Azure real-time data ingestion service.
591 questions
{count} votes

1 answer

Sort by: Most helpful
  1. QuantumCache 20,186 Reputation points
    2024-02-24T03:35:49.3333333+00:00

    Hello @BERENGER, RENAN I would recommend checking if the new servers have the necessary network access to connect to the Event Hub!!! Ensure that the IP firewall rules are configured to allow traffic from the external machine's IP address, please involve your network team!

    0 comments No comments