Area: Ingestion Issues
Sub-Area: Virtual Environment and Dependency Management
Applies to: Cloud
Issue
An ingestion run on a Remote Executor fails while the executor sets up its virtual environment. The run log shows ❌ Venv setup failed: <error>, and the task fails with Failed to set up virtual environment: <error>. A failed install shows up as a failed run, not a run stuck in Pending.
The error usually comes from a uv pip install command that exits with a non-zero status. This happens when a package version you pinned conflicts with a dependency of the DataHub connector package. It also happens when the executor can't write to the uv cache.
The failure text has this shape. Placeholders stand in for the uv path and the exit status:
Failed to set up virtual environment: Command '[...]' returned non-zero exit status <N>.-
Command failed with captured output:followed by the installer output. For a dependency conflict, the installer output reports that it could not resolve the dependencies.
You Might Be Asking
- Why did my ingestion runs fail during virtual environment setup?
- How do I resolve conflicting package requirements in DataHub ingestion?
- Can I edit the auto-generated requirements file to fix a conflict?
- Why do dynamic venv builds fail when my executor uses a read-only root filesystem?
Cause
For a non-bundled run, the executor builds a dynamic venv for each run with uv venv. It then installs the acryl-datahub package and its plugins. Next, it installs your Extra Pip Libraries in a separate uv pip install -r step. A pin in Extra Pip Libraries can conflict with the connector's own requirements. For example, the looker, lookml and mode extras of acryl-datahub require python-liquid>=2.0.0,<3.0.0, so a pin such as python-liquid<2 conflicts with them.
If the executor runs with readOnlyRootFilesystem: true (Kubernetes) or readonly_root_filesystem = true (ECS), dynamic venv builds fail. The default uv cache is /home/datahub/.cache/uv on the container root, and the executor can't write to it. Sources that use the bundled CLI version aren't affected.
Solution
Fix package dependency conflicts
- Open the ingestion source under Manage Data Sources. On the Connection Details page, expand Advanced Settings.
- Check the Extra Pip Libraries field. It takes a JSON array of pip requirement strings, for example
["sqlparse==0.4.3"]. Text with one requirement per line or a barepackage==versionfails to parse. - Remove or update the pins that conflict with the connector. For a
python-liquid<2pin on a Looker source, remove the pin. - Save the source and run it again.
Example for Extra Pip Libraries:
# Before (causes conflict)
["python-liquid<2"]
# After (resolves conflict)
[]
You can't edit the auto-generated requirements files. The executor rebuilds them for every run.
Fix read-only root filesystem failures
Set UV_CACHE_DIR on the Remote Executor deployment, not in the recipe. Point it at a writable volume on the same filesystem as /tmp/datahub/ingest. Recipes have no advanced key. A recipe with unknown top-level keys fails validation.
Example Helm values:
extraVolumes:
- name: ingest-tmp
emptyDir: {}
extraVolumeMounts:
- name: ingest-tmp
mountPath: /tmp
extraEnvs:
- name: UV_CACHE_DIR
value: /tmp/uv-cache
Then redeploy the executor. See the best practices guide for details.
Set UV_* variables such as UV_CACHE_DIR on the executor deployment. Don't set UV_ or PIP_ names in a source's Extra Environment Variables. Newer executor code rejects them there.
Check the executor image
You don't need an executor image that exactly matches your DataHub Cloud version. Each release note lists a range of compatible Remote Executor images. For DataHub Cloud v2.4.4, use an image from v2.2.0-cloud through v2.4.4-cloud. Current image tags use the v<x.y.z>-cloud scheme.