[GH-ISSUE #5635] Docker bootloop: ModuleNotFoundError: No module named 'custom_st' #29590

Closed
opened 2026-04-25 03:57:07 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @chadgauth on GitHub (Sep 23, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/5635

Bug Report

Installation Method

Docker

Environment

  • Open WebUI Version: v0.3.23

  • Ollama (if applicable): n/a

  • Operating System: Windows 11 Docker

  • Browser (if applicable): n/a

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:

Boots up okay

Actual Behavior:

Get's stuck in a boot loop

Description

Bug Summary:
App gets stuck in a boot loop

Reproduction Details

Steps to Reproduce:
[Outline the steps to reproduce the bug. Be as detailed as possible.]
Not sure exactly what caused it. Was trying to modify my embeddings provider through the UI. Might have saved with a blank option for sentance embeddings, it now will not boot.

Logs and Screenshots

Browser Console Logs:
[Include relevant browser console logs, if applicable]

Docker Container Logs:

2024-09-23 09:30:21 WARNI [sentence_transformers.SentenceTransformer] You try to use a model that was created with version 3.1.0, however, your version is 3.0.1. This might cause unexpected behavior or errors. In that case, try to update to the latest version.
2024-09-23 09:30:21 
2024-09-23 09:30:21 
2024-09-23 09:30:21 
2024-09-23 09:30:21 Traceback (most recent call last):
2024-09-23 09:30:21   File "/usr/local/bin/uvicorn", line 8, in <module>
2024-09-23 09:30:21     sys.exit(main())
2024-09-23 09:30:21              ^^^^^^
2024-09-23 09:30:21   File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1157, in __call__
2024-09-23 09:30:21     return self.main(*args, **kwargs)
2024-09-23 09:30:21            ^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-09-23 09:30:21   File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1078, in main
2024-09-23 09:30:21     rv = self.invoke(ctx)
2024-09-23 09:30:21          ^^^^^^^^^^^^^^^^
2024-09-23 09:30:21   File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1434, in invoke
2024-09-23 09:30:21     return ctx.invoke(self.callback, **ctx.params)
2024-09-23 09:30:21            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-09-23 09:30:21   File "/usr/local/lib/python3.11/site-packages/click/core.py", line 783, in invoke
2024-09-23 09:30:21     return __callback(*args, **kwargs)
2024-09-23 09:30:21            ^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-09-23 09:30:21   File "/usr/local/lib/python3.11/site-packages/uvicorn/main.py", line 410, in main
2024-09-23 09:30:21     run(
2024-09-23 09:30:21   File "/usr/local/lib/python3.11/site-packages/uvicorn/main.py", line 577, in run
2024-09-23 09:30:21     server.run()
2024-09-23 09:30:21   File "/usr/local/lib/python3.11/site-packages/uvicorn/server.py", line 65, in run
2024-09-23 09:30:21     return asyncio.run(self.serve(sockets=sockets))
2024-09-23 09:30:21            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-09-23 09:30:21   File "/usr/local/lib/python3.11/asyncio/runners.py", line 190, in run
2024-09-23 09:30:21     return runner.run(main)
2024-09-23 09:30:21            ^^^^^^^^^^^^^^^^
2024-09-23 09:30:21   File "/usr/local/lib/python3.11/asyncio/runners.py", line 118, in run
2024-09-23 09:30:21     return self._loop.run_until_complete(task)
2024-09-23 09:30:21            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-09-23 09:30:21   File "uvloop/loop.pyx", line 1517, in uvloop.loop.Loop.run_until_complete
2024-09-23 09:30:21   File "/usr/local/lib/python3.11/site-packages/uvicorn/server.py", line 69, in serve
2024-09-23 09:30:21     await self._serve(sockets)
2024-09-23 09:30:21   File "/usr/local/lib/python3.11/site-packages/uvicorn/server.py", line 76, in _serve
2024-09-23 09:30:21     config.load()
2024-09-23 09:30:21   File "/usr/local/lib/python3.11/site-packages/uvicorn/config.py", line 434, in load
2024-09-23 09:30:21     self.loaded_app = import_from_string(self.app)
2024-09-23 09:30:21                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-09-23 09:30:21   File "/usr/local/lib/python3.11/site-packages/uvicorn/importer.py", line 22, in import_from_string
2024-09-23 09:30:21     raise exc from None
2024-09-23 09:30:21   File "/usr/local/lib/python3.11/site-packages/uvicorn/importer.py", line 19, in import_from_string
2024-09-23 09:30:21     module = importlib.import_module(module_str)
2024-09-23 09:30:21              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-09-23 09:30:21   File "/usr/local/lib/python3.11/importlib/__init__.py", line 126, in import_module
2024-09-23 09:30:21     return _bootstrap._gcd_import(name[level:], package, level)
2024-09-23 09:30:21            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-09-23 09:30:21   File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
2024-09-23 09:30:21   File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
2024-09-23 09:30:21   File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
2024-09-23 09:30:21   File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
2024-09-23 09:30:21   File "<frozen importlib._bootstrap_external>", line 940, in exec_module
2024-09-23 09:30:21   File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
2024-09-23 09:30:21   File "/app/backend/open_webui/main.py", line 32, in <module>
2024-09-23 09:30:21     from open_webui.apps.rag.main import app as rag_app
2024-09-23 09:30:21   File "/app/backend/open_webui/apps/rag/main.py", line 305, in <module>
2024-09-23 09:30:21     update_embedding_model(
2024-09-23 09:30:21   File "/app/backend/open_webui/apps/rag/main.py", line 188, in update_embedding_model
2024-09-23 09:30:21     app.state.sentence_transformer_ef = sentence_transformers.SentenceTransformer(
2024-09-23 09:30:21                                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-09-23 09:30:21   File "/usr/local/lib/python3.11/site-packages/sentence_transformers/SentenceTransformer.py", line 287, in __init__
2024-09-23 09:30:21     modules = self._load_sbert_model(
2024-09-23 09:30:21               ^^^^^^^^^^^^^^^^^^^^^^^
2024-09-23 09:30:21   File "/usr/local/lib/python3.11/site-packages/sentence_transformers/SentenceTransformer.py", line 1426, in _load_sbert_model
2024-09-23 09:30:21     module_class = import_from_string(module_config["type"])
2024-09-23 09:30:21                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-09-23 09:30:21   File "/usr/local/lib/python3.11/site-packages/sentence_transformers/util.py", line 620, in import_from_string
2024-09-23 09:30:21     module = importlib.import_module(module_path)
2024-09-23 09:30:21              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-09-23 09:30:21   File "/usr/local/lib/python3.11/importlib/__init__.py", line 126, in import_module
2024-09-23 09:30:21     return _bootstrap._gcd_import(name[level:], package, level)
2024-09-23 09:30:21            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-09-23 09:30:21 ModuleNotFoundError: No module named 'custom_st'

Screenshots/Screen Recordings (if applicable):

Additional Information

Anything helpful to shell into this or change the config manually may unblock me, willing to work on this issue too by digging into the source and perhaps handling this error but not sure how I could reproduce besides just trying to run this with a try/catch to skip this step if a failure occurs.

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 @chadgauth on GitHub (Sep 23, 2024). Original GitHub issue: https://github.com/open-webui/open-webui/issues/5635 # Bug Report ## Installation Method Docker ## Environment - **Open WebUI Version:** v0.3.23 - **Ollama (if applicable):** n/a - **Operating System:** Windows 11 Docker - **Browser (if applicable):** n/a **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: Boots up okay ## Actual Behavior: Get's stuck in a boot loop ## Description **Bug Summary:** App gets stuck in a boot loop ## Reproduction Details **Steps to Reproduce:** [Outline the steps to reproduce the bug. Be as detailed as possible.] Not sure exactly what caused it. Was trying to modify my embeddings provider through the UI. Might have saved with a blank option for sentance embeddings, it now will not boot. ## Logs and Screenshots **Browser Console Logs:** [Include relevant browser console logs, if applicable] **Docker Container Logs:** ``` 2024-09-23 09:30:21 WARNI [sentence_transformers.SentenceTransformer] You try to use a model that was created with version 3.1.0, however, your version is 3.0.1. This might cause unexpected behavior or errors. In that case, try to update to the latest version. 2024-09-23 09:30:21 2024-09-23 09:30:21 2024-09-23 09:30:21 2024-09-23 09:30:21 Traceback (most recent call last): 2024-09-23 09:30:21 File "/usr/local/bin/uvicorn", line 8, in <module> 2024-09-23 09:30:21 sys.exit(main()) 2024-09-23 09:30:21 ^^^^^^ 2024-09-23 09:30:21 File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1157, in __call__ 2024-09-23 09:30:21 return self.main(*args, **kwargs) 2024-09-23 09:30:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^ 2024-09-23 09:30:21 File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1078, in main 2024-09-23 09:30:21 rv = self.invoke(ctx) 2024-09-23 09:30:21 ^^^^^^^^^^^^^^^^ 2024-09-23 09:30:21 File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1434, in invoke 2024-09-23 09:30:21 return ctx.invoke(self.callback, **ctx.params) 2024-09-23 09:30:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2024-09-23 09:30:21 File "/usr/local/lib/python3.11/site-packages/click/core.py", line 783, in invoke 2024-09-23 09:30:21 return __callback(*args, **kwargs) 2024-09-23 09:30:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2024-09-23 09:30:21 File "/usr/local/lib/python3.11/site-packages/uvicorn/main.py", line 410, in main 2024-09-23 09:30:21 run( 2024-09-23 09:30:21 File "/usr/local/lib/python3.11/site-packages/uvicorn/main.py", line 577, in run 2024-09-23 09:30:21 server.run() 2024-09-23 09:30:21 File "/usr/local/lib/python3.11/site-packages/uvicorn/server.py", line 65, in run 2024-09-23 09:30:21 return asyncio.run(self.serve(sockets=sockets)) 2024-09-23 09:30:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2024-09-23 09:30:21 File "/usr/local/lib/python3.11/asyncio/runners.py", line 190, in run 2024-09-23 09:30:21 return runner.run(main) 2024-09-23 09:30:21 ^^^^^^^^^^^^^^^^ 2024-09-23 09:30:21 File "/usr/local/lib/python3.11/asyncio/runners.py", line 118, in run 2024-09-23 09:30:21 return self._loop.run_until_complete(task) 2024-09-23 09:30:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2024-09-23 09:30:21 File "uvloop/loop.pyx", line 1517, in uvloop.loop.Loop.run_until_complete 2024-09-23 09:30:21 File "/usr/local/lib/python3.11/site-packages/uvicorn/server.py", line 69, in serve 2024-09-23 09:30:21 await self._serve(sockets) 2024-09-23 09:30:21 File "/usr/local/lib/python3.11/site-packages/uvicorn/server.py", line 76, in _serve 2024-09-23 09:30:21 config.load() 2024-09-23 09:30:21 File "/usr/local/lib/python3.11/site-packages/uvicorn/config.py", line 434, in load 2024-09-23 09:30:21 self.loaded_app = import_from_string(self.app) 2024-09-23 09:30:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2024-09-23 09:30:21 File "/usr/local/lib/python3.11/site-packages/uvicorn/importer.py", line 22, in import_from_string 2024-09-23 09:30:21 raise exc from None 2024-09-23 09:30:21 File "/usr/local/lib/python3.11/site-packages/uvicorn/importer.py", line 19, in import_from_string 2024-09-23 09:30:21 module = importlib.import_module(module_str) 2024-09-23 09:30:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2024-09-23 09:30:21 File "/usr/local/lib/python3.11/importlib/__init__.py", line 126, in import_module 2024-09-23 09:30:21 return _bootstrap._gcd_import(name[level:], package, level) 2024-09-23 09:30:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2024-09-23 09:30:21 File "<frozen importlib._bootstrap>", line 1204, in _gcd_import 2024-09-23 09:30:21 File "<frozen importlib._bootstrap>", line 1176, in _find_and_load 2024-09-23 09:30:21 File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked 2024-09-23 09:30:21 File "<frozen importlib._bootstrap>", line 690, in _load_unlocked 2024-09-23 09:30:21 File "<frozen importlib._bootstrap_external>", line 940, in exec_module 2024-09-23 09:30:21 File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed 2024-09-23 09:30:21 File "/app/backend/open_webui/main.py", line 32, in <module> 2024-09-23 09:30:21 from open_webui.apps.rag.main import app as rag_app 2024-09-23 09:30:21 File "/app/backend/open_webui/apps/rag/main.py", line 305, in <module> 2024-09-23 09:30:21 update_embedding_model( 2024-09-23 09:30:21 File "/app/backend/open_webui/apps/rag/main.py", line 188, in update_embedding_model 2024-09-23 09:30:21 app.state.sentence_transformer_ef = sentence_transformers.SentenceTransformer( 2024-09-23 09:30:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2024-09-23 09:30:21 File "/usr/local/lib/python3.11/site-packages/sentence_transformers/SentenceTransformer.py", line 287, in __init__ 2024-09-23 09:30:21 modules = self._load_sbert_model( 2024-09-23 09:30:21 ^^^^^^^^^^^^^^^^^^^^^^^ 2024-09-23 09:30:21 File "/usr/local/lib/python3.11/site-packages/sentence_transformers/SentenceTransformer.py", line 1426, in _load_sbert_model 2024-09-23 09:30:21 module_class = import_from_string(module_config["type"]) 2024-09-23 09:30:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2024-09-23 09:30:21 File "/usr/local/lib/python3.11/site-packages/sentence_transformers/util.py", line 620, in import_from_string 2024-09-23 09:30:21 module = importlib.import_module(module_path) 2024-09-23 09:30:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2024-09-23 09:30:21 File "/usr/local/lib/python3.11/importlib/__init__.py", line 126, in import_module 2024-09-23 09:30:21 return _bootstrap._gcd_import(name[level:], package, level) 2024-09-23 09:30:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2024-09-23 09:30:21 ModuleNotFoundError: No module named 'custom_st' ``` **Screenshots/Screen Recordings (if applicable):** -- ## Additional Information Anything helpful to shell into this or change the config manually may unblock me, willing to work on this issue too by digging into the source and perhaps handling this error but not sure how I could reproduce besides just trying to run this with a try/catch to skip this step if a failure occurs. ## 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#29590