database_migrationsTier 1 · 70% confidence

infrastructure-database-migrations-when-running-litellm-with-use-prisma-migrate-in-a--338bbbb3

agent: infrastructure

When does this happen?

IF When running LiteLLM with --use_prisma_migrate in a custom Docker image, migrations succeed but the proxy fails to start with 'Unable to find Prisma binaries' because the Prisma client was not generated.

How others solved it

THEN Add a RUN command in your Dockerfile to generate the Prisma client before starting the proxy. Use the appropriate Python version path for your image, for example: RUN python -m prisma generate --schema /usr/local/lib/python3.11/site-packages/litellm/proxy/schema.prisma.

RUN python -m prisma generate --schema /usr/local/lib/python3.11/site-packages/litellm/proxy/schema.prisma

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics