issue: Issue with ENABLE_BASE_MODELS_CACHE config key post upgrade to v0.6.18 #5926

Closed
opened 2025-11-11 16:39:04 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @saivarunk on GitHub (Jul 31, 2025).

Check Existing Issues

  • I have searched the existing issues and discussions.
  • I am using the latest version of Open WebUI.

Installation Method

Git Clone

Open WebUI Version

v0.6.18

Ollama Version (if applicable)

No response

Operating System

Ubuntu/macOS

Browser (if applicable)

No response

Confirmation

  • I have read and followed all instructions in README.md.
  • I am using the latest version of both Open WebUI and Ollama.
  • I have included the browser console logs.
  • I have included the Docker container logs.
  • I have provided every relevant configuration, setting, and environment variable used in my setup.
  • I have clearly listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc).
  • I have documented step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation. My steps:
  • Start with the initial platform/version/OS and dependencies used,
  • Specify exact install/launch/configure commands,
  • List URLs visited, user input (incl. example values/emails/passwords if needed),
  • Describe all options and toggles enabled or changed,
  • Include any files or environmental changes,
  • Identify the expected and actual result at each stage,
  • Ensure any reasonably skilled user can follow and hit the same issue.

Expected Behavior

/models endpoint should return list of models

Actual Behavior

Openwebui Version: 0.6.18

ENV:

REDIS_URL: "redis://redis:6379/0"
WEBSOCKET_REDIS_URL: "redis://redis:6379/1"
ENABLE_WEBSOCKET_SUPPORT: "true"
WEBSOCKET_MANAGER: "redis"
GLOBAL_LOG_LEVEL: "DEBUG"
REDIS_KEY_PREFIX: "open-webui"

Steps to Reproduce

  • Open Web UI version: v0.6.18
  • Clone Github repo, run docker compose up -d --build
  • Use redis for cache and websocket's
  • Use ollama models API / OpenAPI compatible endpoint

Logs & Screenshots

Image
 File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app

    await app(scope, receive, sender)

  File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 73, in app

    response = await f(request)

               ^^^^^^^^^^^^^^^^

  File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 301, in app

    raw_response = await run_endpoint_function(

                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 212, in run_endpoint_function

    return await dependant.call(**values)

           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/app/backend/open_webui/main.py", line 1155, in get_models

    all_models = await get_all_models(request, user=user)

                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/app/backend/open_webui/utils/models.py", line 83, in get_all_models

    and (request.app.state.config.ENABLE_BASE_MODELS_CACHE and not refresh)

         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/app/backend/open_webui/config.py", line 246, in __getattr__

    raise AttributeError(f"Config key '{key}' not found")

AttributeError: Config key 'ENABLE_BASE_MODELS_CACHE' not found

Additional Information

No response

Originally created by @saivarunk on GitHub (Jul 31, 2025). ### Check Existing Issues - [x] I have searched the existing issues and discussions. - [x] I am using the latest version of Open WebUI. ### Installation Method Git Clone ### Open WebUI Version v0.6.18 ### Ollama Version (if applicable) _No response_ ### Operating System Ubuntu/macOS ### Browser (if applicable) _No response_ ### Confirmation - [x] I have read and followed all instructions in `README.md`. - [x] I am using the latest version of **both** Open WebUI and Ollama. - [x] I have included the browser console logs. - [x] I have included the Docker container logs. - [x] I have **provided every relevant configuration, setting, and environment variable used in my setup.** - [x] I have clearly **listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup** (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc). - [x] I have documented **step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation**. My steps: - Start with the initial platform/version/OS and dependencies used, - Specify exact install/launch/configure commands, - List URLs visited, user input (incl. example values/emails/passwords if needed), - Describe all options and toggles enabled or changed, - Include any files or environmental changes, - Identify the expected and actual result at each stage, - Ensure any reasonably skilled user can follow and hit the same issue. ### Expected Behavior [/models](http://localhost:8080/api/models) endpoint should return list of models ### Actual Behavior Openwebui Version: 0.6.18 ENV: ``` REDIS_URL: "redis://redis:6379/0" WEBSOCKET_REDIS_URL: "redis://redis:6379/1" ENABLE_WEBSOCKET_SUPPORT: "true" WEBSOCKET_MANAGER: "redis" GLOBAL_LOG_LEVEL: "DEBUG" REDIS_KEY_PREFIX: "open-webui" ``` ### Steps to Reproduce - Open Web UI version: v0.6.18 - Clone Github repo, run docker compose up -d --build - Use redis for cache and websocket's - Use ollama models API / OpenAPI compatible endpoint ### Logs & Screenshots <img width="1129" height="640" alt="Image" src="https://github.com/user-attachments/assets/800b65a0-fb21-405d-a86a-e6c001901d6e" /> ``` File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app await app(scope, receive, sender) File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 73, in app response = await f(request) ^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 301, in app raw_response = await run_endpoint_function( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 212, in run_endpoint_function return await dependant.call(**values) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/backend/open_webui/main.py", line 1155, in get_models all_models = await get_all_models(request, user=user) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/backend/open_webui/utils/models.py", line 83, in get_all_models and (request.app.state.config.ENABLE_BASE_MODELS_CACHE and not refresh) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/backend/open_webui/config.py", line 246, in __getattr__ raise AttributeError(f"Config key '{key}' not found") AttributeError: Config key 'ENABLE_BASE_MODELS_CACHE' not found ``` ### Additional Information _No response_
GiteaMirror added the bug label 2025-11-11 16:39:04 -06:00
Author
Owner

@tjbck commented on GitHub (Jul 31, 2025):

Unable to reproduce, keep us updated!

@tjbck commented on GitHub (Jul 31, 2025): Unable to reproduce, keep us updated!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#5926