[GH-ISSUE #1324] webui not remembering OpenAI api key #51111

Closed
opened 2026-05-05 12:00:17 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @Epickitrolaz on GitHub (Mar 27, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/1324

Bug Report

Description

Bug Summary:
Hello, I've recently installed open webui on my pc, on both Windows and Fedora kde (The docker version). I was using it mainly for OpenAI api, but I've noticed, every time I start docker, I would have my connections tab reset and I would have to paste in the OpenAI key once again.

Steps to Reproduce:
Restart the container or docker engine

Expected Behavior:
I want it to save my connections tab, so I wouldn't have to re-paste it in every time I reboot my pc.

Actual Behavior:
The connections tab gets reset and the OpenAI key is no longer there

Environment

  • Operating System: Windows 11/Fedora 39 KDE (Tried on both)
  • Browser (if applicable): Firefox 124.0.1

Reproduction Details

Confirmation:

  • I have read and followed all the instructions provided in the README.md.
  • I am on the latest version of both Open WebUI and Ollama.
  • [] I have included the browser console logs. (No need for it)
  • I have included the Docker container logs.

Logs and Screenshots

Browser Console Logs:
Not needed.

Docker Container Logs:
2024-03-27 19:18:36 No WEBUI_SECRET_KEY provided
2024-03-27 19:18:36 Loading WEBUI_SECRET_KEY from .webui_secret_key
2024-03-27 19:18:42 INFO: Started server process [1]
2024-03-27 19:18:42 INFO: Waiting for application startup.
2024-03-27 19:18:42 INFO: Application startup complete.
2024-03-27 19:18:42 INFO: Uvicorn running on http://0.0.0.0:8080 (Press CTRL+C to quit)
2024-03-27 19:18:52
2024-03-27 19:18:52 #------------------------------------------------------------#
2024-03-27 19:18:52 # #
2024-03-27 19:18:52 # 'I get frustrated when the product...' #
2024-03-27 19:18:52 # https://github.com/BerriAI/litellm/issues/new #
2024-03-27 19:18:52 # #
2024-03-27 19:18:52 #------------------------------------------------------------#
2024-03-27 19:18:52
2024-03-27 19:18:52 Thank you for using LiteLLM! - Krrish & Ishaan
2024-03-27 19:18:52
2024-03-27 19:18:52
2024-03-27 19:18:52
2024-03-27 19:18:52 Give Feedback / Get Help: https://github.com/BerriAI/litellm/issues/new
2024-03-27 19:18:52
2024-03-27 19:18:52
2024-03-27 19:18:52 INFO: 172.17.0.1:48986 - "GET / HTTP/1.1" 304 Not Modified
2024-03-27 19:18:52 INFO: 172.17.0.1:48986 - "GET /_app/immutable/entry/start.9b1a1eed.js HTTP/1.1" 304 Not Modified
2024-03-27 19:18:52 INFO: 172.17.0.1:49006 - "GET /_app/immutable/chunks/index.7f1e0645.js HTTP/1.1" 304 Not Modified
2024-03-27 19:18:52 INFO: 172.17.0.1:49000 - "GET /_app/immutable/chunks/scheduler.161605a7.js HTTP/1.1" 304 Not Modified
2024-03-27 19:18:52 INFO: 172.17.0.1:49020 - "GET /_app/immutable/chunks/singletons.c453f61b.js HTTP/1.1" 304 Not Modified
2024-03-27 19:18:52 INFO: 172.17.0.1:49042 - "GET /_app/immutable/chunks/index.acd0f037.js HTTP/1.1" 304 Not Modified
2024-03-27 19:18:52 INFO: 172.17.0.1:49036 - "GET /_app/immutable/entry/app.36278ed7.js HTTP/1.1" 304 Not Modified
2024-03-27 19:18:52 INFO: 172.17.0.1:48986 - "GET /api/config HTTP/1.1" 200 OK
2024-03-27 19:18:52 INFO: 172.17.0.1:48986 - "GET /api/v1/auths/ HTTP/1.1" 200 OK
2024-03-27 19:18:53 get_all_models
2024-03-27 19:18:53 get_all_models
2024-03-27 19:18:53 INFO: 172.17.0.1:48986 - "GET /ollama/api/tags HTTP/1.1" 200 OK
2024-03-27 19:18:53 get_all_models
2024-03-27 19:18:53 get_all_models
2024-03-27 19:18:53 INFO: 172.17.0.1:48986 - "GET /openai/api/models HTTP/1.1" 200 OK
2024-03-27 19:18:53 id='04c70ccd-dbbf-4863-b9e8-e879b23dab26' name='--' email='--' role='admin' profile_image_url='/user.png' timestamp=1710602520
2024-03-27 19:18:53 INFO: 172.17.0.1:48986 - "GET /litellm/api/v1/models HTTP/1.1" 200 OK
2024-03-27 19:18:53 INFO: 172.17.0.1:48986 - "GET /api/v1/modelfiles/ HTTP/1.1" 200 OK
2024-03-27 19:18:53 INFO: 172.17.0.1:48986 - "GET /api/v1/prompts/ HTTP/1.1" 200 OK
2024-03-27 19:18:53 INFO: 172.17.0.1:48986 - "GET /api/v1/documents/ HTTP/1.1" 200 OK
2024-03-27 19:18:53 INFO: 172.17.0.1:48986 - "GET /api/v1/chats/tags/all HTTP/1.1" 200 OK
2024-03-27 19:18:53 get_all_models
2024-03-27 19:18:53 INFO: 172.17.0.1:49042 - "GET /static/favicon.png HTTP/1.1" 200 OK
2024-03-27 19:18:53 INFO: 172.17.0.1:49000 - "GET /user.png HTTP/1.1" 200 OK
2024-03-27 19:18:53 INFO: 172.17.0.1:49042 - "GET /api/v1/chats/ HTTP/1.1" 200 OK
2024-03-27 19:18:53 INFO: 172.17.0.1:49000 - "GET /api/changelog HTTP/1.1" 200 OK
2024-03-27 19:18:53 INFO: 172.17.0.1:48986 - "GET /ollama/api/tags HTTP/1.1" 200 OK
2024-03-27 19:18:53 get_all_models
2024-03-27 19:18:53 get_all_models
2024-03-27 19:18:53 INFO: 172.17.0.1:49042 - "GET /openai/api/models HTTP/1.1" 200 OK
2024-03-27 19:18:53 id='04c70ccd-dbbf-4863-b9e8-e879b23dab26' name='--' email='--' role='admin' profile_image_url='/user.png' timestamp=1710602520
2024-03-27 19:18:53 INFO: 172.17.0.1:49042 - "GET /litellm/api/v1/models HTTP/1.1" 200 OK
2024-03-27 19:18:58 INFO: 172.17.0.1:52290 - "GET /ollama/urls HTTP/1.1" 200 OK
2024-03-27 19:18:58 get_all_models
2024-03-27 19:18:58 INFO: 172.17.0.1:52290 - "GET /openai/api/urls HTTP/1.1" 200 OK
2024-03-27 19:18:58 get_all_models
2024-03-27 19:18:58 INFO: 172.17.0.1:52290 - "GET /openai/api/keys HTTP/1.1" 200 OK

Screenshots (if applicable):
image

Installation Method

I've installed it using the recommended docker container on both Linux and Windows

(Sorry for my bad English)

Originally created by @Epickitrolaz on GitHub (Mar 27, 2024). Original GitHub issue: https://github.com/open-webui/open-webui/issues/1324 # Bug Report ## Description **Bug Summary:** Hello, I've recently installed open webui on my pc, on both Windows and Fedora kde (The docker version). I was using it mainly for OpenAI api, but I've noticed, every time I start docker, I would have my connections tab reset and I would have to paste in the OpenAI key once again. **Steps to Reproduce:** Restart the container or docker engine **Expected Behavior:** I want it to save my connections tab, so I wouldn't have to re-paste it in every time I reboot my pc. **Actual Behavior:** The connections tab gets reset and the OpenAI key is no longer there ## Environment - **Operating System:** Windows 11/Fedora 39 KDE (Tried on both) - **Browser (if applicable):** Firefox 124.0.1 ## Reproduction Details **Confirmation:** - [x] I have read and followed all the instructions provided in the README.md. - [x] I am on the latest version of both Open WebUI and Ollama. - [] I have included the browser console logs. (No need for it) - [x] I have included the Docker container logs. ## Logs and Screenshots **Browser Console Logs:** Not needed. **Docker Container Logs:** 2024-03-27 19:18:36 No WEBUI_SECRET_KEY provided 2024-03-27 19:18:36 Loading WEBUI_SECRET_KEY from .webui_secret_key 2024-03-27 19:18:42 INFO: Started server process [1] 2024-03-27 19:18:42 INFO: Waiting for application startup. 2024-03-27 19:18:42 INFO: Application startup complete. 2024-03-27 19:18:42 INFO: Uvicorn running on http://0.0.0.0:8080 (Press CTRL+C to quit) 2024-03-27 19:18:52 2024-03-27 19:18:52 #------------------------------------------------------------# 2024-03-27 19:18:52 # # 2024-03-27 19:18:52 # 'I get frustrated when the product...' # 2024-03-27 19:18:52 # https://github.com/BerriAI/litellm/issues/new # 2024-03-27 19:18:52 # # 2024-03-27 19:18:52 #------------------------------------------------------------# 2024-03-27 19:18:52 2024-03-27 19:18:52 Thank you for using LiteLLM! - Krrish & Ishaan 2024-03-27 19:18:52 2024-03-27 19:18:52 2024-03-27 19:18:52 2024-03-27 19:18:52 Give Feedback / Get Help: https://github.com/BerriAI/litellm/issues/new 2024-03-27 19:18:52 2024-03-27 19:18:52 2024-03-27 19:18:52 INFO: 172.17.0.1:48986 - "GET / HTTP/1.1" 304 Not Modified 2024-03-27 19:18:52 INFO: 172.17.0.1:48986 - "GET /_app/immutable/entry/start.9b1a1eed.js HTTP/1.1" 304 Not Modified 2024-03-27 19:18:52 INFO: 172.17.0.1:49006 - "GET /_app/immutable/chunks/index.7f1e0645.js HTTP/1.1" 304 Not Modified 2024-03-27 19:18:52 INFO: 172.17.0.1:49000 - "GET /_app/immutable/chunks/scheduler.161605a7.js HTTP/1.1" 304 Not Modified 2024-03-27 19:18:52 INFO: 172.17.0.1:49020 - "GET /_app/immutable/chunks/singletons.c453f61b.js HTTP/1.1" 304 Not Modified 2024-03-27 19:18:52 INFO: 172.17.0.1:49042 - "GET /_app/immutable/chunks/index.acd0f037.js HTTP/1.1" 304 Not Modified 2024-03-27 19:18:52 INFO: 172.17.0.1:49036 - "GET /_app/immutable/entry/app.36278ed7.js HTTP/1.1" 304 Not Modified 2024-03-27 19:18:52 INFO: 172.17.0.1:48986 - "GET /api/config HTTP/1.1" 200 OK 2024-03-27 19:18:52 INFO: 172.17.0.1:48986 - "GET /api/v1/auths/ HTTP/1.1" 200 OK 2024-03-27 19:18:53 get_all_models 2024-03-27 19:18:53 get_all_models 2024-03-27 19:18:53 INFO: 172.17.0.1:48986 - "GET /ollama/api/tags HTTP/1.1" 200 OK 2024-03-27 19:18:53 get_all_models 2024-03-27 19:18:53 get_all_models 2024-03-27 19:18:53 INFO: 172.17.0.1:48986 - "GET /openai/api/models HTTP/1.1" 200 OK 2024-03-27 19:18:53 id='04c70ccd-dbbf-4863-b9e8-e879b23dab26' name='--' email='--' role='admin' profile_image_url='/user.png' timestamp=1710602520 2024-03-27 19:18:53 INFO: 172.17.0.1:48986 - "GET /litellm/api/v1/models HTTP/1.1" 200 OK 2024-03-27 19:18:53 INFO: 172.17.0.1:48986 - "GET /api/v1/modelfiles/ HTTP/1.1" 200 OK 2024-03-27 19:18:53 INFO: 172.17.0.1:48986 - "GET /api/v1/prompts/ HTTP/1.1" 200 OK 2024-03-27 19:18:53 INFO: 172.17.0.1:48986 - "GET /api/v1/documents/ HTTP/1.1" 200 OK 2024-03-27 19:18:53 INFO: 172.17.0.1:48986 - "GET /api/v1/chats/tags/all HTTP/1.1" 200 OK 2024-03-27 19:18:53 get_all_models 2024-03-27 19:18:53 INFO: 172.17.0.1:49042 - "GET /static/favicon.png HTTP/1.1" 200 OK 2024-03-27 19:18:53 INFO: 172.17.0.1:49000 - "GET /user.png HTTP/1.1" 200 OK 2024-03-27 19:18:53 INFO: 172.17.0.1:49042 - "GET /api/v1/chats/ HTTP/1.1" 200 OK 2024-03-27 19:18:53 INFO: 172.17.0.1:49000 - "GET /api/changelog HTTP/1.1" 200 OK 2024-03-27 19:18:53 INFO: 172.17.0.1:48986 - "GET /ollama/api/tags HTTP/1.1" 200 OK 2024-03-27 19:18:53 get_all_models 2024-03-27 19:18:53 get_all_models 2024-03-27 19:18:53 INFO: 172.17.0.1:49042 - "GET /openai/api/models HTTP/1.1" 200 OK 2024-03-27 19:18:53 id='04c70ccd-dbbf-4863-b9e8-e879b23dab26' name='--' email='--' role='admin' profile_image_url='/user.png' timestamp=1710602520 2024-03-27 19:18:53 INFO: 172.17.0.1:49042 - "GET /litellm/api/v1/models HTTP/1.1" 200 OK 2024-03-27 19:18:58 INFO: 172.17.0.1:52290 - "GET /ollama/urls HTTP/1.1" 200 OK 2024-03-27 19:18:58 get_all_models 2024-03-27 19:18:58 INFO: 172.17.0.1:52290 - "GET /openai/api/urls HTTP/1.1" 200 OK 2024-03-27 19:18:58 get_all_models 2024-03-27 19:18:58 INFO: 172.17.0.1:52290 - "GET /openai/api/keys HTTP/1.1" 200 OK **Screenshots (if applicable):** ![image](https://github.com/open-webui/open-webui/assets/92270732/196a8459-9026-40e6-8fbb-940153553045) ## Installation Method I've installed it using the recommended docker container on both Linux and Windows (Sorry for my bad English)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#51111