litellm - 💡(How to fix) Fix [Bug]: issue on GKE [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
BerriAI/litellm#26918Fetched 2026-05-01 05:34:22
View on GitHub
Comments
0
Participants
1
Timeline
2
Reactions
0
Participants
Timeline (top)
labeled ×2

Error Message

LiteLLM Proxy:WARNING: proxy_server.py:1432 - Cannot restructure UI at /app/litellm/proxy/_experimental/out: path is not writable. UI may not work correctly for extensionless routes. Pre-build and restructure UI in Dockerfile for read-only deployments. LiteLLM: Setup complete. Skipping server startup as requested. LiteLLM Proxy:ERROR: prisma_migration.py:26 - 'prisma generate' stderr: prisma:warn Prisma doesn't know which engines to download for the Linux distro "wolfi". Falling back to Prisma engines built "debian". Please report your experience by creating an issue at https://github.com/prisma/prisma/issues so we can add your distro to the list of known supported distros. prisma:warn Prisma doesn't know which engines to download for the Linux distro "wolfi". Falling back to Prisma engines built "debian". Please report your experience by creating an issue at https://github.com/prisma/prisma/issues so we can add your distro to the list of known supported distros. Error: Traceback (most recent call last): File "/usr/lib/python3.13/site-packages/prisma/generator/generator.py", line 112, in run self._on_request(request) ~~~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib/python3.13/site-packages/prisma/generator/generator.py", line 170, in _on_request self.generate(data) ~~~~~~~~~~~~~^^^^^^ File "/usr/lib/python3.13/site-packages/prisma/generator/generator.py", line 255, in generate shutil.copy(data.schema_path, packaged_schema) ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.13/shutil.py", line 428, in copy copyfile(src, dst, follow_symlinks=follow_symlinks) ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.13/shutil.py", line 262, in copyfile with open(dst, 'wb') as fdst: ~~~~^^^^^^^^^^^ PermissionError: [Errno 13] Permission denied: '/usr/lib/python3.13/site-packages/prisma/schema.prisma'

Code Example

LiteLLM Proxy:WARNING: proxy_server.py:1432 - Cannot restructure UI at /app/litellm/proxy/_experimental/out: path is not writable. UI may not work correctly for extensionless routes. Pre-build and restructure UI in Dockerfile for read-only deployments.
LiteLLM: Setup complete. Skipping server startup as requested.
 LiteLLM Proxy:ERROR: prisma_migration.py:26 - 'prisma generate' stderr: prisma:warn Prisma doesn't know which engines to download for the Linux distro "wolfi". Falling back to Prisma engines built "debian".
Please report your experience by creating an issue at https://github.com/prisma/prisma/issues so we can add your distro to the list of known supported distros.
prisma:warn Prisma doesn't know which engines to download for the Linux distro "wolfi". Falling back to Prisma engines built "debian".
Please report your experience by creating an issue at https://github.com/prisma/prisma/issues so we can add your distro to the list of known supported distros.
Error:
Traceback (most recent call last):
  File "/usr/lib/python3.13/site-packages/prisma/generator/generator.py", line 112, in run
    self._on_request(request)
    ~~~~~~~~~~~~~~~~^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/prisma/generator/generator.py", line 170, in _on_request
    self.generate(data)
    ~~~~~~~~~~~~~^^^^^^
  File "/usr/lib/python3.13/site-packages/prisma/generator/generator.py", line 255, in generate
    shutil.copy(data.schema_path, packaged_schema)
    ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/shutil.py", line 428, in copy
    copyfile(src, dst, follow_symlinks=follow_symlinks)
    ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/shutil.py", line 262, in copyfile
    with open(dst, 'wb') as fdst:
         ~~~~^^^^^^^^^^^
PermissionError: [Errno 13] Permission denied: '/usr/lib/python3.13/site-packages/prisma/schema.prisma'
RAW_BUFFERClick to expand / collapse

Check for existing issues

  • I have searched the existing issues and checked that my issue is not a duplicate.

What happened?

The core issue is that LiteLLM's prisma generate command tries to write to /usr/lib/python3.13/site-packages/prisma/schema.prisma during the migration job, but:

Read-Only Package Directory: Python package directories (/usr/lib/python3.13/site-packages/) are part of the container image and are read-only Non-Root User: The container runs as user 1000 (non-root) for security, which lacks write permissions to system directories Security Context: The readOnlyRootFilesystem security setting prevents writes anywhere except explicitly mounted volumes

Steps to Reproduce

  1. Database migration job

migrationJob: enabled: true retries: 3 backoffLimit: 4 disableSchemaUpdate: false serviceAccountName: "" annotations: {} ttlSecondsAfterFinished: 120 resources: requests: cpu: 100m memory: 256Mi limits: cpu: 500m memory: 512Mi

extraContainers: [] extraInitContainers: - name: stage-prisma image: ghcr.io/berriai/litellm-database:main-stable command: ["sh", "-c", "cp -a /usr/lib/python3.13/site-packages/prisma/. /staging/"] volumeMounts: - { name: prisma-pkg, mountPath: /staging } 2. 3.

Relevant log output

LiteLLM Proxy:WARNING: proxy_server.py:1432 - Cannot restructure UI at /app/litellm/proxy/_experimental/out: path is not writable. UI may not work correctly for extensionless routes. Pre-build and restructure UI in Dockerfile for read-only deployments.
LiteLLM: Setup complete. Skipping server startup as requested.
 LiteLLM Proxy:ERROR: prisma_migration.py:26 - 'prisma generate' stderr: prisma:warn Prisma doesn't know which engines to download for the Linux distro "wolfi". Falling back to Prisma engines built "debian".
Please report your experience by creating an issue at https://github.com/prisma/prisma/issues so we can add your distro to the list of known supported distros.
prisma:warn Prisma doesn't know which engines to download for the Linux distro "wolfi". Falling back to Prisma engines built "debian".
Please report your experience by creating an issue at https://github.com/prisma/prisma/issues so we can add your distro to the list of known supported distros.
Error:
Traceback (most recent call last):
  File "/usr/lib/python3.13/site-packages/prisma/generator/generator.py", line 112, in run
    self._on_request(request)
    ~~~~~~~~~~~~~~~~^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/prisma/generator/generator.py", line 170, in _on_request
    self.generate(data)
    ~~~~~~~~~~~~~^^^^^^
  File "/usr/lib/python3.13/site-packages/prisma/generator/generator.py", line 255, in generate
    shutil.copy(data.schema_path, packaged_schema)
    ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/shutil.py", line 428, in copy
    copyfile(src, dst, follow_symlinks=follow_symlinks)
    ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/shutil.py", line 262, in copyfile
    with open(dst, 'wb') as fdst:
         ~~~~^^^^^^^^^^^
PermissionError: [Errno 13] Permission denied: '/usr/lib/python3.13/site-packages/prisma/schema.prisma'

What part of LiteLLM is this about?

Proxy

What LiteLLM version are you on ?

ghcr.io/berriai/litellm-database:main-stable

Twitter / LinkedIn details

No response

extent analysis

TL;DR

The issue can be resolved by configuring the Prisma generate command to write to a writable directory instead of the read-only /usr/lib/python3.13/site-packages/prisma/ directory.

Guidance

  • The error occurs because the Prisma generate command tries to write to a read-only directory. To fix this, you can configure the command to write to a writable directory, such as a mounted volume.
  • You can modify the extraInitContainers section of the migration job to include a volume mount that allows the Prisma generate command to write to a writable directory.
  • The readOnlyRootFilesystem security setting prevents writes to the root filesystem, so you will need to ensure that the writable directory is explicitly mounted as a volume.
  • You can verify that the fix worked by checking the logs for the migration job and ensuring that the Prisma generate command is able to write to the specified directory without encountering a PermissionError.

Example

extraInitContainers:
  - name: stage-prisma
    image: ghcr.io/berriai/litellm-database:main-stable
    command: ["sh", "-c", "cp -a /usr/lib/python3.13/site-packages/prisma/. /staging/"]
    volumeMounts:
      - { name: prisma-pkg, mountPath: /staging }
      - { name: prisma-writable, mountPath: /writable }

In this example, a new volume mount is added to the extraInitContainers section, which allows the Prisma generate command to write to the /writable directory.

Notes

The exact configuration changes required may vary depending on the specific requirements of your application and the constraints of your environment.

Recommendation

Apply a workaround by configuring the Prisma generate command to write to a writable directory, such as a mounted volume. This will allow the command to complete successfully

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

litellm - 💡(How to fix) Fix [Bug]: issue on GKE [1 participants]