Skip to content

[Bug]: /ui/login returns a 404 #17825

@Jetemple

Description

@Jetemple

What happened?

Summary

/ui (SSO) returns 404 on non-root deployment when visiting /ui/login because the non-root image expects a prebuilt, folderized UI at /tmp/litellm_ui, but ships a flat bundle under /app/litellm/proxy/_experimental/out (e.g., login.html with no login/index.html). Runtime restructuring is skipped, so /ui/login 404s.

Environment

  • Version/branch: v1.80.8-nightly
  • Deployment: non-root image (LITELLM_NON_ROOT=true)
  • Path to UI bundle in image: /app/litellm/proxy/_experimental/out
  • SERVER_ROOT_PATH: unset
  • Proxy was started normally (uvicorn/gunicorn entrypoint)

Steps to Reproduce

  1. Deploy the non-root image with LITELLM_NON_ROOT=true.
  2. Do not pre-populate /tmp/litellm_ui (default state of the image).
  3. Hit https://<host>/ui/ → redirects to /ui/login.
  4. /ui/login returns HTTP 404 ({"detail":"Not Found"}).

Observed

  • In the container: /app/litellm/proxy/_experimental/out contains login.html but no login/ directory.
  • /tmp/litellm_ui is absent, so nothing is mounted at /ui.
  • Requests to /ui/login (or /ui/login/index.html) return 404.

Expected

  • /ui/login should serve the login page without requiring manual pre-folderization or manual copying to /tmp/litellm_ui.

Relevant log output

Are you a ML Ops Team?

No

What LiteLLM version are you on ?

v1.80.8-nightly

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