Check for existing issues
What happened?
I am setting the environment variables for the password but the UI simply doesn't allow me to login. Not with admin not with sk-1234 not with anything.
I'm using whatever it is that's in the docker image (ghcr.io/berriai/litellm:main-stable)
As an aside, please provide an option to not have a login at all. I get it from a security point of view, fine. But i'm running this is a local environment on a local pc. It really makes no sense to have a login in that case. Which i'd argue is a high percentage of your users too.
Steps to Reproduce
My docker-compose:
services:
litellm:
image: ghcr.io/berriai/litellm:main-stable
container_name: litellm
ports:
- '4400:4000'
dns: # ← Add explicit DNS servers
- 8.8.8.8
- 1.1.1.1
env_file:
- .env
environment:
- DEEPINFRA_API_KEY=${DEEPINFRA_API_KEY}
- LITELLM_MASTER_KEY=sk-1234
- MASTER_KEY=admin
- LITELLM_LOG=INFO
- UI_USERNAME=admin
- UI_PASSWORD=admin
volumes:
- ./config.yaml:/app/config.yaml:ro
command: ['--config', '/app/config.yaml', '--port', '4000']
Relevant log output
litellm | 14:31:10 - LiteLLM Proxy:ERROR: internal_user_endpoints.py:1094 - litellm.proxy.proxy_server.user_update(): Exception occured - Not connected to DB!
litellm | Traceback (most recent call last):
litellm | File "/usr/lib/python3.13/site-packages/litellm/proxy/management_endpoints/internal_user_endpoints.py", line 1088, in user_update
litellm | response = await _update_single_user_helper(
litellm | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
litellm | ...<2 lines>...
litellm | )
litellm | ^
litellm | File "/usr/lib/python3.13/site-packages/litellm/proxy/management_endpoints/internal_user_endpoints.py", line 880, in _update_single_user_helper
litellm | raise Exception("Not connected to DB!")
litellm | Exception: Not connected to DB!
litellm | 14:31:10 - LiteLLM Proxy:ERROR: proxy_server.py:10388 - litellm.proxy.proxy_server.login_v2(): Exception occurred -
litellm | Traceback (most recent call last):
litellm | File "/usr/lib/python3.13/site-packages/litellm/proxy/management_endpoints/internal_user_endpoints.py", line 1088, in user_update
litellm | response = await _update_single_user_helper(
litellm | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
litellm | ...<2 lines>...
litellm | )
litellm | ^
litellm | File "/usr/lib/python3.13/site-packages/litellm/proxy/management_endpoints/internal_user_endpoints.py", line 880, in _update_single_user_helper
litellm | raise Exception("Not connected to DB!")
litellm | Exception: Not connected to DB!
litellm |
litellm | During handling of the above exception, another exception occurred:
litellm |
litellm | Traceback (most recent call last):
litellm | File "/usr/lib/python3.13/site-packages/litellm/proxy/proxy_server.py", line 10353, in login_v2
litellm | login_result = await authenticate_user(
litellm | ^^^^^^^^^^^^^^^^^^^^^^^^
litellm | ...<4 lines>...
litellm | )
litellm | ^
litellm | File "/usr/lib/python3.13/site-packages/litellm/proxy/auth/login_utils.py", line 166, in authenticate_user
litellm | await user_update(
litellm | ...<7 lines>...
litellm | )
litellm | File "/usr/lib/python3.13/site-packages/litellm/proxy/management_helpers/utils.py", line 455, in wrapper
litellm | raise e
litellm | File "/usr/lib/python3.13/site-packages/litellm/proxy/management_helpers/utils.py", line 371, in wrapper
litellm | result = await func(*args, **kwargs)
litellm | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
litellm | File "/usr/lib/python3.13/site-packages/litellm/proxy/management_endpoints/internal_user_endpoints.py", line 1109, in user_update
litellm | raise ProxyException(
litellm | ...<4 lines>...
litellm | )
litellm | litellm.proxy._types.ProxyException
litellm | INFO: 10.0.3.163:47046 - "POST /v2/login HTTP/1.1" 400 Bad Request
litellm | 14:31:22 - LiteLLM Proxy:ERROR: proxy_server.py:10388 - litellm.proxy.proxy_server.login_v2(): Exception occurred -
litellm | Traceback (most recent call last):
litellm | File "/usr/lib/python3.13/site-packages/litellm/proxy/proxy_server.py", line 10353, in login_v2
litellm | login_result = await authenticate_user(
litellm | ^^^^^^^^^^^^^^^^^^^^^^^^
litellm | ...<4 lines>...
litellm | )
litellm | ^
litellm | File "/usr/lib/python3.13/site-packages/litellm/proxy/auth/login_utils.py", line 302, in authenticate_user
litellm | raise ProxyException(
litellm | ...<4 lines>...
litellm | )
litellm | litellm.proxy._types.ProxyException
What part of LiteLLM is this about?
UI Dashboard
What LiteLLM version are you on ?
vx.x.xxx (The UI doesn't say, the logging doesn't say, the pull doesn't say.. How am i even supposed to know if nothing tells me it's version. Probably the latest at the time of this posting.
Twitter / LinkedIn details
No response
Check for existing issues
What happened?
I am setting the environment variables for the password but the UI simply doesn't allow me to login. Not with
adminnot withsk-1234not with anything.I'm using whatever it is that's in the docker image (ghcr.io/berriai/litellm:main-stable)
As an aside, please provide an option to not have a login at all. I get it from a security point of view, fine. But i'm running this is a local environment on a local pc. It really makes no sense to have a login in that case. Which i'd argue is a high percentage of your users too.
Steps to Reproduce
My docker-compose:
Relevant log output
What part of LiteLLM is this about?
UI Dashboard
What LiteLLM version are you on ?
vx.x.xxx (The UI doesn't say, the logging doesn't say, the pull doesn't say.. How am i even supposed to know if nothing tells me it's version. Probably the latest at the time of this posting.
Twitter / LinkedIn details
No response