Error: Failed to Connect to api.fivetran.com Port 443
Issue
When you attempt to start the Hybrid Deployment Agent using the hdagent.sh script, the agent fails to start due to connectivity issues with api.fivetran.com.
To check HTTPS connectivity from the host running the Hybrid Deployment Agent, run the following command:
curl -v "https://api.fivetran.com"
You may encounter the following error:
Failed to connect to api.fivetran.com port 443: Connection timed out.
This error is an example of a connectivity failure that can be identified independently of the agent startup process. The exact startup error may vary depending on the underlying connectivity issue.
Environment
- Deployment model: Hybrid Deployment
- Container Platform: Docker and Podman
Resolution
To resolve this issue:
- Check the
/etc/hostsfile for static entries mappingapi.fivetran.comto a specific IP address:grep -n 'api\.fivetran\.com' /etc/hosts - Check how the host resolves
api.fivetran.com:getent hosts api.fivetran.com - Check how DNS resolves
api.fivetran.com:nslookup api.fivetran.comIf the results differ, check whether a static entry in the
/etc/hostsfile overrides DNS resolution. - If you find an incorrect static entry, back up
/etc/hosts, back up the/etc/hostsfile. - Remove the incorrect static entry for
api.fivetran.comfrom/etc/hostsfile. - Verify that
api.fivetran.comresolves correctly:getent hosts api.fivetran.com - Verify HTTPS connectivity to
api.fivetran.com:curl -v "https://api.fivetran.com"Confirm that the connection and TLS handshake complete successfully.
- Start the Hybrid Deployment Agent:
./hdagent.sh start - Verify that the Hybrid Deployment Agent is online in the Fivetran dashboard.
If multiple Hybrid Deployment Agents run on the same host, schedule any restarts during a maintenance window to avoid disrupting active pipelines.
Cause
This issue occurs when a static entry in the host's /etc/hosts file overrides DNS resolution for api.fivetran.com and directs requests to an incorrect or outdated IP address. When this happens, the Hybrid Deployment Agent can't establish a connection to Fivetran and fails to start.