Area: Ingestion
Sub-Area: Configuration
Applies to: OSS + Cloud
Issue
When you set up a new data source in the DataHub UI, the connection test fails even though your credentials look correct. Common causes are network connectivity problems, firewall rules that block the executor from reaching the source, SSL settings, or incorrect connection parameters.
You Might Be Asking
- Why is my connection test failing in the DataHub UI?
- How do I debug connection issues?
- How do I test a source connection from the CLI?
- How do I configure SSL for a database source?
Cause
Most ingestion source forms have a Test Connection button. It checks that DataHub can connect to the data source, including network connectivity.
In self-hosted DataHub, the datahub-actions executor action handles both the ingestion task (RUN_INGEST) and the connection test task (TEST_CONNECTION). So the test runs from the actions pod, not from GMS.
On DataHub Cloud, the Test Connection request is not tied to the executor pool assigned to your source. A Test Connection result may not match what a run on your source's Remote Executor would see. If Test Connection fails but you expect the Remote Executor to reach the source, check network access from the Remote Executor itself.
The test fails when the executor can't reach the source, when a firewall blocks it, when SSL options are wrong, or when the connection details are wrong.
Solution
-
Check network access from the executor.
- Make sure the executor's IP or CIDR range is allowed in the source system.
- Make sure outbound traffic is allowed on the source's port.
- Check whether a VPN or private link is required. For cloud-managed databases (RDS, Cloud SQL and similar), make sure the database accepts connections from the executor's network.
- Self-hosted DataHub only: run the network test from the
datahub-actionspod, not from GMS. - DataHub Cloud with a Remote Executor: you manage that deployment, so run the network test from there.
- DataHub Cloud with DataHub-hosted executors: you can't access the executor. Contact DataHub Support. Sign in first, or use your usual support channel.
-
Check the connection details. If the recipe uses
${NAME}secrets, make sure each secret exists and the name matches. On DataHub Cloud, the File and Environment secret backends only apply when you use a Remote Executor. See Secret Resolution. -
Fix SSL settings. SQL sources don't have
ssl,ca_certorverify_sslkeys. Config models reject unknown keys, so a recipe with them fails validation. For Postgres, set SSL underoptions.connect_args:
source:
type: postgres
config:
host_port: "postgres.example.com:5432"
database: "your_database"
username: "${DB_USER}"
password: "${DB_PASSWORD}"
options:
connect_args:
sslmode: verify-full
sslrootcert: /path/to/ca-cert.pem
You can also set sslcert and sslkey under connect_args. See the Postgres starter recipe. Other sources use different keys, so check the source's page in the docs.
-
Test the connection from the CLI. Save your recipe as
test-connection.yml(the Postgres recipe above works as an example) and run:
datahub ingest -c test-connection.yml --test-source-connection
This tests only the source connection details in the recipe and exits. Don't use --dry-run for this. --dry-run runs the full extraction and only skips writing to the sink. datahub check plugins only lists installed plugins. It does not test credentials or read a recipe. See the CLI reference.
-
Read the executor logs.
- Self-hosted DataHub only: read the logs of the
datahub-actionspod. Find its name withkubectl get pods. - DataHub Cloud with a Remote Executor: read the logs of your own executor deployment. See Checking Remote Executor status.
- DataHub Cloud with DataHub-hosted executors: contact DataHub Support.
For the UI side, see Test Your Connection and the troubleshooting section on the same page.
- Self-hosted DataHub only: read the logs of the
Related Documentation
- Managed Ingestion (UI ingestion)
- Secret Resolution
- Postgres starter recipe
- CLI reference
- Remote Executor setup and troubleshooting
Tags: connection-test, networking, firewall, ssl, connectivity, ingestion-setup, configuration, troubleshooting