
## Troubleshoot self-deployed runtime

URL: https://docs.atlan.com/product/connections/self-deployed-runtime/troubleshooting/troubleshoot-self-deployed-runtime

> Find why a self-deployed runtime or its workflows fail, from image pulls and container egress to workflows that never start, and check runtime health.

> **Info: Did you know?**
>
> SDR requires additional enablement and licensing. Contact your Atlan representative for details.

Find the symptom you see, from an SDR that doesn't start to workflows that never finish, then check SDR health with the monitoring commands and log lines at the end.

> **Tip**
>
> Start in **Connector > Deployments**. When Atlan detects a problem with a running app, the [Needs attention](https://docs.atlan.com/llms/platform/self-deployed-runtime/manage-deployments/llms.txt) panel shows a reason and a suggested fix.

## Install and startup

Errors specific to one setup task are on that task's page:

- [Docker Hub access errors](https://docs.atlan.com/llms/platform/self-deployed-runtime/set-up-docker-hub-access/llms.txt): `requested access to the resource is denied`, `unauthorized`, and a missing Docker Hub card.
- [Image signature verification fails](https://docs.atlan.com/llms/platform/self-deployed-runtime/security/llms.txt): image path, certificate identity, and Sigstore access.
- [Mirrored images](https://docs.atlan.com/llms/platform/self-deployed-runtime/update-guided/llms.txt): the orchestrator resolves every image through your image map on each install and upgrade, so correct a wrong reference in the map.

### Image pull fails

- **Docker Hub access:** Verify the **Docker Hub** card under **Settings** > **Integrations** shows **CONNECTED**, and that you sign in with that Docker ID and a valid access token. See [Set up Docker Hub access](https://docs.atlan.com/llms/platform/self-deployed-runtime/set-up-docker-hub-access/llms.txt).
- **Docker / Podman:** Verify you ran `docker login -u YOUR_DOCKER_ID` (or `podman login -u YOUR_DOCKER_ID docker.io`) before starting the SDR.
- **Kubernetes:** Verify the `atlan-registry-creds` secret exists and is referenced in `imagePullSecrets`:
 ```bash
 kubectl get secret atlan-registry-creds -n atlan
 ```
 If the secret is missing, create it:
 ```bash
 kubectl create secret docker-registry atlan-registry-creds \
 --namespace atlan \
 --docker-server=docker.io \
 --docker-username=YOUR_DOCKER_ID \
 --docker-password=YOUR_DOCKER_HUB_ACCESS_TOKEN
 ```
- If using a private registry, check that `container_registry.base`, `username`, and `password` are correct in `config.yaml` (Docker/Podman), or `sdr.config.containerRegistryBase` is set correctly in `values.yaml` (Kubernetes).

### Permission denied on socket

If you see `permission denied` when the SDR tries to manage containers:

- **Docker:** Make sure `DOCKER_GID` in the orchestrator's `.env` file matches the host's `docker` group ID (`getent group docker | cut -d: -f3`), then run `docker compose up -d`. The compose file adds the SDR to that group, which gives it permission to use the Docker socket.
- **Podman:** Verify the socket exists at `/run/user/$(id -u)/podman/podman.sock` and that you started the socket with `systemctl --user enable --now podman.socket`. If the orchestrator logs `PermissionError(13)` on the Podman socket under rootless Podman, contact [Atlan support](https://docs.atlan.com/llms/platform/submit-request/submit-request/llms.txt).
- **Kubernetes:** Check the SDR ServiceAccount has the correct RBAC permissions: `kubectl get rolebinding -n atlan -l app=atlan-sdr`. Verify the Role and RoleBinding exist and reference the correct ServiceAccount.

### SDR Orchestrator restarts repeatedly

When `podman ps` shows the orchestrator as `Up 1 second` each time, it's restarting in a loop. Read the unfiltered log to find the cause:

```bash
podman logs --since 10m <orchestrator-container> 2>&1 | grep -v "objectstore upload failed" | tail -80
```

Filtering to `[sdr]` or `[entrypoint]` lines hides the actual cause. Match the error to its fix:

| Error | Cause and fix |
|---|---|
| `FileNotFoundError: No such file or directory` | `CONTAINER_RUNTIME_SOCKET` in `.env` holds a host path. Set it to `unix:///var/run/docker.sock`, the path inside the container. |
| `daprd exited during startup` | Another service, such as the RHEL web console (Cockpit), holds port 9090. Set `SDR_HOST_PORT_SET=b` in `.env`. |
| `Permission denied: '/mnt/objectstore'` | The local object store folder isn't mounted, or the orchestrator can't write to it. Mount the folder in the `sdr` service and, on Podman, run `chmod g+w objectstore`. |
| `No Dapr component named 'objectstore' found in /app/components` (app containers) | SELinux blocks the bind mount. Add `label=disable` under `container_host_config` in `config.yaml`. The Podman package already sets it on the `sdr` service. |
| `Request timestamp is expired or too far in the future` (uploads) | The host clock is skewed. See [App container exits with `AAF-STR-006` error](#app-container-exits-with-aaf-str-006-error-and-host-clock-out-of-sync). |

For each step, see the Podman path in [Install SDR](https://docs.atlan.com/llms/platform/self-deployed-runtime/install-guided/llms.txt).

### App container exits with `AAF-STR-006` error and host clock out of sync {#app-container-exits-with-aaf-str-006-error-and-host-clock-out-of-sync}

If an app container starts and exits right away, and the container logs show:

- `[AAF-STR-006] Object-store access check failed ... write failed [invalid credentials]`
- A 401 response body: `{"code":1004,"error":"Invalid Timestamp","message":"Request timestamp is expired or too far in the future"}`

The app reports this as an invalid-credentials problem, but your object-store credentials can be correct. Atlan's object-store endpoint validates the timestamp on every request and rejects any request whose timestamp is more than 15 minutes away from UTC in either direction. When the host clock is wrong, every upload fails with this error and the container exits before it can register. Containers share the host clock, so this always points at the host, not the container.

To fix it, synchronize the host clock with UTC and keep it synchronized:

1. Compare the host clock with UTC: run `timedatectl` and confirm `System clock synchronized: yes` and the correct UTC time. `date -u` prints the same time.
2. Turn on an NTP client on the host:
 - RHEL, CentOS, Amazon Linux: `sudo systemctl enable --now chronyd`
 - Debian, Ubuntu: `sudo systemctl enable --now systemd-timesyncd`

 If the host can't reach public NTP servers, point the client at your internal NTP server.
3. Restart the deployment:
 - **Docker or Podman:** from the deployment directory, run `docker compose up -d` (or `podman compose up -d`).
 - **Kubernetes:** restart the app deployment so the pods pick up the corrected clock.

Watch the container logs after the restart: the object-store access check passes and the container stays up. If `AAF-STR-006` still appears, compare the log timestamps with the actual UTC time; NTP may not have taken effect yet.

### SDR state storage

**Docker / Podman:**

| Path | Contents | Backup needed? |
|---|---|---|
| `/mnt/config/config.yaml` | Your infrastructure config (read-only mount) | Yes—this is your only config file |
| `/mnt/deployments/` | Generated per-app deployment directories (docker-compose, .env, Dapr components) | No—the SDR regenerates these on deploy |

There's no database or persistent state beyond these two paths. If the VM is lost, re-run the SDR with the same `config.yaml` and Atlan re-deploys the apps automatically.

**Kubernetes:** State is stored in Kubernetes resources (ConfigMap and Secret) created by Helm. These are regenerated from `values.yaml` during install. If the namespace is deleted, re-run `helm install` with the same `values.yaml` and Atlan re-deploys the apps automatically.

## Connectivity

SDR reaches Atlan only over outbound connections. For the endpoints it must reach, see [outbound rules](https://docs.atlan.com/llms/platform/self-deployed-runtime/configure-network-security/llms.txt).

### SDR Orchestrator shows as Inactive in Atlan

- Check that outbound HTTPS and gRPC (port 443) aren't blocked by your firewall or security group.
- Verify the `TEMPORAL_HOST` environment variable points to your Atlan Temporal endpoint.
- Check SDR logs:
 - **Docker:** `docker logs atlan-sdr-{deployment_name}`
 - **Podman:** `podman logs atlan-sdr-{deployment_name}`
 - **Kubernetes:** `kubectl logs -n atlan -l app=atlan-sdr`

 Look for connection errors or authentication failures.

### App container exits with `AAF-STR-006` error and host clock out of sync

If an app container starts and exits right away, and you see these in the container logs:

- `[AAF-STR-006] Object-store access check failed ... write failed [invalid credentials]`
- A 401 response body: `{"code":1004,"error":"Invalid Timestamp","message":"Request timestamp is expired or too far in the future"}`

The SDK reports this as an invalid-credentials problem, but your object-store credentials can be entirely correct. Atlan's object-store endpoint validates the timestamp on every object-store request and rejects any request whose timestamp is more than 15 minutes away from UTC in either direction. When the host clock is wrong (for example, hours behind UTC), every upload fails with this error and the container exits before it can register.

Containers share the host clock, so this always points at the host clock, not the container. Keeping the host clock synchronized with UTC over NTP is a prerequisite for every Self-Deployed Runtime deployment platform.

**Resolution:** Synchronize the host clock with UTC and keep it synchronized.

1. Compare the host clock with UTC:
 ```bash
 timedatectl
 ```
 Confirm `System clock synchronized: yes` and that the UTC time is correct. (`date -u` prints the same time.)
2. Enable an NTP client on the host, for example:
 - RHEL, CentOS, Amazon Linux: `sudo systemctl enable --now chronyd`
 - Debian, Ubuntu: `sudo systemctl enable --now systemd-timesyncd`
3. Restart the deployment:
 - **Docker / Podman:** from the deployment directory, `docker compose up -d` (or the Podman equivalent)
 - **Kubernetes:** restart the app deployment so the pods pick up the corrected clock

**Verify the fix** by watching the container logs after the restart: the object-store access check passes and the container stays up. If `AAF-STR-006` still appears, compare the log timestamps with the actual UTC time. A still-running skew means NTP hasn't taken effect yet; the 15-minute window closes as soon as the clock is corrected.

### Connector containers can't reach Atlan when bridge NAT is restricted

Each connector container gets its own network namespace, so it doesn't inherit the Orchestrator's network path. On hosts where container bridge networking has no working NAT or masquerade rule, the Orchestrator stays healthy and connected while every connector it starts fails to reach your tenant.

Symptoms:

- The Orchestrator shows as **Healthy** in **Connector > Deployments**, and its logs show `Connected to Temporal`.
- Connector containers fail their uploads after roughly three minutes:

 ```text
 OSError: Generic S3 error: Error performing PUT
 https://<your-tenant>.atlan.com/api/blobstorage/... after 5 retries, 180s
 - HTTP error: error sending request
 ```

- `curl` to your tenant succeeds from the host but times out from inside a container.

> **Warning**
>
> Connectors reach Temporal, authentication, and blobstorage over the same port 443 path. When that path is broken, metadata extraction is blocked too, not only observability uploads. Check whether the connector's workflows run at all before treating this as an upload-only problem.

**Confirm the diagnosis** by testing egress from inside a container on the same network the connectors use:

```bash

# Podman:

podman run --rm --network podman curlimages/curl:8.10.1 \
 -sv --max-time 15 https://<your-tenant>.atlan.com/api/blobstorage -o /dev/null

# Docker:

docker run --rm --network bridge curlimages/curl:8.10.1 \
 -sv --max-time 15 https://<your-tenant>.atlan.com/api/blobstorage -o /dev/null
```

When the host reaches your tenant and this command times out, container egress is the problem.

**Recommended approach:** restore egress for the container network on the host. Work through these in order, because the first two account for most cases on rootful Podman:

1. **Firewall reload flushed the container NAT rules.** Any `firewall-cmd --reload`, including one triggered by configuration management, drops the rules the container engine installs, and containers lose outbound connectivity until those rules are rewritten. Check for a masquerade rule covering your bridge subnet:

 ```bash
 sudo nft list ruleset | grep -i netavark
 ```

 To restore the rules and keep the bridge interface trusted:

 ```bash
 sudo firewall-cmd --permanent --zone=trusted --add-interface=podman0
 sudo firewall-cmd --reload
 sudo systemctl restart podman
 ```

 The Orchestrator redeploys the connectors on its next reconcile cycle.

2. **Bridge subnet overlaps an internal route.** Compare the container network subnet against the host routing table:

 ```bash
 podman network inspect podman | grep -i subnet
 ip route
 ```

 When the default subnet overlaps a route on your network, return traffic goes to the wrong next hop and presents as a timeout. Recreate the container network on a free subnet.

3. **Forwarding is disabled or blocked.** `sysctl net.ipv4.ip_forward` returns `1` on a working host. Also check for a `FORWARD` chain policy of `DROP` with no container ACCEPT rules, which is common on hardened Linux hosts.

4. **MTU mismatch.** On a VM behind a VPN or overlay network with an MTU less than 1500, the TCP handshake succeeds and the TLS upload then stalls, which matches the 180-second timeout in the error. Recreate the network with `--opt mtu=1400` to test this.

5. **Unusable IPv6 route.** Re-run the verification command with `--ipv4`. When it succeeds only with that flag, the container namespace is selecting an IPv6 route the host can't use.

**If you can't change host firewall policy,** two alternatives keep the Orchestrator unchanged:

- **Point the default container network at a working one.** Podman resolves the `bridge` network mode to whatever its default network is. Create a network with a working subnet and MTU, then set it as `default_network` under `[network]` in `/etc/containers/containers.conf`. The Orchestrator continues to request `bridge` and gets your corrected network, with no change to `config.yaml`. Validate this on one deployment before you apply it broadly.
- **Route egress through a proxy.** When your environment reaches Atlan through a forward proxy rather than direct NAT, set the proxy variables on the Orchestrator once—it passes its environment to every connector it starts. See [Route egress through proxy](https://docs.atlan.com/llms/platform/self-deployed-runtime/route-egress-through-a-proxy/llms.txt).

**Host networking for connector containers isn't supported.** `network_mode` isn't a valid key under `container_host_config` in `config.yaml`. The Orchestrator accepts only the keys in this table and discards anything else, logging `Ignoring unsupported container_host_config keys`:

| Key | Purpose |
|---|---|
| `dns` | Custom DNS servers for connector containers |
| `dns_search` | DNS search domains |
| `extra_hosts` | Static hostname-to-IP mappings |
| `shm_size` | Shared memory size |
| `security_opt` | SELinux label options only, such as `label=disable` |

Connector containers run on the default bridge network so that each one publishes its application port to its own host port. Under host networking there's no port mapping, and every connector binds the same host port directly, which limits the host to a single running connector. Restore container egress on the host instead.

### Connector crash loop on EC2 with `AAF-STR-004` error and IMDSv2 timeout {#connector-crash-loop-on-ec2aaf-str-004-error-and-imdsv2-timeout}

If a connector container enters a crash loop before it begins listening on port 8000, and you see these in the logs:

- `AAF-STR-004: Failed to upload file` in the Atlan workflow logs
- `timeout waiting for http://169.254.169.254/latest/api/token` in the container logs

> `169.254.169.254` is the AWS Instance Metadata Service (IMDS) link-local address — it is the same on every EC2 instance.

The cause is EC2's default IMDSv2 hop limit of 1. Docker networking adds one extra network hop, so IMDSv2 token requests from inside containers are silently dropped. The AWS SDK retries for ~180 seconds before the container crashes. This affects any SDR connector that uses IAM instance roles—not just MSSQL.

**Resolution:** Increase the hop limit to 2. No reboot is required.

**AWS Console:**
1. Open the EC2 console and select your instance.
2. Go to **Actions** > **Instance settings** > **Modify instance metadata options**.
3. Set **Hop limit** to `2` and click **Save**.

**AWS CLI:**
```bash
aws ec2 modify-instance-metadata-options \
 --instance-id \
 --http-put-response-hop-limit 2 \
 --http-endpoint enabled
```

**Verify the fix** by running this from the EC2 host:
```bash
docker run --rm curlimages/curl curl -s -X PUT \
 http://169.254.169.254/latest/api/token \
 -H "X-aws-ec2-metadata-token-ttl-seconds: 21600"
```
A short token string in the response confirms the metadata service is reachable from inside containers. An empty response or timeout means the change hasn't propagated yet—wait a few seconds and retry.

### Proxy errors

If SDR sends its traffic through a forward or egress proxy:

| Symptom | Cause and fix |
|---|---|
| Workflow-engine connection drops or times out | Raise the proxy's idle and connection timeouts—the gRPC stream to `<your-tenant>-temporal.atlan.com` is long-lived. With TLS inspection, also enable HTTP/2, and consider a do-not-inspect rule for the `<your-tenant>-temporal.atlan.com` domain. |
| Some egress doesn't appear at the proxy | Confirm the variables are set in the SDR's container environment (not just your shell), and set both the upper- and lowercase forms (`HTTP_PROXY` and `http_proxy`). |
| Local object-store or secret traffic fails | Add those hosts to `NO_PROXY`; they shouldn't go through the proxy. |
| TLS / certificate errors on all traffic | The SDR doesn't trust the proxy's CA. Complete the [trust proxy's CA](https://docs.atlan.com/llms/platform/self-deployed-runtime/route-egress-through-a-proxy/llms.txt) step, and confirm the CA directory is mounted inside the container. |
| Uploads fail with signature errors | The proxy is modifying requests during inspection. Configure it to forward `Host`, headers, and body unchanged, or exempt uploads from decryption. |

## Workflows not running

### Workflow hangs or finishes with no assets

A workflow pointed at a wrong or retired agent queue doesn't fail loudly - it **hangs** until a ~24-hour timeout, or completes "successfully" with no assets. After first setup, and after **any** agent migration or rename, verify:

- The first run **starts doing work within minutes** - visible activity in the run logs, not a silent queue wait
- Run duration is in line with your source size (minutes-to-hours, not "exactly 24 hours")
- Assets appear in Atlan after the run - a "successful" run with zero new assets is a red flag
- Every connection that used a migrated or renamed agent has been re-pointed - workflow templates don't repoint themselves

### Secret errors

If a run fails because a credential doesn't resolve, check the page for the way you supply secrets:

- [Secret references in the workflow](https://docs.atlan.com/llms/platform/self-deployed-runtime/configure-workflow-execution/llms.txt): key type and reference format.
- [Environment variables](https://docs.atlan.com/llms/platform/self-deployed-runtime/configure-workflow-execution/llms.txt): a missing or misspelled variable surfaces as a login or authentication failure from the source, not a secret store error. Check that **Key Type** is **Single Key**, and list the variable names in the app container with `docker exec <app-container> sh -c 'env | cut -d= -f1'` (or `podman exec`).

**Existing Kubernetes Secrets** (when your values file references a Secret you manage):

| Symptom | Cause and fix |
|---|---|
| Pods stay in `CreateContainerConfigError` | The Secret doesn't exist in the install namespace, or a key name doesn't match. Check `kubectl get secret atlan-sdr-oauth -n atlan -o jsonpath='{.data}'` against the key names in your values file. |
| Authentication fails with the reference set | Confirm you mapped the right keys: `clientIdKey` must name the key holding the client ID, not the client ID itself. |
| SDR still shows a literal credential | A literal left in the values file is ignored, not used. Check that the Secret name is set, and that you're looking at the right release with `helm get values`. |
| A component fails to initialize with an unresolved reference | The store that resolves the reference isn't reachable. Either omit `auth.secretStore` to resolve from the pod environment, or confirm the named store is configured as a component. |

### Feature missing from SDR connection

Some features, such as sample data preview, Data Exploration queries, and tag reverse sync, aren't available with SDR. See [feature support](https://docs.atlan.com/llms/platform/self-deployed-runtime/llms.txt).

## Versions, rollback, and sizing {#versions-rollback-and-sizing}

{/* Anchors from the retired SDR Orchestrator FAQ, so old deep links still land here. */}

- **Check which version you're running:** see [Check running version](https://docs.atlan.com/llms/platform/self-deployed-runtime/sdr-orchestrator-image-and-versioning/llms.txt).
- **Roll back to a previous version:** see [Roll back](https://docs.atlan.com/llms/platform/self-deployed-runtime/sdr-orchestrator-image-and-versioning/llms.txt).
- **Size your VM or cluster:** see System requirements in [Install SDR](https://docs.atlan.com/llms/platform/self-deployed-runtime/install-guided/llms.txt).
- **Run more than one SDR:** give each a unique deployment name. See [Find SDR or app](https://docs.atlan.com/llms/platform/self-deployed-runtime/manage-deployments/llms.txt).

## Check SDR health

### Monitoring SDR

### Docker

- **Container status:** `docker ps | grep atlan-sdr`
- **Resource usage:** `docker stats atlan-sdr-{deployment_name}`
- **Logs:** `docker logs --tail=100 -f atlan-sdr-{deployment_name}`

### Podman

- **Container status:** `podman ps | grep atlan-sdr`
- **Resource usage:** `podman stats atlan-sdr-{deployment_name}`
- **Logs:** `podman logs --tail=100 -f atlan-sdr-{deployment_name}`

### Kubernetes

- **Pod status:** `kubectl get pods -n atlan -l app=atlan-sdr`
- **Resource usage:** `kubectl top pods -n atlan -l app=atlan-sdr`
- **Logs:** `kubectl logs -n atlan -l app=atlan-sdr --tail=100 -f`
- **All app pods:** `kubectl get pods -n atlan`

The SDR doesn't expose a metrics endpoint. Monitor it externally via container/pod health status and log aggregation.

### Log lines to watch for

| Log message | Meaning |
|---|---|
| `Connected to Temporal` | SDR successfully connected to Atlan—healthy |
| `Worker started` / `K8s SDR worker listening on task_queue` | SDR is polling for tasks—healthy |
| `connection refused` | Can't reach Temporal endpoint—check firewall/DNS |
| `permission denied` | Socket access issue (Docker/Podman) or RBAC issue (Kubernetes) |
| `pull access denied` | Registry auth failed—check `docker login` or `imagePullSecrets` |

_Last updated: 23 November 2026._

---

> **Using an AI agent?** The Atlan Docs MCP server lets it search these docs directly. Setup for each client: https://docs.atlan.com/skills/install-docs-mcp.md
