Troubleshooting¶
Start with:
docker compose -f compose.yaml -f compose.prod.yaml ps
docker compose -f compose.yaml -f compose.prod.yaml logs --tail=200 agent
docker compose -f compose.yaml -f compose.prod.yaml config --quiet
Do not post .env or unredacted logs publicly.
Compose says AGENT_NAME is required¶
AGENT_NAME is the only required ServerEnv field and Compose validates it
before startup. Confirm .env exists in the repository root and contains a
non-empty value:
AGENT_NAME=my-blacki
If you use a different file, pass it explicitly:
ENV_FILE=.env.production docker compose --env-file .env.production \
-f compose.yaml -f compose.prod.yaml config --quiet
ENV_FILE=.env.production docker compose --env-file .env.production \
-f compose.yaml -f compose.prod.yaml up -d
Startup says no model API key is configured¶
Activate one provider:
ROOT_AGENT_MODEL=gpt-6-luna
OPENAI_API_KEY=replace-me
ROOT_AGENT_MODEL=gemini-2.5-flash
GOOGLE_API_KEY=replace-me
Do not leave an active placeholder for the provider you are not using.
If startup names OPENAI_API_KEY, ROOT_AGENT_MODEL is an OpenAI model and the
key is missing. If startup reports an unsupported openrouter/... value, use a
catalog id such as gpt-6-luna, or a plain gemini-* id with GOOGLE_API_KEY.
Telegram token validation fails¶
The token must be present when TELEGRAM_ENABLED=true and match the
number:string shape returned by BotFather. Remove surrounding quotes and
trailing whitespace. Regenerate the token if its value is uncertain.
The container is unhealthy¶
The Compose probe calls /ready inside the container. Inspect the startup
exception:
docker compose -f compose.yaml -f compose.prod.yaml logs --tail=200 agent
Common causes are missing configuration, an invalid Telegram token, a database permission problem, or an exception while an enabled integration starts.
Startup fails with "no OTLP exporter package"¶
An OTEL_EXPORTER_OTLP_* endpoint is set, so ADK tries to add its OTLP
exporters, but opentelemetry-exporter-otlp-proto-http is missing. It is a
declared dependency, so this normally means a custom image removed it. Reinstall
the package or unset the endpoint variables to keep the local files only.
The dashboard shows no model calls¶
Startup logs "GenAI content capture is off" when
OTEL_SEMCONV_STABILITY_OPT_IN does not include gen_ai_latest_experimental or
OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT is not SPAN_ONLY or
SPAN_AND_EVENT. Older .env files set the second variable to false; change
it to SPAN_ONLY and restart.
/ready returns HTTP 503¶
status: starting means application startup has not finished. status:
degraded with database: unhealthy means SQLite is unavailable. /health is an exact
compatibility alias; /live can still return HTTP 200 while readiness is 503.
The web interface is unreachable¶
VPS defaults intentionally set:
SERVE_WEB_INTERFACE=false
The production overlay binds only to loopback by default. For the private
dashboard, set HOST_BIND_IP to the server's Tailscale IPv4 address, recreate
the production service, and open /dashboard from an allowed tailnet device.
Use Tailscale ACLs because the dashboard has no application authentication.
For the ADK development interface, keep it disabled in production and use an
SSH tunnel as described in First VPS deployment.
Host port 8080 is already in use¶
Change only the host port:
HOST_PORT=8081
The container still listens on port 8080. Recreate it and adjust the SSH tunnel or local health URL to the new host port.
Permission denied under /app¶
The entrypoint creates and assigns ownership for /app/src/.adk, /app/data,
and /app/logs before dropping to the non-root app user. Rebuild the current
image:
docker compose -f compose.yaml -f compose.prod.yaml up --build -d
Then inspect the host directory ownership. Avoid making the state directories world-writable.
State disappeared after restart¶
Confirm all three bind mounts are present in the resolved configuration:
docker compose -f compose.yaml -f compose.prod.yaml config
ADK HTTP and web sessions are intentionally in memory and do not persist.
SQLite-backed tools use .adk_state/; optional local memory uses data/.
The Docker build is killed or stalls¶
The first source build resolves a large locked Python environment. Check VPS memory and disk pressure, then retry after correcting the resource constraint. Alternatively, publish a verified image from CI and use the explicit prebuilt-image path.
docker compose is not a command¶
Install the maintained Docker Compose plugin from Docker's package repository.
The legacy docker-compose command is not used by this project.