Area: Deployment Issues
Sub-Area: Remote Executor Network Configuration
Applies to: Cloud
Issue
Your Remote Executor runs in a private network, for example behind AWS PrivateLink. Ingestion runs fail while the executor builds the virtual environment, because the executor can't reach the Python package index.
The run log shows these lines:
❌ Venv setup failed: <error>Failed to set up virtual environment: <error>
Before that, the log shows Creating dynamic venv - this may take a few minutes.... The <error> text comes from the installer (uv) and describes the connection failure. The run fails. It does not go back to Pending.
You Might Be Asking
- Can I add PyPI to Private DNS resolution for PrivateLink access?
- How can I run ingestion in a network-restricted environment?
- Why does the Remote Executor need to reach a package index?
- Can I stop the executor from building a virtual environment at run time?
Cause
For each run that doesn't use a bundled venv, the executor builds a dynamic virtual environment. It installs acryl-datahub[<plugins>] and any Extra Pip Libraries with uv, from a Python package index. If the executor can't reach the index, the install fails and the run fails.
The Remote Executor needs outbound HTTPS (port 443) only, and no inbound connectivity. It must reach your DataHub Cloud URL, a Python package index, and the container registry that hosts the executor image. SQS-channel pools also need https://sqs.*.amazonaws.com/*.
DataHub's AWS PrivateLink documentation describes a private connection between your DataHub Cloud instance and your AWS account. It does not cover access to package indexes.
Solution
You have three ways to fix this.
Option 1: Use an internal package index (recommended)
- Set up an internal mirror of the package index.
- Set these variables in the Remote Executor's own environment, for example through Helm
extraEnvsor the container environment:
UV_INDEX_URL=https://your-internal-mirror/simple
UV_EXTRA_INDEX_URL=https://your-backup-mirror/simple
UV_EXTRA_INDEX_URL is optional. Use UV_* variables. Do not use PIP_INDEX_URL or PIP_EXTRA_INDEX_URL, because the executor installs with uv, not pip.
- Redeploy the executor so it picks up the variables. A restart aborts runs that are in progress on that executor, so do it when it is idle.
Set these variables on the executor deployment, not in a source's Extra Environment Variables. See Ingestion executor security.
Option 2: Bundle the connectors into the executor image
A bundled venv holds the connector in the image, so the run installs nothing at run time.
- Build from an unlocked
datahub-executorimage. Use a:<tag>or:<tag>-slimbase, not:<tag>-locked. Use the documentedDockerfile.bundled:
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> .
Each connector you list in BUNDLED_VENV_PLUGINS gets its own bundled venv. The build supports a BuildKit secret mount if you bundle from an authenticated private index. See Bundling additional connectors.
- Push the image to your container registry and deploy it as your Remote Executor image.
- In each source, open Advanced Settings on the Connection Details step and set CLI Version to
bundled. A recipe has no key for this. If CLI Version is empty,latestor a specific version, the executor builds a dynamic venv from the package index.
If a connector isn't bundled, the run falls back to a dynamic venv. On a locked image that fallback fails.
Air-gapped executors: lock the image
For hardened or air-gapped environments, lock the image. Append this to Dockerfile.bundled before you build:
USER root
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
Locking removes pip and uv, so nothing installs at run time. Set CLI Version to bundled on every source that runs on this executor.
Option 3: Open network access to the package index
- Allow outbound HTTPS (port 443) from the executor to your package index. For the default public index, allow both pypi.org and files.pythonhosted.org. Package files download from files.pythonhosted.org.
- Check that the executor's security groups and firewall rules allow the traffic.