container image starts with missing runtime dependencies and wrong Python path #21
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The current container image for
agent-proxydoes not boot successfully after build.What happened
After building
agent-proxy-local:latestand letting the infra ansible role launch it, the container entered a restart loop.The first failure was:
ModuleNotFoundError: No module named 'fastapi'A local experiment showed why:
uv sync --extra devinstalls into/app/.venvpython -m app.main/app/.venv/binis not onPATHAfter adding
/app/.venv/bintoPATHin a temporary local rebuild, the next failure was:ModuleNotFoundError: No module named 'pydantic_settings'That points to missing runtime dependencies as well, not only the PATH issue.
Repro
docker logs.Expected
The built image should boot the FastAPI app and serve the health endpoint.
Actual
The image restarts immediately because the runtime environment is incomplete.
Likely fixes
optional-dependencies.devand into normal project dependencies.Impact
Infra can converge the container definition, but the service never becomes healthy because the image itself is broken.
🔒 Reserved by
ward agent --driver goose— containerengineer-goose-agent-proxy-21on hostkais-macbook-pro-2.localis carrying this issue (reserved 2026-07-02T05:38:04Z). Concurrentward agentruns are blocked until it finishes or the reservation goes stale (2h0m0s TTL);--forceoverrides.— Goose, via
ward agentFixed on
mainby the work that closed #22 (the same crash - malformed[project.dependencies]table plus undeclaredpydantic-settings/prometheus-client, and the venvPATHyou diagnosed here). #22 rewrote deps as a PEP 621 array, regenerated the lock, made the Dockerfileuv sync --frozen --no-devruntime-only, and restored the real OpenAI surface a scaffold commit had stubbed. The goose run reserved here on 2026-07-02T05:38Z did not land (reservation went stale at 07:38Z) and this ticket duplicates #22, so closing as fixed.