Area: Ingestion Issues
Sub-Area: LookML Connector
Applies to: OSS + Cloud
Issue
LookML ingestion fails at the start of the run, when the connector clones your LookML Git repository. This happens when the container that runs ingestion has no ssh client.
On v1.6.0 and later, the run report shows the failure Failed to clone LookML repository with the message Unable to clone the git repository. The logs show an error that starts with Git clone failed:. On v1.5.0.3 to v1.5.0.7, the run fails with a GitCommandError from git clone instead. In both cases, the Git output inside the error says the ssh command was not found.
On self-hosted DataHub, this starts after an upgrade to any release from v1.5.0.3 up to and including v1.6.0.5. That covers v1.5.0.3 to v1.5.0.7 and v1.6.0 to v1.6.0.5.
You Might Be Asking
- Why did my LookML ingestion stop working after I upgraded?
- Is something wrong with my deploy key or my Git repository?
- Which container do I need to check, and how do I fix it?
Cause
When you set git_info in a LookML recipe, the connector clones the repository over SSH (see the git_info and deploy key setup in the Looker and LookML source docs). It runs git clone against the repository's SSH address and tells Git to use the ssh command with your deploy key. If ssh isn't installed in the container, the clone fails before your key or repository is ever checked. Your deploy key and repository settings are not the problem.
In self-hosted DataHub, UI and scheduled ingestion run in the datahub-actions container. Up to v1.5.0.2, that image used an Ubuntu base. Starting with v1.5.0.3, it uses a Wolfi base that installs git but not openssh-client, so ssh is missing. DataHub v1.7.0 added openssh-client back to the datahub-actions image, and every later release includes it.
In DataHub Cloud, ingestion runs in the datahub-executor image. Current executor images include openssh-client.
If you set base_folder instead of git_info, the connector reads LookML files from a local folder and doesn't clone anything, so it doesn't need ssh.
Solution
Self-hosted DataHub
- Find the pod that runs ingestion. Its name contains
datahub-actions.
kubectl get pods
- Check for
sshin that pod. Replace<datahub-actions-pod>with the pod name from step 1.
kubectl exec <datahub-actions-pod> -- ssh -V
If ssh is installed, the command prints its version. If kubectl reports that the executable was not found, ssh is missing.
-
Upgrade DataHub to v1.7.0 or later. Use the latest release if you can. The
datahub-actionsimage in these releases includesopenssh-client. See Deploying with Kubernetes for upgrade steps. -
If you can't upgrade yet, build your own image from your current
datahub-actionsimage and installopenssh-client. The image runs as thedatahubuser, so switch torootto install the package and switch back after. The sameUSER rootandUSER datahubpattern appears in Bundled ingestion virtual environments.
FROM acryldata/datahub-actions:<your-current-tag>
USER root
RUN apk add --no-cache openssh-client
USER datahub
Deploy the new image in place of the old one.
- Run the LookML ingestion again.
DataHub Cloud
If you run ingestion on a Remote Executor in your own environment, you deploy the executor image, so you need to update it yourself. Deploy the latest Remote Executor image tag. See Configuring Remote Executor for how to change the image tag on ECS, Kubernetes or Docker. If you build a custom image on top of the executor image, rebuild it from the latest executor image.
To check a Remote Executor running on Kubernetes, run the same command as above against the executor pod:
kubectl exec <remote-executor-pod> -- ssh -V
If you see this error with ingestion that DataHub runs for you (not on a Remote Executor), contact DataHub Support.
Verify the fix
Run the LookML ingestion source again. The clone step completes, the run report shows no clone failure, and your LookML views appear in DataHub.