{"record":{"id":"bab206593a876705","repo":"BerriAI/litellm","slug":"model-action-was-saved-to-the-database-but-mis","errorCode":null,"errorMessage":"Model {action} was saved to the database, but {missing_clause}{collateral_clause} Other pods reload on their own interval. Check server logs for 'Error upserting deployment' or 'Error creating deployment' for the cause.","messagePattern":"Model (.+?) was saved to the database, but (.+?)(.+?) Other pods reload on their own interval\\. Check server logs for 'Error upserting deployment' or 'Error creating deployment' for the cause\\.","errorType":"http","errorClass":"ProxyException","httpStatus":500,"severity":"error","filePath":"litellm/proxy/management_endpoints/model_management_endpoints.py","lineNumber":2407,"sourceCode":"        written_models=written_models,\n        written_must_serve=True,\n        still_desired=still_desired,\n        live_after=live_after,\n    )\n    if not missing and not collateral:\n        return\n    missing_clause: Final = (\n        f\"the model id(s) {list(missing)} are not live in this pod's router after the reload and are not \"\n        \"being served by this pod.\"\n        if missing\n        else \"the reload it triggered degraded this pod's serving state.\"\n    )\n    collateral_clause: Final = (\n        f\" Previously served model id(s) {list(collateral)} are also no longer being served by this pod.\"\n        if collateral\n        else \"\"\n    )\n    raise ProxyException(\n        message=(\n            f\"Model {action} was saved to the database, but {missing_clause}{collateral_clause} \"\n            \"Other pods reload on their own interval. Check server logs for 'Error upserting deployment' or \"\n            \"'Error creating deployment' for the cause.\"\n        ),\n        type=ProxyErrorTypes.internal_server_error,\n        code=status.HTTP_500_INTERNAL_SERVER_ERROR,\n        param=None,\n    )\n\n\nasync def clear_cache() -> ReconcileOutcome:\n    \"\"\"\n    Clear router caches and reload models.\n\n    Returns what the reload saw (see ReconcileOutcome) so callers can pass it to\n    raise_if_reload_degraded_serving.\n","sourceCodeStart":2389,"sourceCodeEnd":2425,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/proxy/management_endpoints/model_management_endpoints.py#L2389-L2425","documentation":"Error \"Model {action} was saved to the database, but {missing_clause}{collateral_clause} Other pods reload on their own interval. Check server logs for 'Error upserting deployment' or 'Error creating deployment' for the cause.\" thrown in BerriAI/litellm.","triggerScenarios":"Thrown at litellm/proxy/management_endpoints/model_management_endpoints.py:2407 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check server logs for 'Error upserting deployment' or 'Error creating deployment' for the cause.","Re-save the model after fixing the underlying error."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8","analyzedAt":"2026-08-18T11:44:31.656Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}