Area: Ingestion
Sub-Area: Pipeline Execution
Applies to: OSS + Cloud
Issue
An ingestion run fails, is aborted, or never starts. This article lists checks you can do yourself and the messages DataHub prints for the most common cases.
You Might Be Asking
- How do I test my source credentials without running a full ingestion?
- Why was my run aborted?
- Why did a run report "Skipping stateful ingestion / stale entity removal"?
- Why does my scheduled run never start?
Cause
Ingestion runs fail for a few common reasons:
- The source details or credentials in the recipe are wrong, or the executor can't reach the source.
- A
${SECRET_NAME}in the recipe does not resolve in the place where the run executes. - The CLI version used by the run is not the one you expect.
- A run was aborted when a worker restarted.
- Stateful ingestion skipped stale entity removal (see section 5).
- The schedule is invalid, so the source never runs on schedule.
- The run is assigned to a Remote Executor Pool, and no running executor on the pool's channel can take it.
Solution
1. Test the source connection
-
CLI: run
datahub ingest -c recipe.yml --test-source-connection. It tests only the source connection details in the recipe and exits. See the CLI reference. - Do not use
--dry-runas a connection test. It runs the full extraction and only skips writing to the sink. - Do not use
datahub check pluginsto check credentials. It only lists installed ingestion plugins. - UI: most source forms have a Test Connection button. It checks that DataHub can connect to the data source, including network connectivity. See Test Your Connection.
- DataHub Cloud with a Remote Executor: the Test Connection request is not tied to the executor pool assigned to the source. Its result may not match what a run on your Remote Executor sees.
2. Check the recipe and secrets
- Config models built on the base config class reject unknown keys, so a misspelled or invented key can fail the run. Check key names against the source's page in the docs.
- Secrets use
${SECRET_NAME}. Names must start with a letter or underscore and contain only letters, digits and underscores. A hyphen is read as a default operator, so${DB-PASSWORD}means variableDBwith defaultPASSWORD. See Secret resolution. - UI secrets are created on the Secrets tab. You need the Manage Secrets privilege. Running and editing sources needs Manage Metadata Ingestion.
- DataHub secrets win over File secrets (
/mnt/secrets/), which win over Environment variables. - On DataHub Cloud, the File and Environment backends only apply when you use a Remote Executor.
- On a Remote Executor, secret names with hyphens, dots or slashes are not extracted. The literal text is passed through. See Using cloud secret managers.
3. Check the CLI version
- In UI ingestion, set the CLI version in the source's Advanced Settings (the CLI Version field). For CLI ingestion, the version is the
acryl-datahubversion you installed. - If you use an old version, upgrade to the latest release.
- Self-hosted only: the default CLI version for UI ingestion is set in Helm with
global.datahub.managed_ingestion.defaultCliVersion.
4. Read the run logs
- In the UI, open the run history for the source and view the detailed logs. See Viewing run history and Troubleshooting failed ingestion.
- For CLI runs, read the console output.
5. Messages you may see
- "Ingestion job got aborted due to worker restart." The worker restarted during the run. Run the source again.
- "CooperativeTimeout deadline exceeded." An operation ran past its cooperative timeout. Read the log lines before it to see which operation.
-
"Skipping stateful ingestion / stale entity removal." Stale entity removal was skipped. The message tells you why, and whether the run is marked as failed depends on the case:
-
"Entity difference exceeds fail_safe_threshold; skipping stale entity removal. To update, set stateful_ingestion.fail_safe_threshold in your recipe." This is reported as a failure. The context line reads
previous_run=X entities, current_run=Y entities, change=Z%, threshold=75.0.-
fail_safe_threshold(default 75.0) is the percentage of the previous run's entities that are missing from this run. It does not compare total counts. A run with the same or a higher entity count can still trip it when URNs change, for example after you changeplatform_instance,envor URN casing. - Find out why entities are missing before you change anything. Nothing is soft-deleted, and the previous run's URNs are carried into the new state, so the stale entities are removed on the next successful run.
- If the removal is intended, raise
stateful_ingestion.fail_safe_thresholdfor one run. Values must be 100 or less. A value of exactly 100.0 disables the check. - See Stateful ingestion.
-
- "The source did not produce any metadata. Despite stateful ingestion being enabled, we will not delete any metadata. This is a fail-safe mechanism to prevent the accidental deletion of all entities." This is also reported as a failure. The run produced no events. Check the recipe patterns and permissions.
- "The soft-deletion of stale entities will be skipped because the source reported a failure." This is recorded as a warning. Fix the source failure first.
-
"Entity difference exceeds fail_safe_threshold; skipping stale entity removal. To update, set stateful_ingestion.fail_safe_threshold in your recipe." This is reported as a failure. The context line reads
-
"pipeline_name must be set when stateful ingestion is enabled" (CLI runs). Add a top-level
pipeline_namethat is unique to the source and stable across runs. UI sources get one automatically.
6. Runs that never start
-
Scheduled runs: GMS runs the ingestion scheduler, not the executor. It accepts 5-field and 6-field cron and evaluates it in the schedule's timezone (default UTC). An invalid cron logs
Found malformed Ingestion Source schedule: <cron> for urn: <urn>. Skipping scheduling.and the source never runs on schedule. A valid schedule logsScheduling next execution of Ingestion Source with urn <urn>. Schedule: <cron>. Fix the cron expression in the source's schedule. On DataHub Cloud, contact DataHub Support to check GMS logs. - Remote Executor Pools: a run is created for the pool assigned to its source, so a pool with no matching running executor has nothing to pick up that run. An executor on a different channel (SQS or KAFKA) than its pool does not receive work. The Data Sources > Executors page shows each pool's channel, and a pool with no executors shows "No executors deployed yet." See Checking Remote Executor status and Assigning sources to a pool.
- Remote Executor capability checks: the v0.3.16.7 and v0.3.17.2 release notes list a fix in the Remote Executor. Capability checks for ingestion features no longer use a fixed subprocess timeout, so slow cold starts are less likely to fail those checks. If you run an older Remote Executor, upgrade it to the latest release. See the v0.3.16 release notes and the v0.3.17.2 release notes.
7. Still failing
- DataHub Cloud: if you use DataHub-hosted executors, contact DataHub Support. If you run a Remote Executor, you manage its logs, resources and environment variables.
- Include the run's detailed logs and the recipe with secrets removed.