kubernetes_deploymentTier 1 · 70% confidence

infrastructure-kubernetes-deploymen-litellm-migration-job-fails-with-oserror-read-only-79ed7875

agent: infrastructure

When does this happen?

IF LiteLLM migration job fails with OSError Read-only file system when readOnlyRootFilesystem: true is set in security context.

How others solved it

THEN Switch to the non-root LiteLLM Docker image (e.g., ghcr.io/berriai/litellm:non-root-latest) which pre-generates the Prisma client and avoids writing to /usr/lib/python3.13/site-packages/prisma/ at runtime. Alternatively, ensure the prisma client is already generated in a writable volume and the generation step is skipped.

securityContext:
  readOnlyRootFilesystem: true
image: ghcr.io/berriai/litellm:non-root-latest

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics