Skip to content

[Bug]: LiteLLM Returning missing tables #16823

@DoryZi

Description

@DoryZi

What happened?

LiteLLM constantly reports missing tables (liteLLM_Config, LiteLLM_VerificationToken and others.
Tests show the Prisma client can connect ot the right db, and schema and read all tables correctly.
This could be a mismatch between Primsa client version, or other issues, but it's not clear why the tables are not found.

Relevant log output

Alert type: db_exceptions
Level: High
Timestamp: 15:26:26
Message: DB read/write call failed: The table public.LiteLLM_Config does not exist in the current database.LiteLLM Prisma Client Exception get_generic_data: The table public.LiteLLM_Config does not exist in the current database.
Exception Type: <class 'prisma.errors.TableNotFoundError'>
Traceback (most recent call last):
  File "/usr/lib/python3.13/site-packages/litellm/proxy/utils.py", line 1888, in get_generic_data
    response = await self.db.litellm_config.find_first(  # type: ignore
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        where={key: value}  # type: ignore
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/usr/lib/python3.13/site-packages/prisma/actions.py", line 12837, in find_first
    resp = await self._client._execute(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<10 lines>...
    )
    ^
  File "/usr/lib/python3.13/site-packages/prisma/client.py", line 579, in _execute
    return await self._engine.query(builder.build(), tx_id=self._tx_id)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/l

Are you a ML Ops Team?

No

What LiteLLM version are you on ?

ghcr.io/berriai/litellm:v1.79.3-stable.gemini3

Twitter / LinkedIn details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions