0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

LiteLLM管理画面のログインエラーを解決する方法

Posted at

エラー内容

LiteLLMの管理画面にログインしようとすると、以下のようなエラーが発生することがあります。

{
  "error": {
    "message": "Authentication Error, User not found, passed user_id=default_user_id",
    "type": "auth_error",
    "param": "None",
    "code": "400"
  }
}

解決方法

以下の手順で問題を解決できました。

1. docker-compose.ymlでイメージを更新

image: ghcr.io/berriai/litellm-database:main-v1.63.6-nightly

2. .envファイルを更新

LITELLM_MASTER_KEY="sk-1234"
LITELLM_SALT_KEY="your_random_salt_key"
UI_USERNAME=admin
UI_PASSWORD=sk-1234
PROXY_ADMIN_ID=admin

3. 管理者ユーザーを手動で作成

curl --location 'http://localhost:4000/user/new' \
--header 'Authorization: Bearer sk-1234' \
--header 'Content-Type: application/json' \
--data-raw '{"user_email": "admin@example.com", "user_id": "admin"}'

4. ログイン

  • ユーザー名: admin
  • パスワード: sk-1234(UI_PASSWORDの値)
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?