docker run open-webui:cuda error #1926

Closed
opened 2025-11-11 14:56:40 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @SunMacArenas on GitHub (Aug 29, 2024).

Bug Report

Installation Method

docker

Environment

  • **Open WebUI Version:openwebui:cuda v0.3.16
  • **Ollama (if applicable):v0.38
    ubuntu 24.04
    NVIDIA-SMI 560.35.03 Driver Version: 560.35.03 CUDA Version: 12.6
    docker run -d -p 18080:8080 --gpus all --network=myNet --ip=172.10.1.4 -v /mnt/docker/open-webui:/app/backend/data -e OLLAMA_BASE_URL=http://172.10.1.3:11434 --name open-webui --restart always ghcr.io/open-webui/open-webui:cuda
    docker logs:
    Loading WEBUI_SECRET_KEY from file, not provided as an environment variable.
    Generating WEBUI_SECRET_KEY
    Loading WEBUI_SECRET_KEY from .webui_secret_key
    CUDA is enabled, appending LD_LIBRARY_PATH to include torch/cudnn & cublas libraries.
    Failed to initialize the database connection: database is locked
    /app
    Traceback (most recent call last):
    File "/usr/local/lib/python3.11/site-packages/peewee.py", line 3322, in execute_sql
    cursor.execute(sql, params or ())
    sqlite3.OperationalError: database is locked
    During handling of the above exception, another exception occurred:
    Traceback (most recent call last):
    File "/usr/local/bin/uvicorn", line 8, in
    sys.exit(main())
    ^^^^^^
    File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1157, in call
    return self.main(*args, **kwargs)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
    ^^^^^^^^^^^^^^^^
    File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

it seems like can not open webui.db

Note

If the bug report is incomplete or does not follow the provided instructions, it may not be addressed. Please ensure that you have followed the steps outlined in the README.md and troubleshooting.md documents, and provide all necessary information for us to reproduce and address the issue. Thank you!

Originally created by @SunMacArenas on GitHub (Aug 29, 2024). # Bug Report ## Installation Method docker ## Environment - **Open WebUI Version:openwebui:cuda v0.3.16 - **Ollama (if applicable):v0.38 ubuntu 24.04 NVIDIA-SMI 560.35.03 Driver Version: 560.35.03 CUDA Version: 12.6 docker run -d -p 18080:8080 --gpus all --network=myNet --ip=172.10.1.4 -v /mnt/docker/open-webui:/app/backend/data -e OLLAMA_BASE_URL=http://172.10.1.3:11434 --name open-webui --restart always ghcr.io/open-webui/open-webui:cuda docker logs: Loading WEBUI_SECRET_KEY from file, not provided as an environment variable. Generating WEBUI_SECRET_KEY Loading WEBUI_SECRET_KEY from .webui_secret_key CUDA is enabled, appending LD_LIBRARY_PATH to include torch/cudnn & cublas libraries. Failed to initialize the database connection: database is locked /app Traceback (most recent call last): File "/usr/local/lib/python3.11/site-packages/peewee.py", line 3322, in execute_sql cursor.execute(sql, params or ()) sqlite3.OperationalError: database is locked During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/bin/uvicorn", line 8, in <module> sys.exit(main()) ^^^^^^ File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1157, in __call__ return self.main(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1078, in main rv = self.invoke(ctx) ^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1434, in invoke return ctx.invoke(self.callback, **ctx.params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ * it seems like can not open webui.db ## Note If the bug report is incomplete or does not follow the provided instructions, it may not be addressed. Please ensure that you have followed the steps outlined in the README.md and troubleshooting.md documents, and provide all necessary information for us to reproduce and address the issue. Thank you!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#1926