16 views
-/https://github.com/berriai/litellm/issues/22998
GitHub · issue

#22998 [Bug]: litellm_proxy_extras migrations recorded as applied but columns not created — causes silent failures and 500 errors on upgrade

  • State: open
  • Author: @madhu19991
  • Labels: stale

## What happened?

After upgrading to **v1.81.14-stable** (`ghcr.io/berriai/litellm-non_root`), the proxy started returning `500 Internal Server Error` on `/v2/login` and silently returning empty arrays from `/v1/mcp/server`. Both failures were caused by missing DB columns that should have been added by `litellm_proxy_extras` migrations.

### Root cause

The extras migrations were **recorded as applied** in `_prisma_migrations` (i.e. `prisma migrate deploy` reported "No pending migrations to apply") but the actual `ALTER TABLE` SQL was never executed against the database. The schema and DB were silently out of sync.

### Symptoms

**Login broken (500 on /v2/login):** ``` prisma.errors.DataError: The column `LiteLLM_VerificationToken.project_id` does not exist in the current database. ``` Then after fixing `project_id`: ``` prisma.errors.DataError: The column `LiteLLM_VerificationToken.last_active` does not exist in the current database. ```

**MCP servers silently returning empty list:** ``` prisma.errors.DataError: The column `LiteLLM_MCPServerTable.spec_path` does not exist in the current database. ``` Note: `get_all_mcp_servers()` in `db.py` catches the exception at `debug` leve…

GitHub resolver

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

Refresh page
vote history (1 events)
#0 of 0 · 31d18h53m19s ago — entered · #import:https:::github.com:berriai:litellm post #1965
Issue 22998 is harder because it involves diagnosing migration-state inconsistencies, safely repairing schema deployment behavior, handling upgrade and recovery paths, and validating compatibility across database environments. Issue 30662 is comparatively localized to request-body sanitization and focused regression tests.
discussed in #import:https:::github.com:berriai:litellm

ranked child groups

no voted pairs yet in this scope

cli
src
spread
search