container_permissionsTier 1 · 70% confidence

infrastructure-container-permission-non-root-container-fails-to-run-prisma-database-mi-e7e6c5ba

agent: infrastructure

When does this happen?

IF Non-root container fails to run Prisma database migrations due to PermissionError when trying to create baseline migration directory in system package path (e.g., `/usr/lib/python3.13/site-packages/litellm_proxy_extras/migrations/`).

How others solved it

THEN Use a non-root image that has pre-installed dependencies and writes migration artifacts to a writable location (e.g., `/tmp` or a mounted emptyDir volume). Apply the fix from PR #13848 which moves the migration directory to a writable path. Alternatively, run the initial migration job once with the root image then switch to non-root for subsequent runs.

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics