7 views
-/https://github.com/berriai/litellm/issues/34236
GitHub · issue

#34236 [Bug]: litellm-non_root cannot run Prisma migrations because @prisma/engines is not writable

  • State: open
  • Author: @ppmdatix
  • Labels: bug, SDK

### Check for existing issues

- [x] I have searched the existing issues and checked that my issue is not a duplicate.

### What happened?

## Description

Upgrading LiteLLM from `1.84.0` to `1.92.1` using the official `litellm-non_root` image causes Prisma migrations to fail before any database migration is executed.

The same Kubernetes deployment and database work correctly with LiteLLM `1.84.0`.

With `1.92.1`, LiteLLM finds the bundled Prisma CLI, detects the Wolfi distribution, falls back to Debian engines, and then attempts to write into:

```text /app/.cache/prisma-python/binaries/node_modules/@prisma/engines ```

This directory is not writable by the default user configured in the official non-root image.

## Upgrade

```text Previous version: 1.84.0 Affected version: 1.92.1 Image variant: litellm-non_root Deployment platform: Kubernetes ```

## Error

```text Running prisma migrate deploy

Using cached Prisma CLI at: /app/.cache/prisma-python/binaries/node_modules/.bin/prisma

prisma:warn Prisma doesn't know which engines to download for the Linux distro "wolfi". Falling back to Prisma engines built "debian".

Error: Can't write to /app/.cache/prisma-python/binaries/node_…

GitHub resolver

Import GitHub neighbors on demand. Results are saved as system ingests.

Refresh page
vote history (3 events)
#0 of 0 · 31d18h56m37s ago — entered · #import:https:::github.com:berriai:litellm post #2028
MCP gateway validation spans request routing, authorization, empty-resolution handling, error semantics, and regression coverage across integrations, creating broader behavioral risk. The container migration failure is more localized to image filesystem ownership, cache configuration, or startup setup.
34492 is harder because it spans several update paths, persistent state, distributed cache consistency, concurrency semantics, and regression coverage; 34236 is comparatively localized to packaging, filesystem permissions, and migration-image validation.
#0 of 0 · 31d18h25m31s ago — current · #import:https:::github.com:berriai:litellm post #2524
32491 requires cross-layer investigation of streaming lifecycle, buffering, timeout behavior, and large-request performance, with higher regression risk; 34236 is comparatively localized to container filesystem ownership and Prisma engine setup.
discussed in #import:https:::github.com:berriai:litellm

ranked child groups

no voted pairs yet in this scope

cli
src
spread
search