Ever since last update became unusable #2598

Closed
opened 2025-11-11 15:10:21 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @smileBeda on GitHub (Nov 8, 2024).

Installation Method

Docker

services:
  open-webui:
    image: ghcr.io/open-webui/open-webui:ollama
    container_name: open-webui
    restart: unless-stopped
    ports:
      - "3002:8080"
    environment:
      - OPENAI_API_KEY=sk-proj-***
      - WEBUI_NAME=***
      - ENABLE_IMAGE_GENERATION=True
      - IMAGE_GENERATION_ENGINE=openai
    volumes:
      - "/media/Data2/open-webui/ollama:/root/.ollama"
      - "/media/Data2/open-webui/backend/data:/app/backend/data"

Environment

  • Open WebUI Version: 0.3.35

  • Ollama (if applicable): 0.4.0

  • Operating System: Ubuntu

  • Browser (if applicable): Safari, Chrome

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.
  • I have included the Docker container logs.
  • I have provided the exact steps to reproduce the bug in the "Steps to Reproduce" section below.

Expected Behavior:

Working app

Actual Behavior:

At log in, usually the screen just turns black, and nothing further happens.
Rarely, it loads the interface 9with missing models more often than not) and even more rarely, you can actually use the chat.

Reproduction Details

Load the app via local Docker IP:Port and log in.

Logs and Screenshots

Browser Console Logs:

[Log] Socket undefined disconnected due to ping timeout (0.CU48zBqC.js, line 1)
[Log] connect_error – Error: timeout — manager.js:137 (0.CU48zBqC.js, line 1)
Error: timeout — manager.js:137
[Log] connect_error – Error: timeout — manager.js:137 (0.CU48zBqC.js, line 1)
Error: timeout — manager.js:137
[Log] {id: "b4f784de-d38d-46a7-9643-12aa10db44d5", email: "***@***.com", name: "*** ****", role: "admin", profile_image_url: "https://www.gravatar.com/avatar/*** ******* ****?d=mp", …} (30.DAEU7Lf5.js, line 5)
[Log] {id: "b4f784de-d38d-46a7-9643-12aa10db44d5", email: "***@***.com", name: "*** ****", role: "admin", profile_image_url: "https://www.gravatar.com/avatar/*** ******* ****?d=mp", …} (30.DAEU7Lf5.js, line 5)
[Log] connected – "52o_qUDhGfG9lDxUAAAM" (0.CU48zBqC.js, line 1)
[Log] user-count – {count: 1} (0.CU48zBqC.js, line 1)
[Log] user-count – {count: 1} (0.CU48zBqC.js, line 1)
[Error] Failed to load resource: the server responded with a status of 500 (Internal Server Error) (prompts, line 0)
[Log] SyntaxError: The string did not match the expected pattern. (index.C5oyPQkJ.js, line 1)
[Error] Failed to load resource: the server responded with a status of 401 (Unauthorized) (knowledge, line 0)
[Error] Failed to load resource: the server responded with a status of 401 (Unauthorized) (banners, line 0)
[Log] {detail: "Your session has expired or the token is invalid. Please sign in again."} (index.DwKc5o-l.js, line 1)
[Log] {detail: "Your session has expired or the token is invalid. Please sign in again."} (SensitiveInput.DVFYfG8v.js, line 1)
[Error] Unhandled Promise Rejection: Your session has expired or the token is invalid. Please sign in again.
	(anonymous function) (2.D6drJD9c.js:23:61692)
[Log] [Object, Object] (2) (index.yoKVoZ-T.js, line 1)
[Log] Socket undefined disconnected due to transport close (0.CU48zBqC.js, line 1)
[Log] Additional details: – {description: "websocket connection closed", context: CloseEvent} (0.CU48zBqC.js, line 1)
{description: "websocket connection closed", context: CloseEvent}Object
[Error] Failed to load resource: Could not connect to the server. (socket.io, line 0)
[Log] connect_error – Error: xhr poll error (0.CU48zBqC.js, line 1)
Error: xhr poll error

Docker Container Logs:

sudo docker compose up
[+] Running 1/0
 ✔ Container open-webui  Created                                                                                0.0s 
Attaching to open-webui
open-webui  | Loading WEBUI_SECRET_KEY from file, not provided as an environment variable.
open-webui  | Generating WEBUI_SECRET_KEY
open-webui  | Loading WEBUI_SECRET_KEY from .webui_secret_key
open-webui  | USE_OLLAMA is set to true, starting ollama serve.
open-webui  | 2024/11/08 14:31:29 routes.go:1158: INFO server config env="map[CUDA_VISIBLE_DEVICES: GPU_DEVICE_ORDINAL: HIP_VISIBLE_DEVICES: HSA_OVERRIDE_GFX_VERSION: HTTPS_PROXY: HTTP_PROXY: NO_PROXY: OLLAMA_DEBUG:false OLLAMA_FLASH_ATTENTION:false OLLAMA_GPU_OVERHEAD:0 OLLAMA_HOST:http://127.0.0.1:11434 OLLAMA_INTEL_GPU:false OLLAMA_KEEP_ALIVE:5m0s OLLAMA_LLM_LIBRARY: OLLAMA_LOAD_TIMEOUT:5m0s OLLAMA_MAX_LOADED_MODELS:0 OLLAMA_MAX_QUEUE:512 OLLAMA_MODELS:/root/.ollama/models OLLAMA_MULTIUSER_CACHE:false OLLAMA_NOHISTORY:false OLLAMA_NOPRUNE:false OLLAMA_NUM_PARALLEL:0 OLLAMA_ORIGINS:[http://localhost https://localhost http://localhost:* https://localhost:* http://127.0.0.1 https://127.0.0.1 http://127.0.0.1:* https://127.0.0.1:* http://0.0.0.0 https://0.0.0.0 http://0.0.0.0:* https://0.0.0.0:* app://* file://* tauri://*] OLLAMA_SCHED_SPREAD:false OLLAMA_TMPDIR: ROCR_VISIBLE_DEVICES: http_proxy: https_proxy: no_proxy:]"
open-webui  | time=2024-11-08T14:31:29.116Z level=INFO source=images.go:754 msg="total blobs: 5"
open-webui  | time=2024-11-08T14:31:29.116Z level=INFO source=images.go:761 msg="total unused blobs removed: 0"
open-webui  | time=2024-11-08T14:31:29.116Z level=INFO source=routes.go:1205 msg="Listening on 127.0.0.1:11434 (version 0.3.14)"
open-webui  | time=2024-11-08T14:31:29.117Z level=INFO source=common.go:135 msg="extracting embedded files" dir=/tmp/ollama502928838/runners
open-webui  | /app/backend/open_webui
open-webui  | /app/backend
open-webui  | /app
open-webui  | Running migrations
open-webui  | INFO  [alembic.runtime.migration] Context impl SQLiteImpl.
open-webui  | INFO  [alembic.runtime.migration] Will assume non-transactional DDL.
open-webui  | INFO  [open_webui.env] 'JWT_EXPIRES_IN' loaded from the latest database entry
open-webui  | INFO  [open_webui.env] 'ENABLE_SIGNUP' loaded from the latest database entry
open-webui  | INFO  [open_webui.env] 'DEFAULT_LOCALE' loaded from the latest database entry
open-webui  | INFO  [open_webui.env] 'DEFAULT_PROMPT_SUGGESTIONS' loaded from the latest database entry
open-webui  | INFO  [open_webui.env] 'DEFAULT_USER_ROLE' loaded from the latest database entry
open-webui  | INFO  [open_webui.env] 'WEBHOOK_URL' loaded from the latest database entry
open-webui  | INFO  [open_webui.env] 'ENABLE_COMMUNITY_SHARING' loaded from the latest database entry
open-webui  | INFO  [open_webui.env] 'ENABLE_MESSAGE_RATING' loaded from the latest database entry
open-webui  | WARNI [open_webui.env] 
open-webui  | 
open-webui  | WARNING: CORS_ALLOW_ORIGIN IS SET TO '*' - NOT RECOMMENDED FOR PRODUCTION DEPLOYMENTS.
open-webui  | 
open-webui  | INFO  [open_webui.env] 'WEBUI_BANNERS' loaded from the latest database entry
open-webui  | INFO  [open_webui.env] 'SHOW_ADMIN_DETAILS' loaded from the latest database entry
open-webui  | INFO  [open_webui.env] 'TASK_MODEL' loaded from the latest database entry
open-webui  | INFO  [open_webui.env] 'TASK_MODEL_EXTERNAL' loaded from the latest database entry
open-webui  | INFO  [open_webui.env] 'TITLE_GENERATION_PROMPT_TEMPLATE' loaded from the latest database entry
open-webui  | INFO  [open_webui.env] 'ENABLE_SEARCH_QUERY' loaded from the latest database entry
open-webui  | INFO  [open_webui.env] 'SEARCH_QUERY_GENERATION_PROMPT_TEMPLATE' loaded from the latest database entry
open-webui  | INFO  [open_webui.env] 'TOOLS_FUNCTION_CALLING_PROMPT_TEMPLATE' loaded from the latest database entry
open-webui  | INFO  [open_webui.env] Embedding model set: sentence-transformers/all-MiniLM-L6-v2
open-webui  | INFO  [open_webui.apps.audio.main] whisper_device_type: cpu
open-webui  | WARNI [langchain_community.utils.user_agent] USER_AGENT environment variable not set, consider setting it to identify your requests.
open-webui  | INFO:     Started server process [1]
open-webui  | INFO:     Waiting for application startup.
open-webui  | INFO:     Application startup complete.
open-webui  | INFO:     Uvicorn running on http://0.0.0.0:8080 (Press CTRL+C to quit)
open-webui  | time=2024-11-08T14:31:39.849Z level=INFO source=common.go:49 msg="Dynamic LLM libraries" runners="[cpu_avx cpu_avx2 cuda_v11 cuda_v12 rocm_v60102 cpu]"
open-webui  | time=2024-11-08T14:31:39.849Z level=INFO source=gpu.go:221 msg="looking for compatible GPUs"
open-webui  | INFO  [open_webui.apps.openai.main] get_all_models()
open-webui  | INFO  [open_webui.apps.openai.main] get_all_models()
open-webui  | time=2024-11-08T14:31:39.855Z level=INFO source=gpu.go:384 msg="no compatible GPUs were discovered"
open-webui  | time=2024-11-08T14:31:39.855Z level=INFO source=types.go:123 msg="inference compute" id=0 library=cpu variant=avx2 compute="" driver=0.0 name="" total="31.1 GiB" available="25.0 GiB"
open-webui  | INFO  [open_webui.apps.ollama.main] get_all_models()
open-webui  | INFO  [open_webui.apps.ollama.main] get_all_models()
open-webui  | [GIN] 2024/11/08 - 14:31:40 | 200 |  562.597959ms |       127.0.0.1 | GET      "/api/tags"
open-webui  | [GIN] 2024/11/08 - 14:31:40 | 200 |  513.509024ms |       127.0.0.1 | GET      "/api/tags"
open-webui  | 
open-webui  |   ___                    __        __   _     _   _ ___
open-webui  |  / _ \ _ __   ___ _ __   \ \      / /__| |__ | | | |_ _|
open-webui  | | | | | '_ \ / _ \ '_ \   \ \ /\ / / _ \ '_ \| | | || |
open-webui  | | |_| | |_) |  __/ | | |   \ V  V /  __/ |_) | |_| || |
open-webui  |  \___/| .__/ \___|_| |_|    \_/\_/ \___|_.__/ \___/|___|
open-webui  |       |_|
open-webui  | 
open-webui  | 
open-webui  | v0.3.35 - building the best open-source AI user interface.
open-webui  | 
open-webui  | https://github.com/open-webui/open-webui
open-webui  | 
open-webui  | INFO:     ***.***.*.**:52207 - "GET /ws/socket.io/?EIO=4&transport=polling&t=PCCC1mb HTTP/1.1" 200 OK
open-webui  | INFO:     178.199.124.123:0 - "GET /ws/socket.io/?EIO=4&transport=polling&t=PCCC1m6 HTTP/1.1" 200 OK
open-webui  | INFO:     ***.***.*.**:52207 - "POST /ws/socket.io/?EIO=4&transport=polling&t=PCCC2D1&sid=HPFLcheyYYVKPYzLAAAA HTTP/1.1" 200 OK
open-webui  | INFO:     ('***.***.*.**', 52208) - "WebSocket /ws/socket.io/?EIO=4&transport=websocket&sid=HPFLcheyYYVKPYzLAAAA" [accepted]
open-webui  | INFO:     connection open
open-webui  | INFO:     ***.***.*.**:52209 - "GET /ws/socket.io/?EIO=4&transport=polling&t=PCCC2D6&sid=HPFLcheyYYVKPYzLAAAA HTTP/1.1" 200 OK
open-webui  | INFO:     ***.***.*.**:52207 - "GET /ws/socket.io/?EIO=4&transport=polling&t=PCCC2DI&sid=HPFLcheyYYVKPYzLAAAA HTTP/1.1" 200 OK
open-webui  | INFO:     178.199.124.123:0 - "POST /ws/socket.io/?EIO=4&transport=polling&t=PCCC2Dc&sid=ZmfNpVzv4LWvtpKKAAAB HTTP/1.1" 200 OK
open-webui  | INFO:     178.199.124.123:0 - "GET /ws/socket.io/?EIO=4&transport=polling&t=PCCC2Df&sid=ZmfNpVzv4LWvtpKKAAAB HTTP/1.1" 200 OK
open-webui  | INFO:     ('178.199.124.123', 0) - "WebSocket /ws/socket.io/?EIO=4&transport=websocket&sid=ZmfNpVzv4LWvtpKKAAAB" [accepted]
open-webui  | INFO:     connection open
open-webui  | INFO:     178.199.124.123:0 - "GET /ws/socket.io/?EIO=4&transport=polling&t=PCCC2Hu&sid=ZmfNpVzv4LWvtpKKAAAB HTTP/1.1" 200 OK
open-webui  | INFO:     172.18.0.1:0 - "GET / HTTP/1.1" 200 OK
open-webui  | INFO:     ***.***.*.**:52213 - "GET / HTTP/1.1" 200 OK
open-webui  | INFO:     connection closed
open-webui  | INFO:     ***.***.*.**:52213 - "GET /manifest.json HTTP/1.1" 200 OK
open-webui  | INFO:     ***.***.*.**:52213 - "GET /_app/immutable/entry/start.Bh0bBc-z.js.map HTTP/1.1" 200 OK
open-webui  | INFO:     ***.***.*.**:52213 - "GET /_app/immutable/chunks/globals.D0QH3NT1.js.map HTTP/1.1" 200 OK
open-webui  | INFO:     ***.***.*.**:52215 - "GET /_app/immutable/chunks/sha256.DmKfZSHC.js.map HTTP/1.1" 200 OK
open-webui  | INFO:     ***.***.*.**:52216 - "GET /_app/immutable/chunks/index.DQfRr7yB.js.map HTTP/1.1" 200 OK
open-webui  | INFO:     ***.***.*.**:52214 - "GET /_app/immutable/chunks/index.aO5Hj6h-.js.map HTTP/1.1" 200 OK
open-webui  | INFO:     ***.***.*.**:52213 - "GET /api/config HTTP/1.1" 200 OK
open-webui  | INFO:     ***.***.*.**:52215 - "GET /ws/socket.io/?EIO=4&transport=polling&t=PCCC9gG HTTP/1.1" 200 OK
open-webui  | INFO:     ***.***.*.**:52216 - "GET /api/v1/auths/ HTTP/1.1" 401 Unauthorized
open-webui  | INFO:     ('***.***.*.**', 52217) - "WebSocket /ws/socket.io/?EIO=4&transport=websocket&sid=ilQUOQ0j3E9DfK-cAAAE" [accepted]
open-webui  | INFO:     connection open
open-webui  | INFO:     ***.***.*.**:52214 - "POST /ws/socket.io/?EIO=4&transport=polling&t=PCCC9gP&sid=ilQUOQ0j3E9DfK-cAAAE HTTP/1.1" 200 OK
open-webui  | INFO:     ***.***.*.**:52213 - "GET /ws/socket.io/?EIO=4&transport=polling&t=PCCC9gP.0&sid=ilQUOQ0j3E9DfK-cAAAE HTTP/1.1" 200 OK
open-webui  | INFO:     ***.***.*.**:52215 - "GET /ws/socket.io/?EIO=4&transport=polling&t=PCCC9ge&sid=ilQUOQ0j3E9DfK-cAAAE HTTP/1.1" 200 OK
open-webui  | INFO:     ***.***.*.**:52216 - "GET /_app/immutable/chunks/translation.Bi7ARQ8X.js.map HTTP/1.1" 200 OK
open-webui  | INFO:     ***.***.*.**:52214 - "GET /_app/immutable/chunks/translation.BP9C6TLe.js.map HTTP/1.1" 200 OK
open-webui  | INFO:     ***.***.*.**:52218 - "GET /opensearch.xml HTTP/1.1" 200 OK
open-webui  | INFO  [open_webui.apps.webui.models.auths] authenticate_user: ***@***.com
open-webui  | INFO:     connection closed
open-webui  | INFO:     connection closed
open-webui  | INFO:     ***.***.*.**:52220 - "POST /api/v1/auths/signin HTTP/1.1" 200 OK
open-webui  | INFO  [open_webui.apps.webui.models.auths] authenticate_user: ***@***.com
open-webui  | INFO:     ***.***.*.**:52221 - "POST /api/v1/auths/signin HTTP/1.1" 200 OK
open-webui  | INFO:     178.199.124.123:0 - "GET /ws/socket.io/?EIO=4&transport=polling&t=PCCCJZY HTTP/1.1" 200 OK
open-webui  | INFO:     ***.***.*.**:52222 - "GET /ws/socket.io/?EIO=4&transport=polling&t=PCCCKt3 HTTP/1.1" 200 OK
open-webui  | INFO:     178.199.124.123:0 - "GET /ws/socket.io/?EIO=4&transport=polling&t=PCCCOth HTTP/1.1" 200 OK
open-webui  | INFO:     ***.***.*.**:52223 - "GET /ws/socket.io/?EIO=4&transport=polling&t=PCCCQ5B HTTP/1.1" 200 OK
open-webui  | INFO:     ***.***.*.**:52220 - "GET /api/config HTTP/1.1" 200 OK
open-webui  | INFO:     178.199.124.123:0 - "GET /ws/socket.io/?EIO=4&transport=polling&t=PCCCUSH HTTP/1.1" 200 OK
open-webui  | INFO:     ***.***.*.**:52224 - "GET /ws/socket.io/?EIO=4&transport=polling&t=PCCCV-T HTTP/1.1" 200 OK
open-webui  | ERROR:    Exception in ASGI application
open-webui  |   + Exception Group Traceback (most recent call last):
open-webui  |   |   File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 87, in collapse_excgroups
open-webui  |   |     yield
open-webui  |   |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 190, in __call__
open-webui  |   |     async with anyio.create_task_group() as task_group:
open-webui  |   |   File "/usr/local/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 763, in __aexit__
open-webui  |   |     raise BaseExceptionGroup(
open-webui  |   | ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception)
open-webui  |   +-+---------------- 1 ----------------
open-webui  |     | Traceback (most recent call last):
open-webui  |     |   File "/usr/local/lib/python3.11/site-packages/uvicorn/protocols/http/httptools_impl.py", line 401, in run_asgi
open-webui  |     |     result = await app(  # type: ignore[func-returns-value]
open-webui  |     |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
open-webui  |     |   File "/usr/local/lib/python3.11/site-packages/uvicorn/middleware/proxy_headers.py", line 70, in __call__
open-webui  |     |     return await self.app(scope, receive, send)
open-webui  |     |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
open-webui  |     |   File "/usr/local/lib/python3.11/site-packages/fastapi/applications.py", line 1054, in __call__
open-webui  |     |     await super().__call__(scope, receive, send)
open-webui  |     |   File "/usr/local/lib/python3.11/site-packages/starlette/applications.py", line 123, in __call__
open-webui  |     |     await self.middleware_stack(scope, receive, send)
open-webui  |     |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 186, in __call__
open-webui  |     |     raise exc
open-webui  |     |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 164, in __call__
open-webui  |     |     await self.app(scope, receive, _send)
open-webui  |     |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 189, in __call__
open-webui  |     |     with collapse_excgroups():
open-webui  |     |   File "/usr/local/lib/python3.11/contextlib.py", line 158, in __exit__
open-webui  |     |     self.gen.throw(typ, value, traceback)
open-webui  |     |   File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 93, in collapse_excgroups
open-webui  |     |     raise exc
open-webui  |     |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 191, in __call__
open-webui  |     |     response = await self.dispatch_func(request, call_next)
open-webui  |     |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
open-webui  |     |   File "/app/backend/open_webui/main.py", line 901, in inspect_websocket
open-webui  |     |     return await call_next(request)
open-webui  |     |            ^^^^^^^^^^^^^^^^^^^^^^^^
open-webui  |     |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 165, in call_next
open-webui  |     |     raise app_exc
open-webui  |     |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 151, in coro
open-webui  |     |     await self.app(scope, receive_or_disconnect, send_no_error)
open-webui  |     |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 189, in __call__
open-webui  |     |     with collapse_excgroups():
open-webui  |     |   File "/usr/local/lib/python3.11/contextlib.py", line 158, in __exit__
open-webui  |     |     self.gen.throw(typ, value, traceback)
open-webui  |     |   File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 93, in collapse_excgroups
open-webui  |     |     raise exc
open-webui  |     |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 191, in __call__
open-webui  |     |     response = await self.dispatch_func(request, call_next)
open-webui  |     |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
open-webui  |     |   File "/app/backend/open_webui/main.py", line 880, in update_embedding_function
open-webui  |     |     response = await call_next(request)
open-webui  |     |                ^^^^^^^^^^^^^^^^^^^^^^^^
open-webui  |     |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 165, in call_next
open-webui  |     |     raise app_exc
open-webui  |     |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 151, in coro
open-webui  |     |     await self.app(scope, receive_or_disconnect, send_no_error)
open-webui  |     |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 189, in __call__
open-webui  |     |     with collapse_excgroups():
open-webui  |     |   File "/usr/local/lib/python3.11/contextlib.py", line 158, in __exit__
open-webui  |     |     self.gen.throw(typ, value, traceback)
open-webui  |     |   File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 93, in collapse_excgroups
open-webui  |     |     raise exc
open-webui  |     |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 191, in __call__
open-webui  |     |     response = await self.dispatch_func(request, call_next)
open-webui  |     |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
open-webui  |     |   File "/app/backend/open_webui/main.py", line 871, in check_url
open-webui  |     |     response = await call_next(request)
open-webui  |     |                ^^^^^^^^^^^^^^^^^^^^^^^^
open-webui  |     |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 166, in call_next
open-webui  |     |     raise RuntimeError("No response returned.")
open-webui  |     | RuntimeError: No response returned.
open-webui  |     +------------------------------------
open-webui  | 
open-webui  | During handling of the above exception, another exception occurred:
open-webui  | 
open-webui  | Traceback (most recent call last):
open-webui  |   File "/usr/local/lib/python3.11/site-packages/uvicorn/protocols/http/httptools_impl.py", line 401, in run_asgi
open-webui  |     result = await app(  # type: ignore[func-returns-value]
open-webui  |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
open-webui  |   File "/usr/local/lib/python3.11/site-packages/uvicorn/middleware/proxy_headers.py", line 70, in __call__
open-webui  |     return await self.app(scope, receive, send)
open-webui  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
open-webui  |   File "/usr/local/lib/python3.11/site-packages/fastapi/applications.py", line 1054, in __call__
open-webui  |     await super().__call__(scope, receive, send)
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/applications.py", line 123, in __call__
open-webui  |     await self.middleware_stack(scope, receive, send)
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 186, in __call__
open-webui  |     raise exc
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 164, in __call__
open-webui  |     await self.app(scope, receive, _send)
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 189, in __call__
open-webui  |     with collapse_excgroups():
open-webui  |   File "/usr/local/lib/python3.11/contextlib.py", line 158, in __exit__
open-webui  |     self.gen.throw(typ, value, traceback)
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 93, in collapse_excgroups
open-webui  |     raise exc
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 191, in __call__
open-webui  |     response = await self.dispatch_func(request, call_next)
open-webui  |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
open-webui  |   File "/app/backend/open_webui/main.py", line 901, in inspect_websocket
open-webui  |     return await call_next(request)
open-webui  |            ^^^^^^^^^^^^^^^^^^^^^^^^
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 165, in call_next
open-webui  |     raise app_exc
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 151, in coro
open-webui  |     await self.app(scope, receive_or_disconnect, send_no_error)
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 189, in __call__
open-webui  |     with collapse_excgroups():
open-webui  |   File "/usr/local/lib/python3.11/contextlib.py", line 158, in __exit__
open-webui  |     self.gen.throw(typ, value, traceback)
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 93, in collapse_excgroups
open-webui  |     raise exc
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 191, in __call__
open-webui  |     response = await self.dispatch_func(request, call_next)
open-webui  |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
open-webui  |   File "/app/backend/open_webui/main.py", line 880, in update_embedding_function
open-webui  |     response = await call_next(request)
open-webui  |                ^^^^^^^^^^^^^^^^^^^^^^^^
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 165, in call_next
open-webui  |     raise app_exc
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 151, in coro
open-webui  |     await self.app(scope, receive_or_disconnect, send_no_error)
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 189, in __call__
open-webui  |     with collapse_excgroups():
open-webui  |   File "/usr/local/lib/python3.11/contextlib.py", line 158, in __exit__
open-webui  |     self.gen.throw(typ, value, traceback)
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 93, in collapse_excgroups
open-webui  |     raise exc
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 191, in __call__
open-webui  |     response = await self.dispatch_func(request, call_next)
open-webui  |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
open-webui  |   File "/app/backend/open_webui/main.py", line 871, in check_url
open-webui  |     response = await call_next(request)
open-webui  |                ^^^^^^^^^^^^^^^^^^^^^^^^
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 166, in call_next
open-webui  |     raise RuntimeError("No response returned.")
open-webui  | RuntimeError: No response returned.
open-webui  | INFO:     ***.***.*.**:52221 - "GET /api/config HTTP/1.1" 200 OK
open-webui  | INFO:     ('***.***.*.**', 52227) - "WebSocket /ws/socket.io/?EIO=4&transport=websocket&sid=osqZZImUBayN-Tx3AAAL" [accepted]
open-webui  | INFO:     connection open
open-webui  | INFO:     ***.***.*.**:52220 - "POST /ws/socket.io/?EIO=4&transport=polling&t=PCCCYlE&sid=osqZZImUBayN-Tx3AAAL HTTP/1.1" 200 OK
open-webui  | INFO:     ***.***.*.**:52222 - "GET /ws/socket.io/?EIO=4&transport=polling&t=PCCCYlG&sid=osqZZImUBayN-Tx3AAAL HTTP/1.1" 200 OK
open-webui  | INFO:     ***.***.*.**:52223 - "GET /api/changelog HTTP/1.1" 200 OK
open-webui  | INFO:     ***.***.*.**:52224 - "GET /ws/socket.io/?EIO=4&transport=polling&t=PCCCYlc&sid=osqZZImUBayN-Tx3AAAL HTTP/1.1" 200 OK
open-webui  | INFO:     ***.***.*.**:52220 - "GET /ws/socket.io/?EIO=4&transport=polling&t=PCCCYlq&sid=osqZZImUBayN-Tx3AAAL HTTP/1.1" 200 OK
open-webui  | INFO:     ('178.199.124.123', 0) - "WebSocket /ws/socket.io/?EIO=4&transport=websocket&sid=hDnR3nV3A4sfqNJ0AAAK" [accepted]
open-webui  | INFO:     connection open
open-webui  | INFO:     ***.***.*.**:52221 - "GET /api/v1/users/user/settings HTTP/1.1" 200 OK
open-webui  | INFO:     178.199.124.123:0 - "POST /ws/socket.io/?EIO=4&transport=polling&t=PCCCYlm&sid=hDnR3nV3A4sfqNJ0AAAK HTTP/1.1" 200 OK
open-webui  | INFO:     178.199.124.123:0 - "GET /ws/socket.io/?EIO=4&transport=polling&t=PCCCYlp&sid=hDnR3nV3A4sfqNJ0AAAK HTTP/1.1" 200 OK
open-webui  | INFO:     178.199.124.123:0 - "GET /ws/socket.io/?EIO=4&transport=polling&t=PCCCZGt&sid=hDnR3nV3A4sfqNJ0AAAK HTTP/1.1" 200 OK
open-webui  | INFO  [open_webui.apps.openai.main] get_all_models()
open-webui  | ERROR [open_webui.apps.openai.main] Connection error: 
open-webui  | INFO  [open_webui.apps.ollama.main] get_all_models()
open-webui  | [GIN] 2024/11/08 - 14:34:05 | 200 |     280.359µs |       127.0.0.1 | GET      "/api/tags"
open-webui  | INFO:     ***.***.*.**:52223 - "GET /api/v1/prompts/ HTTP/1.1" 500 Internal Server Error
open-webui  | INFO:     ***.***.*.**:52224 - "GET /api/v1/knowledge/ HTTP/1.1" 401 Unauthorized
open-webui  | INFO:     ***.***.*.**:52229 - "GET /api/v1/configs/banners HTTP/1.1" 401 Unauthorized
open-webui  | INFO:     ***.***.*.**:52221 - "GET /api/v1/functions/ HTTP/1.1" 200 OK
open-webui  | INFO:     ***.***.*.**:52222 - "GET /api/models HTTP/1.1" 200 OK
open-webui  | INFO:     ***.***.*.**:52220 - "GET /api/v1/tools/ HTTP/1.1" 200 OK
open-webui  | ERROR:    Exception in ASGI application
open-webui  | Traceback (most recent call last):
open-webui  |   File "/usr/local/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 1967, in _exec_single_context
open-webui  |     self.dialect.do_execute(
open-webui  |   File "/usr/local/lib/python3.11/site-packages/sqlalchemy/engine/default.py", line 941, in do_execute
open-webui  |     cursor.execute(statement, parameters)
open-webui  | sqlite3.OperationalError: database is locked
open-webui  | 
open-webui  | The above exception was the direct cause of the following exception:
open-webui  | 
open-webui  | Traceback (most recent call last):
open-webui  |   File "/usr/local/lib/python3.11/site-packages/uvicorn/protocols/http/httptools_impl.py", line 401, in run_asgi
open-webui  |     result = await app(  # type: ignore[func-returns-value]
open-webui  |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
open-webui  |   File "/usr/local/lib/python3.11/site-packages/uvicorn/middleware/proxy_headers.py", line 70, in __call__
open-webui  |     return await self.app(scope, receive, send)
open-webui  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
open-webui  |   File "/usr/local/lib/python3.11/site-packages/fastapi/applications.py", line 1054, in __call__
open-webui  |     await super().__call__(scope, receive, send)
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/applications.py", line 123, in __call__
open-webui  |     await self.middleware_stack(scope, receive, send)
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 186, in __call__
open-webui  |     raise exc
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 164, in __call__
open-webui  |     await self.app(scope, receive, _send)
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 189, in __call__
open-webui  |     with collapse_excgroups():
open-webui  |   File "/usr/local/lib/python3.11/contextlib.py", line 158, in __exit__
open-webui  |     self.gen.throw(typ, value, traceback)
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 93, in collapse_excgroups
open-webui  |     raise exc
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/responses.py", line 261, in wrap
open-webui  |     await func()
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 217, in stream_response
open-webui  |     return await super().stream_response(send)
open-webui  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/responses.py", line 250, in stream_response
open-webui  |     async for chunk in self.body_iterator:
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 181, in body_stream
open-webui  |     raise app_exc
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 151, in coro
open-webui  |     await self.app(scope, receive_or_disconnect, send_no_error)
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 189, in __call__
open-webui  |     with collapse_excgroups():
open-webui  |   File "/usr/local/lib/python3.11/contextlib.py", line 158, in __exit__
open-webui  |     self.gen.throw(typ, value, traceback)
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 93, in collapse_excgroups
open-webui  |     raise exc
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/responses.py", line 261, in wrap
open-webui  |     await func()
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 217, in stream_response
open-webui  |     return await super().stream_response(send)
open-webui  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/responses.py", line 250, in stream_response
open-webui  |     async for chunk in self.body_iterator:
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 181, in body_stream
open-webui  |     raise app_exc
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 151, in coro
open-webui  |     await self.app(scope, receive_or_disconnect, send_no_error)
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 189, in __call__
open-webui  |     with collapse_excgroups():
open-webui  |   File "/usr/local/lib/python3.11/contextlib.py", line 158, in __exit__
open-webui  |     self.gen.throw(typ, value, traceback)
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 93, in collapse_excgroups
open-webui  |     raise exc
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/responses.py", line 261, in wrap
open-webui  |     await func()
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 217, in stream_response
open-webui  |     return await super().stream_response(send)
open-webui  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/responses.py", line 250, in stream_response
open-webui  |     async for chunk in self.body_iterator:
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 181, in body_stream
open-webui  |     raise app_exc
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 151, in coro
open-webui  |     await self.app(scope, receive_or_disconnect, send_no_error)
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 189, in __call__
open-webui  |     with collapse_excgroups():
open-webui  |   File "/usr/local/lib/python3.11/contextlib.py", line 158, in __exit__
open-webui  |     self.gen.throw(typ, value, traceback)
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 93, in collapse_excgroups
open-webui  |     raise exc
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/responses.py", line 261, in wrap
open-webui  |     await func()
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 217, in stream_response
open-webui  |     return await super().stream_response(send)
open-webui  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/responses.py", line 250, in stream_response
open-webui  |     async for chunk in self.body_iterator:
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 181, in body_stream
open-webui  |     raise app_exc
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 151, in coro
open-webui  |     await self.app(scope, receive_or_disconnect, send_no_error)
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 189, in __call__
open-webui  |     with collapse_excgroups():
open-webui  |   File "/usr/local/lib/python3.11/contextlib.py", line 158, in __exit__
open-webui  |     self.gen.throw(typ, value, traceback)
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 93, in collapse_excgroups
open-webui  |     raise exc
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/responses.py", line 261, in wrap
open-webui  |     await func()
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 217, in stream_response
open-webui  |     return await super().stream_response(send)
open-webui  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/responses.py", line 250, in stream_response
open-webui  |     async for chunk in self.body_iterator:
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 181, in body_stream
open-webui  |     raise app_exc
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 151, in coro
open-webui  |     await self.app(scope, receive_or_disconnect, send_no_error)
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/cors.py", line 85, in __call__
open-webui  |     await self.app(scope, receive, send)
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 189, in __call__
open-webui  |     with collapse_excgroups():
open-webui  |   File "/usr/local/lib/python3.11/contextlib.py", line 158, in __exit__
open-webui  |     self.gen.throw(typ, value, traceback)
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 93, in collapse_excgroups
open-webui  |     raise exc
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/responses.py", line 261, in wrap
open-webui  |     await func()
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 217, in stream_response
open-webui  |     return await super().stream_response(send)
open-webui  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/responses.py", line 250, in stream_response
open-webui  |     async for chunk in self.body_iterator:
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 181, in body_stream
open-webui  |     raise app_exc
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 151, in coro
open-webui  |     await self.app(scope, receive_or_disconnect, send_no_error)
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 189, in __call__
open-webui  |     with collapse_excgroups():
open-webui  |   File "/usr/local/lib/python3.11/contextlib.py", line 158, in __exit__
open-webui  |     self.gen.throw(typ, value, traceback)
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 93, in collapse_excgroups
open-webui  |     raise exc
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/responses.py", line 261, in wrap
open-webui  |     await func()
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 217, in stream_response
open-webui  |     return await super().stream_response(send)
open-webui  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/responses.py", line 250, in stream_response
open-webui  |     async for chunk in self.body_iterator:
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 181, in body_stream
open-webui  |     raise app_exc
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 151, in coro
open-webui  |     await self.app(scope, receive_or_disconnect, send_no_error)
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 189, in __call__
open-webui  |     with collapse_excgroups():
open-webui  |   File "/usr/local/lib/python3.11/contextlib.py", line 158, in __exit__
open-webui  |     self.gen.throw(typ, value, traceback)
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 93, in collapse_excgroups
open-webui  |     raise exc
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/responses.py", line 261, in wrap
open-webui  |     await func()
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 217, in stream_response
open-webui  |     return await super().stream_response(send)
open-webui  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/responses.py", line 250, in stream_response
open-webui  |     async for chunk in self.body_iterator:
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 181, in body_stream
open-webui  |     raise app_exc
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 151, in coro
open-webui  |     await self.app(scope, receive_or_disconnect, send_no_error)
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 65, in __call__
open-webui  |     await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
open-webui  |     raise exc
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
open-webui  |     await app(scope, receive, sender)
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 756, in __call__
open-webui  |     await self.middleware_stack(scope, receive, send)
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 776, in app
open-webui  |     await route.handle(scope, receive, send)
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 485, in handle
open-webui  |     await self.app(scope, receive, send)
open-webui  |   File "/usr/local/lib/python3.11/site-packages/fastapi/applications.py", line 1054, in __call__
open-webui  |     await super().__call__(scope, receive, send)
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/applications.py", line 123, in __call__
open-webui  |     await self.middleware_stack(scope, receive, send)
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 186, in __call__
open-webui  |     raise exc
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 164, in __call__
open-webui  |     await self.app(scope, receive, _send)
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/cors.py", line 85, in __call__
open-webui  |     await self.app(scope, receive, send)
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 65, in __call__
open-webui  |     await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
open-webui  |     raise exc
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
open-webui  |     await app(scope, receive, sender)
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 756, in __call__
open-webui  |     await self.middleware_stack(scope, receive, send)
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 776, in app
open-webui  |     await route.handle(scope, receive, send)
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 297, in handle
open-webui  |     await self.app(scope, receive, send)
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 77, in app
open-webui  |     await wrap_app_handling_exceptions(app, request)(scope, receive, send)
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
open-webui  |     raise exc
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
open-webui  |     await app(scope, receive, sender)
open-webui  |   File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 72, in app
open-webui  |     response = await func(request)
open-webui  |                ^^^^^^^^^^^^^^^^^^^
open-webui  |   File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 278, in app
open-webui  |     raw_response = await run_endpoint_function(
open-webui  |                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
open-webui  |   File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 191, in run_endpoint_function
open-webui  |     return await dependant.call(**values)
open-webui  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
open-webui  |   File "/app/backend/open_webui/apps/webui/routers/prompts.py", line 17, in get_prompts
open-webui  |     return Prompts.get_prompts()
open-webui  |            ^^^^^^^^^^^^^^^^^^^^^
open-webui  |   File "/app/backend/open_webui/apps/webui/models/prompts.py", line 82, in get_prompts
open-webui  |     PromptModel.model_validate(prompt) for prompt in db.query(Prompt).all()
open-webui  |                                                      ^^^^^^^^^^^^^^^^^^^^^^
open-webui  |   File "/usr/local/lib/python3.11/site-packages/sqlalchemy/orm/query.py", line 2673, in all
open-webui  |     return self._iter().all()  # type: ignore
open-webui  |            ^^^^^^^^^^^^
open-webui  |   File "/usr/local/lib/python3.11/site-packages/sqlalchemy/orm/query.py", line 2827, in _iter
open-webui  |     result: Union[ScalarResult[_T], Result[_T]] = self.session.execute(
open-webui  |                                                   ^^^^^^^^^^^^^^^^^^^^^
open-webui  |   File "/usr/local/lib/python3.11/site-packages/sqlalchemy/orm/session.py", line 2362, in execute
open-webui  |     return self._execute_internal(
open-webui  |            ^^^^^^^^^^^^^^^^^^^^^^^
open-webui  |   File "/usr/local/lib/python3.11/site-packages/sqlalchemy/orm/session.py", line 2247, in _execute_internal
open-webui  |     result: Result[Any] = compile_state_cls.orm_execute_statement(
open-webui  |                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
open-webui  |   File "/usr/local/lib/python3.11/site-packages/sqlalchemy/orm/context.py", line 293, in orm_execute_statement
open-webui  |     result = conn.execute(
open-webui  |              ^^^^^^^^^^^^^
open-webui  |   File "/usr/local/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 1418, in execute
open-webui  |     return meth(
open-webui  |            ^^^^^
open-webui  |   File "/usr/local/lib/python3.11/site-packages/sqlalchemy/sql/elements.py", line 515, in _execute_on_connection
open-webui  |     return connection._execute_clauseelement(
open-webui  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
open-webui  |   File "/usr/local/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 1640, in _execute_clauseelement
open-webui  |     ret = self._execute_context(
open-webui  |           ^^^^^^^^^^^^^^^^^^^^^^
open-webui  |   File "/usr/local/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 1846, in _execute_context
open-webui  |     return self._exec_single_context(
open-webui  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^
open-webui  |   File "/usr/local/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 1986, in _exec_single_context
open-webui  |     self._handle_dbapi_exception(
open-webui  |   File "/usr/local/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 2355, in _handle_dbapi_exception
open-webui  |     raise sqlalchemy_exception.with_traceback(exc_info[2]) from e
open-webui  |   File "/usr/local/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 1967, in _exec_single_context
open-webui  |     self.dialect.do_execute(
open-webui  |   File "/usr/local/lib/python3.11/site-packages/sqlalchemy/engine/default.py", line 941, in do_execute
open-webui  |     cursor.execute(statement, parameters)
open-webui  | sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) database is locked
open-webui  | [SQL: SELECT prompt.command AS prompt_command, prompt.user_id AS prompt_user_id, prompt.title AS prompt_title, prompt.content AS prompt_content, prompt.timestamp AS prompt_timestamp 
open-webui  | FROM prompt]
open-webui  | (Background on this error at: https://sqlalche.me/e/20/e3q8)
open-webui  | INFO:     ***.***.*.**:52224 - "GET /api/v1/chats/all/tags HTTP/1.1" 200 OK
open-webui  | INFO:     172.18.0.1:0 - "GET / HTTP/1.1" 200 OK
open-webui  | INFO:     172.18.0.1:0 - "GET / HTTP/1.1" 200 OK
open-webui  | INFO:     172.18.0.1:0 - "GET / HTTP/1.1" 200 OK

Note
Before the update it was better, but also unstable. More often than not I got kicked out of session, had to restart docker.
I read this issue countless times in the GitHub here so I decided to scratch the install and re-install, which then updated to last version and rendered the application completely useless at this point due to above :(

I hope there is a solution to this.

Originally created by @smileBeda on GitHub (Nov 8, 2024). ## Installation Method Docker ``` services: open-webui: image: ghcr.io/open-webui/open-webui:ollama container_name: open-webui restart: unless-stopped ports: - "3002:8080" environment: - OPENAI_API_KEY=sk-proj-*** - WEBUI_NAME=*** - ENABLE_IMAGE_GENERATION=True - IMAGE_GENERATION_ENGINE=openai volumes: - "/media/Data2/open-webui/ollama:/root/.ollama" - "/media/Data2/open-webui/backend/data:/app/backend/data" ``` ## Environment - **Open WebUI Version:** 0.3.35 - **Ollama (if applicable):** 0.4.0 - **Operating System:** Ubuntu - **Browser (if applicable):** Safari, Chrome **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. - [x] I have included the browser console logs. - [x] I have included the Docker container logs. - [x] I have provided the exact steps to reproduce the bug in the "Steps to Reproduce" section below. ## Expected Behavior: Working app ## Actual Behavior: At log in, usually the screen just turns black, and nothing further happens. _Rarely_, it loads the interface 9with missing models more often than not) and even more rarely, you can actually use the chat. ## Reproduction Details Load the app via local Docker IP:Port and log in. ## Logs and Screenshots **Browser Console Logs:** ``` [Log] Socket undefined disconnected due to ping timeout (0.CU48zBqC.js, line 1) [Log] connect_error – Error: timeout — manager.js:137 (0.CU48zBqC.js, line 1) Error: timeout — manager.js:137 [Log] connect_error – Error: timeout — manager.js:137 (0.CU48zBqC.js, line 1) Error: timeout — manager.js:137 [Log] {id: "b4f784de-d38d-46a7-9643-12aa10db44d5", email: "***@***.com", name: "*** ****", role: "admin", profile_image_url: "https://www.gravatar.com/avatar/*** ******* ****?d=mp", …} (30.DAEU7Lf5.js, line 5) [Log] {id: "b4f784de-d38d-46a7-9643-12aa10db44d5", email: "***@***.com", name: "*** ****", role: "admin", profile_image_url: "https://www.gravatar.com/avatar/*** ******* ****?d=mp", …} (30.DAEU7Lf5.js, line 5) [Log] connected – "52o_qUDhGfG9lDxUAAAM" (0.CU48zBqC.js, line 1) [Log] user-count – {count: 1} (0.CU48zBqC.js, line 1) [Log] user-count – {count: 1} (0.CU48zBqC.js, line 1) [Error] Failed to load resource: the server responded with a status of 500 (Internal Server Error) (prompts, line 0) [Log] SyntaxError: The string did not match the expected pattern. (index.C5oyPQkJ.js, line 1) [Error] Failed to load resource: the server responded with a status of 401 (Unauthorized) (knowledge, line 0) [Error] Failed to load resource: the server responded with a status of 401 (Unauthorized) (banners, line 0) [Log] {detail: "Your session has expired or the token is invalid. Please sign in again."} (index.DwKc5o-l.js, line 1) [Log] {detail: "Your session has expired or the token is invalid. Please sign in again."} (SensitiveInput.DVFYfG8v.js, line 1) [Error] Unhandled Promise Rejection: Your session has expired or the token is invalid. Please sign in again. (anonymous function) (2.D6drJD9c.js:23:61692) [Log] [Object, Object] (2) (index.yoKVoZ-T.js, line 1) [Log] Socket undefined disconnected due to transport close (0.CU48zBqC.js, line 1) [Log] Additional details: – {description: "websocket connection closed", context: CloseEvent} (0.CU48zBqC.js, line 1) {description: "websocket connection closed", context: CloseEvent}Object [Error] Failed to load resource: Could not connect to the server. (socket.io, line 0) [Log] connect_error – Error: xhr poll error (0.CU48zBqC.js, line 1) Error: xhr poll error ``` **Docker Container Logs:** ``` sudo docker compose up [+] Running 1/0 ✔ Container open-webui Created 0.0s Attaching to open-webui open-webui | Loading WEBUI_SECRET_KEY from file, not provided as an environment variable. open-webui | Generating WEBUI_SECRET_KEY open-webui | Loading WEBUI_SECRET_KEY from .webui_secret_key open-webui | USE_OLLAMA is set to true, starting ollama serve. open-webui | 2024/11/08 14:31:29 routes.go:1158: INFO server config env="map[CUDA_VISIBLE_DEVICES: GPU_DEVICE_ORDINAL: HIP_VISIBLE_DEVICES: HSA_OVERRIDE_GFX_VERSION: HTTPS_PROXY: HTTP_PROXY: NO_PROXY: OLLAMA_DEBUG:false OLLAMA_FLASH_ATTENTION:false OLLAMA_GPU_OVERHEAD:0 OLLAMA_HOST:http://127.0.0.1:11434 OLLAMA_INTEL_GPU:false OLLAMA_KEEP_ALIVE:5m0s OLLAMA_LLM_LIBRARY: OLLAMA_LOAD_TIMEOUT:5m0s OLLAMA_MAX_LOADED_MODELS:0 OLLAMA_MAX_QUEUE:512 OLLAMA_MODELS:/root/.ollama/models OLLAMA_MULTIUSER_CACHE:false OLLAMA_NOHISTORY:false OLLAMA_NOPRUNE:false OLLAMA_NUM_PARALLEL:0 OLLAMA_ORIGINS:[http://localhost https://localhost http://localhost:* https://localhost:* http://127.0.0.1 https://127.0.0.1 http://127.0.0.1:* https://127.0.0.1:* http://0.0.0.0 https://0.0.0.0 http://0.0.0.0:* https://0.0.0.0:* app://* file://* tauri://*] OLLAMA_SCHED_SPREAD:false OLLAMA_TMPDIR: ROCR_VISIBLE_DEVICES: http_proxy: https_proxy: no_proxy:]" open-webui | time=2024-11-08T14:31:29.116Z level=INFO source=images.go:754 msg="total blobs: 5" open-webui | time=2024-11-08T14:31:29.116Z level=INFO source=images.go:761 msg="total unused blobs removed: 0" open-webui | time=2024-11-08T14:31:29.116Z level=INFO source=routes.go:1205 msg="Listening on 127.0.0.1:11434 (version 0.3.14)" open-webui | time=2024-11-08T14:31:29.117Z level=INFO source=common.go:135 msg="extracting embedded files" dir=/tmp/ollama502928838/runners open-webui | /app/backend/open_webui open-webui | /app/backend open-webui | /app open-webui | Running migrations open-webui | INFO [alembic.runtime.migration] Context impl SQLiteImpl. open-webui | INFO [alembic.runtime.migration] Will assume non-transactional DDL. open-webui | INFO [open_webui.env] 'JWT_EXPIRES_IN' loaded from the latest database entry open-webui | INFO [open_webui.env] 'ENABLE_SIGNUP' loaded from the latest database entry open-webui | INFO [open_webui.env] 'DEFAULT_LOCALE' loaded from the latest database entry open-webui | INFO [open_webui.env] 'DEFAULT_PROMPT_SUGGESTIONS' loaded from the latest database entry open-webui | INFO [open_webui.env] 'DEFAULT_USER_ROLE' loaded from the latest database entry open-webui | INFO [open_webui.env] 'WEBHOOK_URL' loaded from the latest database entry open-webui | INFO [open_webui.env] 'ENABLE_COMMUNITY_SHARING' loaded from the latest database entry open-webui | INFO [open_webui.env] 'ENABLE_MESSAGE_RATING' loaded from the latest database entry open-webui | WARNI [open_webui.env] open-webui | open-webui | WARNING: CORS_ALLOW_ORIGIN IS SET TO '*' - NOT RECOMMENDED FOR PRODUCTION DEPLOYMENTS. open-webui | open-webui | INFO [open_webui.env] 'WEBUI_BANNERS' loaded from the latest database entry open-webui | INFO [open_webui.env] 'SHOW_ADMIN_DETAILS' loaded from the latest database entry open-webui | INFO [open_webui.env] 'TASK_MODEL' loaded from the latest database entry open-webui | INFO [open_webui.env] 'TASK_MODEL_EXTERNAL' loaded from the latest database entry open-webui | INFO [open_webui.env] 'TITLE_GENERATION_PROMPT_TEMPLATE' loaded from the latest database entry open-webui | INFO [open_webui.env] 'ENABLE_SEARCH_QUERY' loaded from the latest database entry open-webui | INFO [open_webui.env] 'SEARCH_QUERY_GENERATION_PROMPT_TEMPLATE' loaded from the latest database entry open-webui | INFO [open_webui.env] 'TOOLS_FUNCTION_CALLING_PROMPT_TEMPLATE' loaded from the latest database entry open-webui | INFO [open_webui.env] Embedding model set: sentence-transformers/all-MiniLM-L6-v2 open-webui | INFO [open_webui.apps.audio.main] whisper_device_type: cpu open-webui | WARNI [langchain_community.utils.user_agent] USER_AGENT environment variable not set, consider setting it to identify your requests. open-webui | INFO: Started server process [1] open-webui | INFO: Waiting for application startup. open-webui | INFO: Application startup complete. open-webui | INFO: Uvicorn running on http://0.0.0.0:8080 (Press CTRL+C to quit) open-webui | time=2024-11-08T14:31:39.849Z level=INFO source=common.go:49 msg="Dynamic LLM libraries" runners="[cpu_avx cpu_avx2 cuda_v11 cuda_v12 rocm_v60102 cpu]" open-webui | time=2024-11-08T14:31:39.849Z level=INFO source=gpu.go:221 msg="looking for compatible GPUs" open-webui | INFO [open_webui.apps.openai.main] get_all_models() open-webui | INFO [open_webui.apps.openai.main] get_all_models() open-webui | time=2024-11-08T14:31:39.855Z level=INFO source=gpu.go:384 msg="no compatible GPUs were discovered" open-webui | time=2024-11-08T14:31:39.855Z level=INFO source=types.go:123 msg="inference compute" id=0 library=cpu variant=avx2 compute="" driver=0.0 name="" total="31.1 GiB" available="25.0 GiB" open-webui | INFO [open_webui.apps.ollama.main] get_all_models() open-webui | INFO [open_webui.apps.ollama.main] get_all_models() open-webui | [GIN] 2024/11/08 - 14:31:40 | 200 | 562.597959ms | 127.0.0.1 | GET "/api/tags" open-webui | [GIN] 2024/11/08 - 14:31:40 | 200 | 513.509024ms | 127.0.0.1 | GET "/api/tags" open-webui | open-webui | ___ __ __ _ _ _ ___ open-webui | / _ \ _ __ ___ _ __ \ \ / /__| |__ | | | |_ _| open-webui | | | | | '_ \ / _ \ '_ \ \ \ /\ / / _ \ '_ \| | | || | open-webui | | |_| | |_) | __/ | | | \ V V / __/ |_) | |_| || | open-webui | \___/| .__/ \___|_| |_| \_/\_/ \___|_.__/ \___/|___| open-webui | |_| open-webui | open-webui | open-webui | v0.3.35 - building the best open-source AI user interface. open-webui | open-webui | https://github.com/open-webui/open-webui open-webui | open-webui | INFO: ***.***.*.**:52207 - "GET /ws/socket.io/?EIO=4&transport=polling&t=PCCC1mb HTTP/1.1" 200 OK open-webui | INFO: 178.199.124.123:0 - "GET /ws/socket.io/?EIO=4&transport=polling&t=PCCC1m6 HTTP/1.1" 200 OK open-webui | INFO: ***.***.*.**:52207 - "POST /ws/socket.io/?EIO=4&transport=polling&t=PCCC2D1&sid=HPFLcheyYYVKPYzLAAAA HTTP/1.1" 200 OK open-webui | INFO: ('***.***.*.**', 52208) - "WebSocket /ws/socket.io/?EIO=4&transport=websocket&sid=HPFLcheyYYVKPYzLAAAA" [accepted] open-webui | INFO: connection open open-webui | INFO: ***.***.*.**:52209 - "GET /ws/socket.io/?EIO=4&transport=polling&t=PCCC2D6&sid=HPFLcheyYYVKPYzLAAAA HTTP/1.1" 200 OK open-webui | INFO: ***.***.*.**:52207 - "GET /ws/socket.io/?EIO=4&transport=polling&t=PCCC2DI&sid=HPFLcheyYYVKPYzLAAAA HTTP/1.1" 200 OK open-webui | INFO: 178.199.124.123:0 - "POST /ws/socket.io/?EIO=4&transport=polling&t=PCCC2Dc&sid=ZmfNpVzv4LWvtpKKAAAB HTTP/1.1" 200 OK open-webui | INFO: 178.199.124.123:0 - "GET /ws/socket.io/?EIO=4&transport=polling&t=PCCC2Df&sid=ZmfNpVzv4LWvtpKKAAAB HTTP/1.1" 200 OK open-webui | INFO: ('178.199.124.123', 0) - "WebSocket /ws/socket.io/?EIO=4&transport=websocket&sid=ZmfNpVzv4LWvtpKKAAAB" [accepted] open-webui | INFO: connection open open-webui | INFO: 178.199.124.123:0 - "GET /ws/socket.io/?EIO=4&transport=polling&t=PCCC2Hu&sid=ZmfNpVzv4LWvtpKKAAAB HTTP/1.1" 200 OK open-webui | INFO: 172.18.0.1:0 - "GET / HTTP/1.1" 200 OK open-webui | INFO: ***.***.*.**:52213 - "GET / HTTP/1.1" 200 OK open-webui | INFO: connection closed open-webui | INFO: ***.***.*.**:52213 - "GET /manifest.json HTTP/1.1" 200 OK open-webui | INFO: ***.***.*.**:52213 - "GET /_app/immutable/entry/start.Bh0bBc-z.js.map HTTP/1.1" 200 OK open-webui | INFO: ***.***.*.**:52213 - "GET /_app/immutable/chunks/globals.D0QH3NT1.js.map HTTP/1.1" 200 OK open-webui | INFO: ***.***.*.**:52215 - "GET /_app/immutable/chunks/sha256.DmKfZSHC.js.map HTTP/1.1" 200 OK open-webui | INFO: ***.***.*.**:52216 - "GET /_app/immutable/chunks/index.DQfRr7yB.js.map HTTP/1.1" 200 OK open-webui | INFO: ***.***.*.**:52214 - "GET /_app/immutable/chunks/index.aO5Hj6h-.js.map HTTP/1.1" 200 OK open-webui | INFO: ***.***.*.**:52213 - "GET /api/config HTTP/1.1" 200 OK open-webui | INFO: ***.***.*.**:52215 - "GET /ws/socket.io/?EIO=4&transport=polling&t=PCCC9gG HTTP/1.1" 200 OK open-webui | INFO: ***.***.*.**:52216 - "GET /api/v1/auths/ HTTP/1.1" 401 Unauthorized open-webui | INFO: ('***.***.*.**', 52217) - "WebSocket /ws/socket.io/?EIO=4&transport=websocket&sid=ilQUOQ0j3E9DfK-cAAAE" [accepted] open-webui | INFO: connection open open-webui | INFO: ***.***.*.**:52214 - "POST /ws/socket.io/?EIO=4&transport=polling&t=PCCC9gP&sid=ilQUOQ0j3E9DfK-cAAAE HTTP/1.1" 200 OK open-webui | INFO: ***.***.*.**:52213 - "GET /ws/socket.io/?EIO=4&transport=polling&t=PCCC9gP.0&sid=ilQUOQ0j3E9DfK-cAAAE HTTP/1.1" 200 OK open-webui | INFO: ***.***.*.**:52215 - "GET /ws/socket.io/?EIO=4&transport=polling&t=PCCC9ge&sid=ilQUOQ0j3E9DfK-cAAAE HTTP/1.1" 200 OK open-webui | INFO: ***.***.*.**:52216 - "GET /_app/immutable/chunks/translation.Bi7ARQ8X.js.map HTTP/1.1" 200 OK open-webui | INFO: ***.***.*.**:52214 - "GET /_app/immutable/chunks/translation.BP9C6TLe.js.map HTTP/1.1" 200 OK open-webui | INFO: ***.***.*.**:52218 - "GET /opensearch.xml HTTP/1.1" 200 OK open-webui | INFO [open_webui.apps.webui.models.auths] authenticate_user: ***@***.com open-webui | INFO: connection closed open-webui | INFO: connection closed open-webui | INFO: ***.***.*.**:52220 - "POST /api/v1/auths/signin HTTP/1.1" 200 OK open-webui | INFO [open_webui.apps.webui.models.auths] authenticate_user: ***@***.com open-webui | INFO: ***.***.*.**:52221 - "POST /api/v1/auths/signin HTTP/1.1" 200 OK open-webui | INFO: 178.199.124.123:0 - "GET /ws/socket.io/?EIO=4&transport=polling&t=PCCCJZY HTTP/1.1" 200 OK open-webui | INFO: ***.***.*.**:52222 - "GET /ws/socket.io/?EIO=4&transport=polling&t=PCCCKt3 HTTP/1.1" 200 OK open-webui | INFO: 178.199.124.123:0 - "GET /ws/socket.io/?EIO=4&transport=polling&t=PCCCOth HTTP/1.1" 200 OK open-webui | INFO: ***.***.*.**:52223 - "GET /ws/socket.io/?EIO=4&transport=polling&t=PCCCQ5B HTTP/1.1" 200 OK open-webui | INFO: ***.***.*.**:52220 - "GET /api/config HTTP/1.1" 200 OK open-webui | INFO: 178.199.124.123:0 - "GET /ws/socket.io/?EIO=4&transport=polling&t=PCCCUSH HTTP/1.1" 200 OK open-webui | INFO: ***.***.*.**:52224 - "GET /ws/socket.io/?EIO=4&transport=polling&t=PCCCV-T HTTP/1.1" 200 OK open-webui | ERROR: Exception in ASGI application open-webui | + Exception Group Traceback (most recent call last): open-webui | | File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 87, in collapse_excgroups open-webui | | yield open-webui | | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 190, in __call__ open-webui | | async with anyio.create_task_group() as task_group: open-webui | | File "/usr/local/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 763, in __aexit__ open-webui | | raise BaseExceptionGroup( open-webui | | ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception) open-webui | +-+---------------- 1 ---------------- open-webui | | Traceback (most recent call last): open-webui | | File "/usr/local/lib/python3.11/site-packages/uvicorn/protocols/http/httptools_impl.py", line 401, in run_asgi open-webui | | result = await app( # type: ignore[func-returns-value] open-webui | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ open-webui | | File "/usr/local/lib/python3.11/site-packages/uvicorn/middleware/proxy_headers.py", line 70, in __call__ open-webui | | return await self.app(scope, receive, send) open-webui | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ open-webui | | File "/usr/local/lib/python3.11/site-packages/fastapi/applications.py", line 1054, in __call__ open-webui | | await super().__call__(scope, receive, send) open-webui | | File "/usr/local/lib/python3.11/site-packages/starlette/applications.py", line 123, in __call__ open-webui | | await self.middleware_stack(scope, receive, send) open-webui | | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 186, in __call__ open-webui | | raise exc open-webui | | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 164, in __call__ open-webui | | await self.app(scope, receive, _send) open-webui | | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 189, in __call__ open-webui | | with collapse_excgroups(): open-webui | | File "/usr/local/lib/python3.11/contextlib.py", line 158, in __exit__ open-webui | | self.gen.throw(typ, value, traceback) open-webui | | File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 93, in collapse_excgroups open-webui | | raise exc open-webui | | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 191, in __call__ open-webui | | response = await self.dispatch_func(request, call_next) open-webui | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ open-webui | | File "/app/backend/open_webui/main.py", line 901, in inspect_websocket open-webui | | return await call_next(request) open-webui | | ^^^^^^^^^^^^^^^^^^^^^^^^ open-webui | | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 165, in call_next open-webui | | raise app_exc open-webui | | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 151, in coro open-webui | | await self.app(scope, receive_or_disconnect, send_no_error) open-webui | | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 189, in __call__ open-webui | | with collapse_excgroups(): open-webui | | File "/usr/local/lib/python3.11/contextlib.py", line 158, in __exit__ open-webui | | self.gen.throw(typ, value, traceback) open-webui | | File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 93, in collapse_excgroups open-webui | | raise exc open-webui | | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 191, in __call__ open-webui | | response = await self.dispatch_func(request, call_next) open-webui | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ open-webui | | File "/app/backend/open_webui/main.py", line 880, in update_embedding_function open-webui | | response = await call_next(request) open-webui | | ^^^^^^^^^^^^^^^^^^^^^^^^ open-webui | | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 165, in call_next open-webui | | raise app_exc open-webui | | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 151, in coro open-webui | | await self.app(scope, receive_or_disconnect, send_no_error) open-webui | | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 189, in __call__ open-webui | | with collapse_excgroups(): open-webui | | File "/usr/local/lib/python3.11/contextlib.py", line 158, in __exit__ open-webui | | self.gen.throw(typ, value, traceback) open-webui | | File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 93, in collapse_excgroups open-webui | | raise exc open-webui | | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 191, in __call__ open-webui | | response = await self.dispatch_func(request, call_next) open-webui | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ open-webui | | File "/app/backend/open_webui/main.py", line 871, in check_url open-webui | | response = await call_next(request) open-webui | | ^^^^^^^^^^^^^^^^^^^^^^^^ open-webui | | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 166, in call_next open-webui | | raise RuntimeError("No response returned.") open-webui | | RuntimeError: No response returned. open-webui | +------------------------------------ open-webui | open-webui | During handling of the above exception, another exception occurred: open-webui | open-webui | Traceback (most recent call last): open-webui | File "/usr/local/lib/python3.11/site-packages/uvicorn/protocols/http/httptools_impl.py", line 401, in run_asgi open-webui | result = await app( # type: ignore[func-returns-value] open-webui | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ open-webui | File "/usr/local/lib/python3.11/site-packages/uvicorn/middleware/proxy_headers.py", line 70, in __call__ open-webui | return await self.app(scope, receive, send) open-webui | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ open-webui | File "/usr/local/lib/python3.11/site-packages/fastapi/applications.py", line 1054, in __call__ open-webui | await super().__call__(scope, receive, send) open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/applications.py", line 123, in __call__ open-webui | await self.middleware_stack(scope, receive, send) open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 186, in __call__ open-webui | raise exc open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 164, in __call__ open-webui | await self.app(scope, receive, _send) open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 189, in __call__ open-webui | with collapse_excgroups(): open-webui | File "/usr/local/lib/python3.11/contextlib.py", line 158, in __exit__ open-webui | self.gen.throw(typ, value, traceback) open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 93, in collapse_excgroups open-webui | raise exc open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 191, in __call__ open-webui | response = await self.dispatch_func(request, call_next) open-webui | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ open-webui | File "/app/backend/open_webui/main.py", line 901, in inspect_websocket open-webui | return await call_next(request) open-webui | ^^^^^^^^^^^^^^^^^^^^^^^^ open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 165, in call_next open-webui | raise app_exc open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 151, in coro open-webui | await self.app(scope, receive_or_disconnect, send_no_error) open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 189, in __call__ open-webui | with collapse_excgroups(): open-webui | File "/usr/local/lib/python3.11/contextlib.py", line 158, in __exit__ open-webui | self.gen.throw(typ, value, traceback) open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 93, in collapse_excgroups open-webui | raise exc open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 191, in __call__ open-webui | response = await self.dispatch_func(request, call_next) open-webui | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ open-webui | File "/app/backend/open_webui/main.py", line 880, in update_embedding_function open-webui | response = await call_next(request) open-webui | ^^^^^^^^^^^^^^^^^^^^^^^^ open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 165, in call_next open-webui | raise app_exc open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 151, in coro open-webui | await self.app(scope, receive_or_disconnect, send_no_error) open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 189, in __call__ open-webui | with collapse_excgroups(): open-webui | File "/usr/local/lib/python3.11/contextlib.py", line 158, in __exit__ open-webui | self.gen.throw(typ, value, traceback) open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 93, in collapse_excgroups open-webui | raise exc open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 191, in __call__ open-webui | response = await self.dispatch_func(request, call_next) open-webui | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ open-webui | File "/app/backend/open_webui/main.py", line 871, in check_url open-webui | response = await call_next(request) open-webui | ^^^^^^^^^^^^^^^^^^^^^^^^ open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 166, in call_next open-webui | raise RuntimeError("No response returned.") open-webui | RuntimeError: No response returned. open-webui | INFO: ***.***.*.**:52221 - "GET /api/config HTTP/1.1" 200 OK open-webui | INFO: ('***.***.*.**', 52227) - "WebSocket /ws/socket.io/?EIO=4&transport=websocket&sid=osqZZImUBayN-Tx3AAAL" [accepted] open-webui | INFO: connection open open-webui | INFO: ***.***.*.**:52220 - "POST /ws/socket.io/?EIO=4&transport=polling&t=PCCCYlE&sid=osqZZImUBayN-Tx3AAAL HTTP/1.1" 200 OK open-webui | INFO: ***.***.*.**:52222 - "GET /ws/socket.io/?EIO=4&transport=polling&t=PCCCYlG&sid=osqZZImUBayN-Tx3AAAL HTTP/1.1" 200 OK open-webui | INFO: ***.***.*.**:52223 - "GET /api/changelog HTTP/1.1" 200 OK open-webui | INFO: ***.***.*.**:52224 - "GET /ws/socket.io/?EIO=4&transport=polling&t=PCCCYlc&sid=osqZZImUBayN-Tx3AAAL HTTP/1.1" 200 OK open-webui | INFO: ***.***.*.**:52220 - "GET /ws/socket.io/?EIO=4&transport=polling&t=PCCCYlq&sid=osqZZImUBayN-Tx3AAAL HTTP/1.1" 200 OK open-webui | INFO: ('178.199.124.123', 0) - "WebSocket /ws/socket.io/?EIO=4&transport=websocket&sid=hDnR3nV3A4sfqNJ0AAAK" [accepted] open-webui | INFO: connection open open-webui | INFO: ***.***.*.**:52221 - "GET /api/v1/users/user/settings HTTP/1.1" 200 OK open-webui | INFO: 178.199.124.123:0 - "POST /ws/socket.io/?EIO=4&transport=polling&t=PCCCYlm&sid=hDnR3nV3A4sfqNJ0AAAK HTTP/1.1" 200 OK open-webui | INFO: 178.199.124.123:0 - "GET /ws/socket.io/?EIO=4&transport=polling&t=PCCCYlp&sid=hDnR3nV3A4sfqNJ0AAAK HTTP/1.1" 200 OK open-webui | INFO: 178.199.124.123:0 - "GET /ws/socket.io/?EIO=4&transport=polling&t=PCCCZGt&sid=hDnR3nV3A4sfqNJ0AAAK HTTP/1.1" 200 OK open-webui | INFO [open_webui.apps.openai.main] get_all_models() open-webui | ERROR [open_webui.apps.openai.main] Connection error: open-webui | INFO [open_webui.apps.ollama.main] get_all_models() open-webui | [GIN] 2024/11/08 - 14:34:05 | 200 | 280.359µs | 127.0.0.1 | GET "/api/tags" open-webui | INFO: ***.***.*.**:52223 - "GET /api/v1/prompts/ HTTP/1.1" 500 Internal Server Error open-webui | INFO: ***.***.*.**:52224 - "GET /api/v1/knowledge/ HTTP/1.1" 401 Unauthorized open-webui | INFO: ***.***.*.**:52229 - "GET /api/v1/configs/banners HTTP/1.1" 401 Unauthorized open-webui | INFO: ***.***.*.**:52221 - "GET /api/v1/functions/ HTTP/1.1" 200 OK open-webui | INFO: ***.***.*.**:52222 - "GET /api/models HTTP/1.1" 200 OK open-webui | INFO: ***.***.*.**:52220 - "GET /api/v1/tools/ HTTP/1.1" 200 OK open-webui | ERROR: Exception in ASGI application open-webui | Traceback (most recent call last): open-webui | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 1967, in _exec_single_context open-webui | self.dialect.do_execute( open-webui | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/engine/default.py", line 941, in do_execute open-webui | cursor.execute(statement, parameters) open-webui | sqlite3.OperationalError: database is locked open-webui | open-webui | The above exception was the direct cause of the following exception: open-webui | open-webui | Traceback (most recent call last): open-webui | File "/usr/local/lib/python3.11/site-packages/uvicorn/protocols/http/httptools_impl.py", line 401, in run_asgi open-webui | result = await app( # type: ignore[func-returns-value] open-webui | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ open-webui | File "/usr/local/lib/python3.11/site-packages/uvicorn/middleware/proxy_headers.py", line 70, in __call__ open-webui | return await self.app(scope, receive, send) open-webui | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ open-webui | File "/usr/local/lib/python3.11/site-packages/fastapi/applications.py", line 1054, in __call__ open-webui | await super().__call__(scope, receive, send) open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/applications.py", line 123, in __call__ open-webui | await self.middleware_stack(scope, receive, send) open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 186, in __call__ open-webui | raise exc open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 164, in __call__ open-webui | await self.app(scope, receive, _send) open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 189, in __call__ open-webui | with collapse_excgroups(): open-webui | File "/usr/local/lib/python3.11/contextlib.py", line 158, in __exit__ open-webui | self.gen.throw(typ, value, traceback) open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 93, in collapse_excgroups open-webui | raise exc open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/responses.py", line 261, in wrap open-webui | await func() open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 217, in stream_response open-webui | return await super().stream_response(send) open-webui | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/responses.py", line 250, in stream_response open-webui | async for chunk in self.body_iterator: open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 181, in body_stream open-webui | raise app_exc open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 151, in coro open-webui | await self.app(scope, receive_or_disconnect, send_no_error) open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 189, in __call__ open-webui | with collapse_excgroups(): open-webui | File "/usr/local/lib/python3.11/contextlib.py", line 158, in __exit__ open-webui | self.gen.throw(typ, value, traceback) open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 93, in collapse_excgroups open-webui | raise exc open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/responses.py", line 261, in wrap open-webui | await func() open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 217, in stream_response open-webui | return await super().stream_response(send) open-webui | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/responses.py", line 250, in stream_response open-webui | async for chunk in self.body_iterator: open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 181, in body_stream open-webui | raise app_exc open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 151, in coro open-webui | await self.app(scope, receive_or_disconnect, send_no_error) open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 189, in __call__ open-webui | with collapse_excgroups(): open-webui | File "/usr/local/lib/python3.11/contextlib.py", line 158, in __exit__ open-webui | self.gen.throw(typ, value, traceback) open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 93, in collapse_excgroups open-webui | raise exc open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/responses.py", line 261, in wrap open-webui | await func() open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 217, in stream_response open-webui | return await super().stream_response(send) open-webui | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/responses.py", line 250, in stream_response open-webui | async for chunk in self.body_iterator: open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 181, in body_stream open-webui | raise app_exc open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 151, in coro open-webui | await self.app(scope, receive_or_disconnect, send_no_error) open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 189, in __call__ open-webui | with collapse_excgroups(): open-webui | File "/usr/local/lib/python3.11/contextlib.py", line 158, in __exit__ open-webui | self.gen.throw(typ, value, traceback) open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 93, in collapse_excgroups open-webui | raise exc open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/responses.py", line 261, in wrap open-webui | await func() open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 217, in stream_response open-webui | return await super().stream_response(send) open-webui | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/responses.py", line 250, in stream_response open-webui | async for chunk in self.body_iterator: open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 181, in body_stream open-webui | raise app_exc open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 151, in coro open-webui | await self.app(scope, receive_or_disconnect, send_no_error) open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 189, in __call__ open-webui | with collapse_excgroups(): open-webui | File "/usr/local/lib/python3.11/contextlib.py", line 158, in __exit__ open-webui | self.gen.throw(typ, value, traceback) open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 93, in collapse_excgroups open-webui | raise exc open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/responses.py", line 261, in wrap open-webui | await func() open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 217, in stream_response open-webui | return await super().stream_response(send) open-webui | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/responses.py", line 250, in stream_response open-webui | async for chunk in self.body_iterator: open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 181, in body_stream open-webui | raise app_exc open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 151, in coro open-webui | await self.app(scope, receive_or_disconnect, send_no_error) open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/cors.py", line 85, in __call__ open-webui | await self.app(scope, receive, send) open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 189, in __call__ open-webui | with collapse_excgroups(): open-webui | File "/usr/local/lib/python3.11/contextlib.py", line 158, in __exit__ open-webui | self.gen.throw(typ, value, traceback) open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 93, in collapse_excgroups open-webui | raise exc open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/responses.py", line 261, in wrap open-webui | await func() open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 217, in stream_response open-webui | return await super().stream_response(send) open-webui | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/responses.py", line 250, in stream_response open-webui | async for chunk in self.body_iterator: open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 181, in body_stream open-webui | raise app_exc open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 151, in coro open-webui | await self.app(scope, receive_or_disconnect, send_no_error) open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 189, in __call__ open-webui | with collapse_excgroups(): open-webui | File "/usr/local/lib/python3.11/contextlib.py", line 158, in __exit__ open-webui | self.gen.throw(typ, value, traceback) open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 93, in collapse_excgroups open-webui | raise exc open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/responses.py", line 261, in wrap open-webui | await func() open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 217, in stream_response open-webui | return await super().stream_response(send) open-webui | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/responses.py", line 250, in stream_response open-webui | async for chunk in self.body_iterator: open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 181, in body_stream open-webui | raise app_exc open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 151, in coro open-webui | await self.app(scope, receive_or_disconnect, send_no_error) open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 189, in __call__ open-webui | with collapse_excgroups(): open-webui | File "/usr/local/lib/python3.11/contextlib.py", line 158, in __exit__ open-webui | self.gen.throw(typ, value, traceback) open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/_utils.py", line 93, in collapse_excgroups open-webui | raise exc open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/responses.py", line 261, in wrap open-webui | await func() open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 217, in stream_response open-webui | return await super().stream_response(send) open-webui | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/responses.py", line 250, in stream_response open-webui | async for chunk in self.body_iterator: open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 181, in body_stream open-webui | raise app_exc open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 151, in coro open-webui | await self.app(scope, receive_or_disconnect, send_no_error) open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 65, in __call__ open-webui | await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app open-webui | raise exc open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app open-webui | await app(scope, receive, sender) open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 756, in __call__ open-webui | await self.middleware_stack(scope, receive, send) open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 776, in app open-webui | await route.handle(scope, receive, send) open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 485, in handle open-webui | await self.app(scope, receive, send) open-webui | File "/usr/local/lib/python3.11/site-packages/fastapi/applications.py", line 1054, in __call__ open-webui | await super().__call__(scope, receive, send) open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/applications.py", line 123, in __call__ open-webui | await self.middleware_stack(scope, receive, send) open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 186, in __call__ open-webui | raise exc open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 164, in __call__ open-webui | await self.app(scope, receive, _send) open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/cors.py", line 85, in __call__ open-webui | await self.app(scope, receive, send) open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 65, in __call__ open-webui | await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app open-webui | raise exc open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app open-webui | await app(scope, receive, sender) open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 756, in __call__ open-webui | await self.middleware_stack(scope, receive, send) open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 776, in app open-webui | await route.handle(scope, receive, send) open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 297, in handle open-webui | await self.app(scope, receive, send) open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 77, in app open-webui | await wrap_app_handling_exceptions(app, request)(scope, receive, send) open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app open-webui | raise exc open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app open-webui | await app(scope, receive, sender) open-webui | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 72, in app open-webui | response = await func(request) open-webui | ^^^^^^^^^^^^^^^^^^^ open-webui | File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 278, in app open-webui | raw_response = await run_endpoint_function( open-webui | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ open-webui | File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 191, in run_endpoint_function open-webui | return await dependant.call(**values) open-webui | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ open-webui | File "/app/backend/open_webui/apps/webui/routers/prompts.py", line 17, in get_prompts open-webui | return Prompts.get_prompts() open-webui | ^^^^^^^^^^^^^^^^^^^^^ open-webui | File "/app/backend/open_webui/apps/webui/models/prompts.py", line 82, in get_prompts open-webui | PromptModel.model_validate(prompt) for prompt in db.query(Prompt).all() open-webui | ^^^^^^^^^^^^^^^^^^^^^^ open-webui | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/orm/query.py", line 2673, in all open-webui | return self._iter().all() # type: ignore open-webui | ^^^^^^^^^^^^ open-webui | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/orm/query.py", line 2827, in _iter open-webui | result: Union[ScalarResult[_T], Result[_T]] = self.session.execute( open-webui | ^^^^^^^^^^^^^^^^^^^^^ open-webui | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/orm/session.py", line 2362, in execute open-webui | return self._execute_internal( open-webui | ^^^^^^^^^^^^^^^^^^^^^^^ open-webui | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/orm/session.py", line 2247, in _execute_internal open-webui | result: Result[Any] = compile_state_cls.orm_execute_statement( open-webui | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ open-webui | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/orm/context.py", line 293, in orm_execute_statement open-webui | result = conn.execute( open-webui | ^^^^^^^^^^^^^ open-webui | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 1418, in execute open-webui | return meth( open-webui | ^^^^^ open-webui | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/sql/elements.py", line 515, in _execute_on_connection open-webui | return connection._execute_clauseelement( open-webui | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ open-webui | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 1640, in _execute_clauseelement open-webui | ret = self._execute_context( open-webui | ^^^^^^^^^^^^^^^^^^^^^^ open-webui | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 1846, in _execute_context open-webui | return self._exec_single_context( open-webui | ^^^^^^^^^^^^^^^^^^^^^^^^^^ open-webui | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 1986, in _exec_single_context open-webui | self._handle_dbapi_exception( open-webui | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 2355, in _handle_dbapi_exception open-webui | raise sqlalchemy_exception.with_traceback(exc_info[2]) from e open-webui | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 1967, in _exec_single_context open-webui | self.dialect.do_execute( open-webui | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/engine/default.py", line 941, in do_execute open-webui | cursor.execute(statement, parameters) open-webui | sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) database is locked open-webui | [SQL: SELECT prompt.command AS prompt_command, prompt.user_id AS prompt_user_id, prompt.title AS prompt_title, prompt.content AS prompt_content, prompt.timestamp AS prompt_timestamp open-webui | FROM prompt] open-webui | (Background on this error at: https://sqlalche.me/e/20/e3q8) open-webui | INFO: ***.***.*.**:52224 - "GET /api/v1/chats/all/tags HTTP/1.1" 200 OK open-webui | INFO: 172.18.0.1:0 - "GET / HTTP/1.1" 200 OK open-webui | INFO: 172.18.0.1:0 - "GET / HTTP/1.1" 200 OK open-webui | INFO: 172.18.0.1:0 - "GET / HTTP/1.1" 200 OK ``` **Note** Before the update it was better, but also unstable. More often than not I got kicked out of session, had to restart docker. I read this issue countless times in the GitHub here so I decided to scratch the install and re-install, which then updated to last version and rendered the application completely useless at this point due to above :( I hope there is a solution to this.
Author
Owner

@jeremykei commented on GitHub (Nov 8, 2024):

https://github.com/open-webui/open-webui/discussions/5733

@jeremykei commented on GitHub (Nov 8, 2024): https://github.com/open-webui/open-webui/discussions/5733
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#2598