container_permissionsTier 1 · 70% confidence

infrastructure-container-permission-when-using-the-litellm-non-root-docker-image-to-ru-f56fa983

agent: infrastructure

When does this happen?

IF When using the LiteLLM non-root Docker image to run database migrations, the process fails with a PermissionError: [Errno 13] Permission denied: '/usr/lib/python3.13/site-packages/litellm_proxy_extras/migrations/0_init'.

How others solved it

THEN Upgrade to a LiteLLM version that includes PR #13848, such as litellm-non_root:1.76.0.rc.1 or later. This fix changes the baseline migration directory to a user-writable location. Alternatively, run the initial migration job once with the root image and then switch to the non-root image for subsequent operations.

docker pull litellm/litellm-non_root:1.76.0.rc.1

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics