Originally created by @AeneasZhu on GitHub (Aug 28, 2024). Original GitHub issue: https://github.com/open-webui/open-webui/issues/4980
After I upgraded open-webui to 0.3.16 via pip, it failed to run again by showing
┌────────────────────────────────────────────────────── Traceback (most recent call last) ──────────────────────────────────────────────────────┐ │ E:\neuro\123\venv\Lib\site-packages\sqlalchemy\engine\base.py:1967 in _exec_single_context │ │ │ │ 1964 │ │ │ │ │ │ │ evt_handled = True │ │ 1965 │ │ │ │ │ │ │ break │ │ 1966 │ │ │ │ if not evt_handled: │ │ > 1967 │ │ │ │ │ self.dialect.do_execute( │ │ 1968 │ │ │ │ │ │ cursor, str_statement, effective_parameters, context │ │ 1969 │ │ │ │ │ ) │ │ 1970 │ │ │ │ ┌───────────────────────────────────────────────────── locals ─────────────────────────────────────────────────────┐ │ │ │ context = <sqlalchemy.dialects.sqlite.base.SQLiteExecutionContext object at 0x000002253A930690> │ │ │ │ cursor = <sqlite3.Cursor object at 0x000002253AED6540> │ │ │ │ dialect = <sqlalchemy.dialects.sqlite.pysqlite.SQLiteDialect_pysqlite object at 0x000002250A7926D0> │ │ │ │ effective_parameters = (1, 0) │ │ │ │ evt_handled = False │ │ │ │ parameters = [(1, 0)] │ │ │ │ self = <sqlalchemy.engine.base.Connection object at 0x000002253AEB7190> │ │ │ │ statement = <sqlalchemy.dialects.sqlite.base.SQLiteCompiler object at 0x000002253A81AFD0> │ │ │ │ str_statement = 'SELECT config.id AS config_id, config.data AS config_data, config.version AS con'+146 │ │ │ └─���────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ │ │ │ │ E:\neuro\123\venv\Lib\site-packages\sqlalchemy\engine\default.py:941 in do_execute │ │ │ │ 938 │ │ cursor.executemany(statement, parameters) │ │ 939 │ │ │ 940 │ def do_execute(self, cursor, statement, parameters, context=None): │ │ > 941 │ │ cursor.execute(statement, parameters) │ │ 942 │ │ │ 943 │ def do_execute_no_params(self, cursor, statement, context=None): │ │ 944 │ │ cursor.execute(statement) │ │ │ │ ┌──────────────────────────────────────────────── locals ────────────────────────────────────────────────┐ │ │ │ context = <sqlalchemy.dialects.sqlite.base.SQLiteExecutionContext object at 0x000002253A930690> │ │ │ │ cursor = <sqlite3.Cursor object at 0x000002253AED6540> │ │ │ │ parameters = (1, 0) │ │ │ │ self = <sqlalchemy.dialects.sqlite.pysqlite.SQLiteDialect_pysqlite object at 0x000002250A7926D0> │ │ │ │ statement = 'SELECT config.id AS config_id, config.data AS config_data, config.version AS con'+146 │ │ │ └────────────────────────────────────────────────────────────────────────────────────────────────────────┘ │ └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ OperationalError: no such table: config The above exception was the direct cause of the following exception: ┌────────────────────────────────────────────────────── Traceback (most recent call last) ──────────────────────────────────────────────────────┐ │ E:\neuro\123\venv\Lib\site-packages\open_webui\__init__.py:43 in serve │ │ │ │ 40 │ │ │ │ "/usr/local/lib/python3.11/site-packages/nvidia/cudnn/lib", ┌───── locals ─────┐ │ │ 41 │ │ │ ] │ host = '0.0.0.0' │ │ │ 42 │ │ ) │ port = 8080 │ │ │ > 43 │ import main # we need set environment variables before importing main └──────────────────┘ │ │ 44 │ │ │ 45 │ uvicorn.run(main.app, host=host, port=port, forwarded_allow_ips="*") │ │ 46 │ │ │ │ E:\neuro\123\venv\Lib\site-packages\main.py:31 in <module> │ │ │ │ 28 │ │ 29 │ │ 30 from apps.socket.main import app as socket_app, get_event_emitter, get_event_call │ │ > 31 from apps.ollama.main import ( │ │ 32 │ app as ollama_app, │ │ 33 │ get_all_models as get_ollama_models, │ │ 34 │ generate_openai_chat_completion as generate_ollama_chat_completion, │ │ │ │ ┌────────────────────────────────────────────────────────── locals ──────────────────────────────────────────────────────────┐ │ │ │ aiohttp = <module 'aiohttp' from 'E:\\neuro\\123\\venv\\Lib\\site-packages\\aiohttp\\__init__.py'> │ │ │ │ asynccontextmanager = <function asynccontextmanager at 0x0000022502BBF920> │ │ │ │ base64 = <module 'base64' from 'E:\\neuro\\_python311\\Lib\\base64.py'> │ │ │ │ BaseHTTPMiddleware = <class 'starlette.middleware.base.BaseHTTPMiddleware'> │ │ │ │ CORSMiddleware = <class 'starlette.middleware.cors.CORSMiddleware'> │ │ │ │ Depends = <function Depends at 0x000002250828FF60> │ │ │ │ FastAPI = <class 'fastapi.applications.FastAPI'> │ │ │ │ File = <function File at 0x000002250828FEC0> │ │ │ │ Form = <function Form at 0x000002250828FE20> │ │ │ │ get_event_call = <function get_event_call at 0x000002250ABBF920> │ │ │ │ get_event_emitter = <function get_event_emitter at 0x000002250ABBF880> │ │ │ │ HTTPException = <class 'fastapi.exceptions.HTTPException'> │ │ │ │ inspect = <module 'inspect' from 'E:\\neuro\\_python311\\Lib\\inspect.py'> │ │ │ │ json = <module 'json' from 'E:\\neuro\\_python311\\Lib\\json\\__init__.py'> │ │ │ │ JSONResponse = <class 'starlette.responses.JSONResponse'> │ │ │ │ logging = <module 'logging' from 'E:\\neuro\\_python311\\Lib\\logging\\__init__.py'> │ │ │ │ mimetypes = <module 'mimetypes' from 'E:\\neuro\\_python311\\Lib\\mimetypes.py'> │ │ │ │ OAuth = <class 'authlib.integrations.starlette_client.OAuth'> │ │ │ │ Optional = typing.Optional │ │ │ │ os = <module 'os' (frozen)> │ │ │ │ RedirectResponse = <class 'starlette.responses.RedirectResponse'> │ │ │ │ Request = <class 'starlette.requests.Request'> │ │ │ │ requests = <module 'requests' from 'E:\\neuro\\123\\venv\\Lib\\site-packages\\requests\\__init__.py'> │ │ │ │ Response = <class 'starlette.responses.Response'> │ │ │ │ SessionMiddleware = <class 'starlette.middleware.sessions.SessionMiddleware'> │ │ │ │ shutil = <module 'shutil' from 'E:\\neuro\\_python311\\Lib\\shutil.py'> │ │ │ │ socket_app = <socketio.asgi.ASGIApp object at 0x00000225089D0810> │ │ │ │ StarletteHTTPException = <class 'starlette.exceptions.HTTPException'> │ │ │ │ StaticFiles = <class 'starlette.staticfiles.StaticFiles'> │ │ │ │ status = <module 'starlette.status' from 'E:\\neuro\\123\\venv\\Lib\\site-packages\\starlette\\status.py'> │ │ │ │ StreamingResponse = <class 'starlette.responses.StreamingResponse'> │ │ │ │ sys = <module 'sys' (built-in)> │ │ │ │ text = <function text at 0x000002250887F920> │ │ │ │ time = <module 'time' (built-in)> │ │ │ │ UploadFile = <class 'fastapi.datastructures.UploadFile'> │ │ │ │ UserInfo = <class 'authlib.oidc.core.claims.UserInfo'> │ │ │ │ uuid = <module 'uuid' from 'E:\\neuro\\_python311\\Lib\\uuid.py'> │ │ │ └────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ │ │ │ │ E:\neuro\123\venv\Lib\site-packages\apps\ollama\main.py:35 in <module> │ │ │ │ 32 │ get_admin_user, │ │ 33 ) │ │ 34 │ │ > 35 from config import ( │ │ 36 │ SRC_LOG_LEVELS, │ │ 37 │ OLLAMA_BASE_URLS, │ │ 38 │ ENABLE_OLLAMA_API, │ │ │ │ ┌──────────────────────────────────────────────────── locals ────────────────────────────────────────────────────┐ │ │ │ aiohttp = <module 'aiohttp' from 'E:\\neuro\\123\\venv\\Lib\\site-packages\\aiohttp\\__init__.py'> │ │ │ │ asyncio = <module 'asyncio' from 'E:\\neuro\\_python311\\Lib\\asyncio\\__init__.py'> │ │ │ │ BackgroundTask = <class 'starlette.background.BackgroundTask'> │ │ │ │ BaseModel = <class 'pydantic.main.BaseModel'> │ │ │ │ ConfigDict = <class 'pydantic.config.ConfigDict'> │ │ │ │ CORSMiddleware = <class 'starlette.middleware.cors.CORSMiddleware'> │ │ │ │ Depends = <function Depends at 0x000002250828FF60> │ │ │ │ ERROR_MESSAGES = <enum 'ERROR_MESSAGES'> │ │ │ │ FastAPI = <class 'fastapi.applications.FastAPI'> │ │ │ │ File = <function File at 0x000002250828FEC0> │ │ │ │ get_admin_user = <function get_admin_user at 0x000002250ABBF560> │ │ │ │ get_verified_user = <function get_verified_user at 0x000002250ABBF4C0> │ │ │ │ HTTPException = <class 'fastapi.exceptions.HTTPException'> │ │ │ │ json = <module 'json' from 'E:\\neuro\\_python311\\Lib\\json\\__init__.py'> │ │ │ │ logging = <module 'logging' from 'E:\\neuro\\_python311\\Lib\\logging\\__init__.py'> │ │ │ │ Models = <apps.webui.models.models.ModelsTable object at 0x000002250AC09F90> │ │ │ │ Optional = typing.Optional │ │ │ │ os = <module 'os' (frozen)> │ │ │ │ random = <module 'random' from 'E:\\neuro\\_python311\\Lib\\random.py'> │ │ │ │ re = <module 're' from 'E:\\neuro\\_python311\\Lib\\re\\__init__.py'> │ │ │ │ Request = <class 'starlette.requests.Request'> │ │ │ │ requests = <module 'requests' from 'E:\\neuro\\123\\venv\\Lib\\site-packages\\requests\\__init__.py'> │ │ │ │ StreamingResponse = <class 'starlette.responses.StreamingResponse'> │ │ │ │ time = <module 'time' (built-in)> │ │ │ │ Union = typing.Union │ │ │ │ UploadFile = <class 'fastapi.datastructures.UploadFile'> │ │ │ │ urlparse = <function urlparse at 0x0000022502EFDB20> │ │ │ └────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ │ │ │ │ E:\neuro\123\venv\Lib\site-packages\config.py:189 in <module> │ │ │ │ 186 │ │ return config_entry.data if config_entry else DEFAULT_CONFIG │ │ 187 │ │ 188 │ │ > 189 CONFIG_DATA = get_config() │ │ 190 │ │ 191 │ │ 192 def get_config_value(config_path: str): │ │ │ │ ┌───────────────────────────────────────────────────────────────── locals ──────────────────────────────────────────────────────────────────┐ │ │ │ BACKEND_DIR = WindowsPath('E:/neuro/123/venv/Lib/site-packages') │ │ │ │ Base = <class 'sqlalchemy.orm.decl_api.Base'> │ │ ...... ...... ...... OperationalError: (sqlite3.OperationalError) no such table: config [SQL: SELECT config.id AS config_id, config.data AS config_data, config.version AS config_version, config.created_at AS config_created_at, config.updated_at AS config_updated_at FROM config ORDER BY config.id DESC LIMIT ? OFFSET ?] [parameters: (1, 0)] (Background on this error at: https://sqlalche.me/e/20/e3q8)
Here is the log from https://github.com/open-webui/open-webui/issues/4968
Since I have degraded it to v0.3.15, I just copied the log as same as mine from another issue.
Will it be fixed soon? @tjbck
@tjbck commented on GitHub (Aug 28, 2024):
Please do not create duplicate issues. #4964
No dependencies set.
The note is not visible to the blocked user.
Originally created by @AeneasZhu on GitHub (Aug 28, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/4980
After I upgraded open-webui to 0.3.16 via pip, it failed to run again by showing
Here is the log from https://github.com/open-webui/open-webui/issues/4968
Since I have degraded it to v0.3.15, I just copied the log as same as mine from another issue.
Will it be fixed soon? @tjbck
@tjbck commented on GitHub (Aug 28, 2024):
Please do not create duplicate issues. #4964