mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-11 16:35:32 -05:00
bug: --build doesn't work when you're trying to build an app #2454
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Tweeeks on GitHub (Oct 25, 2024).
Bug Report
Installation Method
docker compose up -d --build
Environment
Open WebUI Version: [v0.3.33]
Ollama (if applicable): [e.g., v0.2.0, v0.1.32-rc1]
Operating System: [Ubuntu 22.04]
Browser (if applicable): [ Firefox 98.0]
Confirmation:
Expected Behavior:
After executing command "docker compose up -d --build" I expect the application to start on port 3000
Actual Behavior:
After executing command "docker compose up -d --build" the container "open-webui" restarts in a loop
Description
Bug Summary:
Something wrong with 'RAG_EMBEDDING_OPENAI_BATCH_SIZE' (/app/backend/open_webui/config.py)
Reproduction Details
Steps to Reproduce:
git clone https://github.com/open-webui/open-webui.git
then docker compose up -d --build
Logs and Screenshots
Browser Console Logs:
The connection was reset
The connection to the server was reset while the page was loading.
Docker Container Logs:
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 | WARNI [open_webui.env]
open-webui |
open-webui | WARNING: CORS_ALLOW_ORIGIN IS SET TO '*' - NOT RECOMMENDED FOR PRODUCTION DEPLOYMENTS.
open-webui |
open-webui | WARNI [langchain_community.utils.user_agent] USER_AGENT environment variable not set, consider setting it to identify your requests.
open-webui | Traceback (most recent call last):
open-webui | Error: Can't locate revision identified by '4ace53fd72c8'
open-webui | File "/usr/local/bin/uvicorn", line 8, in
open-webui | sys.exit(main())
open-webui | ^^^^^^
open-webui | File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1157, in call
open-webui | return self.main(*args, **kwargs)
open-webui | ^^^^^^^^^^^^^^^^^^^^^^^^^^
open-webui | File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1078, in main
open-webui | rv = self.invoke(ctx)
open-webui | ^^^^^^^^^^^^^^^^
open-webui | File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1434, in invoke
open-webui | return ctx.invoke(self.callback, **ctx.params)
open-webui | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
open-webui | File "/usr/local/lib/python3.11/site-packages/click/core.py", line 783, in invoke
open-webui | return __callback(*args, **kwargs)
open-webui | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
open-webui | File "/usr/local/lib/python3.11/site-packages/uvicorn/main.py", line 410, in main
open-webui | run(
open-webui | File "/usr/local/lib/python3.11/site-packages/uvicorn/main.py", line 577, in run
open-webui | server.run()
open-webui | File "/usr/local/lib/python3.11/site-packages/uvicorn/server.py", line 65, in run
open-webui | return asyncio.run(self.serve(sockets=sockets))
open-webui | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
open-webui | File "/usr/local/lib/python3.11/asyncio/runners.py", line 190, in run
open-webui | return runner.run(main)
open-webui | ^^^^^^^^^^^^^^^^
open-webui | File "/usr/local/lib/python3.11/asyncio/runners.py", line 118, in run
open-webui | return self._loop.run_until_complete(task)
open-webui | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
open-webui | File "uvloop/loop.pyx", line 1518, in uvloop.loop.Loop.run_until_complete
open-webui | File "/usr/local/lib/python3.11/site-packages/uvicorn/server.py", line 69, in serve
open-webui | await self._serve(sockets)
open-webui | File "/usr/local/lib/python3.11/site-packages/uvicorn/server.py", line 76, in _serve
open-webui | config.load()
open-webui | File "/usr/local/lib/python3.11/site-packages/uvicorn/config.py", line 434, in load
open-webui | self.loaded_app = import_from_string(self.app)
open-webui | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
open-webui | File "/usr/local/lib/python3.11/site-packages/uvicorn/importer.py", line 19, in import_from_string
open-webui | module = importlib.import_module(module_str)
open-webui | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
open-webui | File "/usr/local/lib/python3.11/importlib/init.py", line 126, in import_module
open-webui | return _bootstrap._gcd_import(name[level:], package, level)
open-webui | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
open-webui | File "", line 1204, in _gcd_import
open-webui | File "", line 1176, in _find_and_load
open-webui | File "", line 1147, in _find_and_load_unlocked
open-webui | File "", line 690, in _load_unlocked
open-webui | File "", line 940, in exec_module
open-webui | File "", line 241, in _call_with_frames_removed
open-webui | File "/app/backend/open_webui/main.py", line 32, in
open-webui | from open_webui.apps.retrieval.main import app as retrieval_app
open-webui | File "/app/backend/open_webui/apps/retrieval/main.py", line 48, in
open-webui | from open_webui.config import (
open-webui | ImportError: cannot import name 'RAG_EMBEDDING_OPENAI_BATCH_SIZE' from 'open_webui.config' (/app/backend/open_webui/config.py)
Screenshots/Screen Recordings (if applicable):
Additional Information
docker-compose.yaml:
services:
ollama:
volumes:
- ollama:/root/.ollama
container_name: ollama
pull_policy: always
tty: true
restart: unless-stopped
image: ollama/ollama:${OLLAMA_DOCKER_TAG-latest}
open-webui:
build:
context: .
args:
OLLAMA_BASE_URL: '/ollama'
dockerfile: Dockerfile
image: ghcr.io/open-webui/open-webui:${WEBUI_DOCKER_TAG-main}
container_name: open-webui
volumes:
- open-webui:/app/backend/data
- ./src/lib/i18n/locales/uk-UA/translation.json:/app/src/lib/i18n/locales/uk-UA/translation.json
- ./static/favicon.png:/app/static/favicon.png
depends_on:
- ollama
ports:
- ${OPEN_WEBUI_PORT-3000}:8080
environment:
- 'OLLAMA_BASE_URL=http://ollama:11434'
- 'WEBUI_SECRET_KEY='
- 'GLOBAL_LOG_LEVEL=WARNING'
extra_hosts:
- host.docker.internal:host-gateway
restart: unless-stopped
volumes:
ollama: {}
open-webui: {}
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!