Common Issues
Solutions to frequently encountered problems
Setup code is missing in the Hub logs
Symptoms: docker compose logs hub does not show a setup code for the first admin account.
Checks:
- The setup code is only printed as long as no user exists. If an account was already created, log in or recover the account.
- The setup code is logged with the
warnlevel. Make sureLOG_LEVELis not set toerrororfatal. - A new setup code is generated on every start of the Hub. Always use the code from the latest start.
Agent stays Offline after connecting
Symptoms: The Agent is running but shows as Offline in the Hub UI.
Checks:
- Verify
HUB_URLin the Agent'sagent.envis correct and reachable from the Agent's host. - Confirm the
AUTH_TOKENmatches the token generated for that Agent in the Hub UI. - Check Agent logs:
docker compose logs agentand look for connection errors. - If the Hub is behind a reverse proxy, make sure WebSocket upgrades are forwarded correctly. See the Reverse Proxy guide.
- If the logs show
token is missing signing-key segment, the token was created before v0.4.0. Rotate the token in the Hub UI and updateAUTH_TOKEN. See Upgrading. - If the Hub uses a self-signed certificate or a certificate from a private CA, mount the CA certificate into the Agent container and set
CA_CERT_FILEto its path. - After changing the
agent.envfile, recreate the container withdocker compose up -d agent. A plain restart does not reload the env file.
Agent logs "found the hub's secrets in the agent environment"
The Agent received APP_SECRET or OLD_APP_SECRET, usually because it shares the .env file with the Hub (the default before v0.5.0). The Agent removes these variables at startup, so deployed applications can not read them, but you should give the Agent its own env file:
- Create an
agent.envfile next to yourdocker-compose.ymland moveHUB_URL,AUTH_TOKENand all other Agent settings from.envinto it. - Change
env_file: .envtoenv_file: agent.envin theagentservice. - Recreate the Agent with
docker compose up -d agent.
Hub is not accessible / returns 502
Checks:
- Confirm the Hub container is running:
docker compose ps - Check Hub logs:
docker compose logs hub - Verify your reverse proxy is forwarding to the correct port (default:
8080). - If you set
TRUSTED_PROXIES, confirm the proxy's IP is included. An incorrect value can cause the Hub to reject requests.
Deployment is stuck in "Syncing"
Symptoms: An application stays in the syncing state indefinitely.
Checks:
- Verify the Agent is online.
- Check Agent logs for errors during the Docker Compose up/pull step.
- Ensure the Agent has access to the Docker API (
use_api_socket: truein the defaultdocker-compose.yml). - If the Compose file references private images, run
docker loginfor the registry on the Agent host, as the user that starts the Agent, and recreate the Agent withdocker compose up -d agent. Withuse_api_socket, Docker passes the registry credentials of that user to the Agent. The errorno credentials for <registry> found in the agent's Docker configmeans that the Agent has no credentials for this registry.
Deployment fails with permission denied during symlink checks
Symptoms: A deployment or redeployment fails with could not be checked for symlinks and permission denied, for example when a bind mount source is /deployments/my-app/data/app.
Application containers can create directories owned by their own UID or GID with restrictive permissions, such as 0700 or 0750. The Agent must be able to search every parent directory to inspect the mount source. The default Agent configuration drops all Linux capabilities, so running as root alone does not bypass these permissions.
The symlink checks prevent an application from creating a symlink in a writable bind mount and using it as a mount source on a later deployment to access paths outside its own directory. A path that cannot be inspected is rejected.
Solutions:
-
Prefer adjusting ownership, group membership or an ACL on the affected parent directories so the Agent can search them. Check every parent of the path named in the error and account for the UID and GID used by the application container. Avoid making application data world-readable or world-writable.
-
If those permissions cannot be changed, explicitly add
DAC_READ_SEARCHto the Agent service's Compose configuration. Merge this into the existing service, keeping its other settings:services: agent: cap_drop: - ALL cap_add: - DAC_READ_SEARCH -
After changing the Agent's Compose configuration, recreate it with
docker compose up -d --force-recreate agent, then retry the deployment. A plain restart does not apply capability changes.
DAC_READ_SEARCH bypasses file read and directory read/search permissions for all files
accessible to the Agent, not just the deployments directory. It does not bypass write
permissions. This capability is disabled by default; enable it only if you accept that broader
read access. Symlink checks remain enabled.
Adding the application to ALLOWED_PRIVILEGED_APPS skips all deployment security policy checks. Prefer fixing directory access or explicitly granting the capability instead of bypassing the policy for this error.
Repository sync fails with authentication error
Symptoms: Sync status shows failed with an authentication error.
Checks:
- Confirm the auth token is still valid and has not expired or been revoked.
- For token auth, verify the token has
read_repository(GitLab) orContents: read(GitHub) permissions. - Update the token in the repository settings under Authentication. OrcaCD tests the connection before saving and shows an error if the credentials are invalid.
Webhook sync not triggering
Symptoms: Pushes to the repository do not trigger a sync.
Checks:
- Confirm the webhook URL and secret in your Git provider match what OrcaCD shows in the repository settings. OrcaCD responds with
401for unknown repositories, wrong secrets and repositories whose sync type is not Webhook. See Webhooks. - Check that the Hub is publicly reachable on the configured
APP_URL. - Review the webhook delivery logs in your Git provider (GitHub: Settings → Webhooks → Recent Deliveries) to see if the request reached the Hub.
- Verify the webhook is configured to send push events.
Cannot log in after enabling OIDC / disabling local auth
If you locked yourself out by disabling local authentication, see Account Recovery.
If your issue is not listed here, please report it in GitHub Issues.
Last updated on