Area: Deployment Issues
Sub-Area: Remote Ingestion Executor (air-gapped and private subnet deployments)
Applies to: Cloud
Issue
Your Remote Executor runs in a private subnet or an air-gapped network and can't reach pypi.org. By default, each ingestion run builds a fresh Python virtual environment (venv) at runtime and installs acryl-datahub and the connector with uv. Without a reachable package index, that install fails and the run never starts.
To run with no outbound package downloads, every connector you use must be pre-installed in the executor image at build time (a "bundled venv"), and each ingestion source must be set to use it.
Error Messages
When the CLI Version is bundled but the image has no venv for the source type:
Bundled startup venv not found: /opt/datahub/venvs/<source-type>-bundled
When a source runs on a -locked image and its CLI Version is not bundled:
uv not found in PATH.
Both appear in the run logs after Failed to set up virtual environment:.
You Might Be Asking
- What does the
-lockedexecutor image do? - Which connectors are already bundled in my executor image?
- How do I build an executor image that bundles the connectors I need?
- How do I tell a source to use the bundled venv?
- What happens to Extra Pip Libraries set in the UI?
Cause
The executor picks the venv from the source's CLI Version setting:
-
bundled: the run uses the pre-built venv at/opt/datahub/venvs/<source-type>-bundled, where<source-type>is thesource.typein the recipe. Nothing is installed at runtime. If that directory doesn't exist, the run fails withBundled startup venv not found. - Empty (the default, treated as
latest),latest, or a specific version number: the executor builds a dynamic venv under/tmp/datahub/ingest/<execution-id>/and installs packages withuv. This needs a reachable package index.
Solution
Pick the right image
DataHub publishes these Remote Executor variants:
-
:<tag>(full) and:<tag>-slim: unlocked. They can install packages at runtime and can be extended with more bundled connectors. -
:<tag>-locked: the slim image withpipanduvremoved and the package index URLs pointed athttp://127.0.0.1:1/simple. Sources on this image run only from bundled venvs. You can't extend it.
Starting with Remote Executor v2.4.4, the -locked image bundles a set of common connectors, including Snowflake, BigQuery, dbt, Glue, Kafka, Unity Catalog, Looker, LookML, Redshift, Tableau, Power BI, SQL Server, Iceberg, Postgres, Athena, Oracle, Fivetran, Kafka Connect, ClickHouse and GCS, plus S3. MySQL is not in that list. Earlier -locked images bundle only s3, demo-data, file and DataHub's own system sources.
Check what your image actually contains before you switch:
docker run --rm --entrypoint ls <registry>/datahub-executor:<tag>-locked /opt/datahub/venvs
Every <source-type>-bundled entry is a source type that can run with CLI Version bundled. If all your source types are listed, use -locked directly. If any are missing, build a custom image (next step).
Build a custom image with the connectors you need
Follow Bundling Additional Connectors. Start from an unlocked image (:<tag> or :<tag>-slim), never from -locked. The builder script reads environment variables, not command line flags.
Save this as Dockerfile.bundled. The last block locks the image after bundling, as described in Optional: lock the image. Leave that block out if you want an image you can keep extending.
# syntax=docker/dockerfile:1
ARG EXECUTOR_IMAGE
FROM ${EXECUTOR_IMAGE}
USER root
# Optional: omit to keep the base image's BUNDLED_CLI_VERSION (recommended).
ARG BUNDLED_CLI_VERSION
ENV BUNDLED_CLI_VERSION=${BUNDLED_CLI_VERSION}
ARG BUNDLED_VENV_PLUGINS
ENV BUNDLED_VENV_PLUGINS=${BUNDLED_VENV_PLUGINS}
RUN /usr/local/bin/build_bundled_venvs_unified.sh
# Lock the image: remove pip and uv, and block the package indexes
RUN sh /usr/local/bin/lock_image.sh
ENV UV_INDEX_URL=http://127.0.0.1:1/simple
ENV UV_DEFAULT_INDEX=http://127.0.0.1:1/simple
ENV PIP_INDEX_URL=http://127.0.0.1:1/simple
ENV PIP_EXTRA_INDEX_URL=""
ENV UV_EXTRA_INDEX_URL=""
USER datahub
Build it, listing the connectors you need as a comma-separated list:
docker build \
--platform linux/amd64 \
--build-arg EXECUTOR_IMAGE=<registry>/datahub-executor:<tag>-slim \
--build-arg BUNDLED_VENV_PLUGINS=mysql,snowflake \
-f Dockerfile.bundled \
-t <registry>/datahub-executor-custom:<tag> \
.
The build installs packages with uv, so the build host needs a package index. If it can only reach an internal mirror, set UV_INDEX_URL to your mirror before the RUN /usr/local/bin/build_bundled_venvs_unified.sh line. Match --platform to the CPU architecture of the nodes that run the executor.
The builder installs DataHub connector plugins. Extra Pip Libraries set in the UI are not installed for bundled runs, so a source that needs other packages won't get them at runtime. If you need packages beyond DataHub's connector plugins in a bundled image, contact DataHub Support.
Set CLI Version to bundled on every source
Building the image doesn't change which venv a run uses. For each ingestion source on this executor:
- In DataHub, go to Ingestion and edit the source.
- Expand Advanced Settings.
- Set CLI Version to
bundled. - Save and run the source.
If CLI Version is empty, latest or a version number, the executor builds a dynamic venv and tries to download packages. On a -locked image that fails with uv not found in PATH., and on an unlocked image with no index access the uv install fails.
A bundled run uses the acryl-datahub version baked into the image (BUNDLED_CLI_VERSION). To get a newer CLI, move to a newer executor image.
Check the run logs
Open the run's logs in the UI. A bundled run shows:
Setting up venv for plugin '<source-type>' with version 'bundled'
Using Bundled startup (pre-built) venv
Using existing bundled startup venv: /opt/datahub/venvs/<source-type>-bundled
No Creating new venv or Installing datahub lines appear.
Using an internal mirror instead of a full air gap
If your executor can reach an internal PyPI mirror, you can keep an unlocked image and dynamic venvs. Set UV_INDEX_URL (and UV_EXTRA_INDEX_URL if needed) in the executor's environment, not in the recipe. See Ingestion executor security and hardening.