Open WebUI - Error 500 after running the update script. #1066

Closed
opened 2026-02-04 22:52:07 +03:00 by OVERLORD · 3 comments
Owner

Originally created by @gehhack on GitHub (Jun 4, 2025).

Have you read and understood the above guidelines?

yes

📜 What is the name of the script you are using?

Open WebUI

📂 What was the exact command used to execute the script?

bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/openwebui.sh)"

⚙️ What settings are you using?

  • Default Settings
  • Advanced Settings

🖥️ Which Linux distribution are you using?

Debian 12

📝 Provide a clear and concise description of the issue.

I ran the script in my container (CT).
The script detected a new version (from v0.6.11 to v0.6.13).
There were no errors in the console, but I got an HTTP 500 error.
It looks like the error occurs after the container reboots.

🔄 Steps to reproduce the issue.

Step 1: I ran the script in my container (CT).
Step 2: I rebooted the container.
Step 3: I got an HTTP 500 error.

Paste the full error output (if available).

HTTP error 500

🖼️ Additional context (optional).

No response

Originally created by @gehhack on GitHub (Jun 4, 2025). ### ✅ Have you read and understood the above guidelines? yes ### 📜 What is the name of the script you are using? Open WebUI ### 📂 What was the exact command used to execute the script? bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/openwebui.sh)" ### ⚙️ What settings are you using? - [x] Default Settings - [ ] Advanced Settings ### 🖥️ Which Linux distribution are you using? Debian 12 ### 📝 Provide a clear and concise description of the issue. I ran the script in my container (CT). The script detected a new version (from v0.6.11 to v0.6.13). There were no errors in the console, but I got an HTTP 500 error. It looks like the error occurs after the container reboots. ### 🔄 Steps to reproduce the issue. Step 1: I ran the script in my container (CT). Step 2: I rebooted the container. Step 3: I got an HTTP 500 error. ### ❌ Paste the full error output (if available). HTTP error 500 ### 🖼️ Additional context (optional). _No response_
OVERLORD added the bug label 2026-02-04 22:52:07 +03:00
Author
Owner

@MickLesk commented on GitHub (Jun 4, 2025):

Systemctl Output?

@MickLesk commented on GitHub (Jun 4, 2025): Systemctl Output?
Author
Owner

@gehhack commented on GitHub (Jun 4, 2025):

Hello,

The end of the output from the script with verbose parameter :

`Updating Open WebUI (Patience)[vite-plugin-static-copy] Copied 2 items.
✓ built in 1m 16s

Run npm run preview to preview your production build locally.

Using @sveltejs/adapter-static
⠦ Updating Open WebUI (Patience) Wrote site to "build"
✔ done
⠹ Updating Open WebUI (Patience)error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
python3-xyz, where xyz is the package you are trying to
install.

If you wish to install a non-Debian-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
sure you have python3-full installed.

If you wish to install a non-Debian packaged Python application,
it may be easiest to use pipx install xyz, which will manage a
virtual environment for you. Make sure you have pipx installed.

See /usr/share/doc/python3.11/README.venv for more information.

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.
⠸ Updating Open WebUI (Patience)
[ERROR] in line 62: exit code 0: while executing command $STD pip install -r requirements.txt -U`

And the Systemctl Output :

`root@openwebui:# systemctl restart open-webui.service
root@openwebui:
# systemctl status open-webui.service
× open-webui.service - Open WebUI Service
Loaded: loaded (/etc/systemd/system/open-webui.service; enabled; preset: enabled)
Active: failed (Result: exit-code) since Wed 2025-06-04 18:02:09 CEST; 4s ago
Duration: 799ms
Process: 2377 ExecStart=/opt/open-webui/backend/start.sh (code=exited, status=1/FAILURE)
Main PID: 2377 (code=exited, status=1/FAILURE)
CPU: 805ms

Jun 04 18:02:09 openwebui start.sh[2377]: File "", line 1178, in _find_and_load
Jun 04 18:02:09 openwebui start.sh[2377]: File "", line 1149, in _find_and_load_unlocked
Jun 04 18:02:09 openwebui start.sh[2377]: File "", line 690, in _load_unlocked
Jun 04 18:02:09 openwebui start.sh[2377]: File "", line 940, in exec_module
Jun 04 18:02:09 openwebui start.sh[2377]: File "", line 241, in _call_with_frames_removed
Jun 04 18:02:09 openwebui start.sh[2377]: File "/opt/open-webui/backend/open_webui/main.py", line 43, in
Jun 04 18:02:09 openwebui start.sh[2377]: from starlette_compress import CompressMiddleware
Jun 04 18:02:09 openwebui start.sh[2377]: ModuleNotFoundError: No module named 'starlette_compress'
Jun 04 18:02:09 openwebui systemd[1]: open-webui.service: Main process exited, code=exited, status=1/FAILURE
Jun 04 18:02:09 openwebui systemd[1]: open-webui.service: Failed with result 'exit-code'.`

@gehhack commented on GitHub (Jun 4, 2025): Hello, The end of the output from the script with verbose parameter : `Updating Open WebUI (Patience)[vite-plugin-static-copy] Copied 2 items. ✓ built in 1m 16s Run npm run preview to preview your production build locally. > Using @sveltejs/adapter-static ⠦ Updating Open WebUI (Patience) Wrote site to "build" ✔ done ⠹ Updating Open WebUI (Patience)error: externally-managed-environment × This environment is externally managed ╰─> To install Python packages system-wide, try apt install python3-xyz, where xyz is the package you are trying to install. If you wish to install a non-Debian-packaged Python package, create a virtual environment using python3 -m venv path/to/venv. Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make sure you have python3-full installed. If you wish to install a non-Debian packaged Python application, it may be easiest to use pipx install xyz, which will manage a virtual environment for you. Make sure you have pipx installed. See /usr/share/doc/python3.11/README.venv for more information. note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages. hint: See PEP 668 for the detailed specification. ⠸ Updating Open WebUI (Patience) [ERROR] in line 62: exit code 0: while executing command $STD pip install -r requirements.txt -U` And the Systemctl Output : `root@openwebui:~# systemctl restart open-webui.service root@openwebui:~# systemctl status open-webui.service × open-webui.service - Open WebUI Service Loaded: loaded (/etc/systemd/system/open-webui.service; enabled; preset: enabled) Active: failed (Result: exit-code) since Wed 2025-06-04 18:02:09 CEST; 4s ago Duration: 799ms Process: 2377 ExecStart=/opt/open-webui/backend/start.sh (code=exited, status=1/FAILURE) Main PID: 2377 (code=exited, status=1/FAILURE) CPU: 805ms Jun 04 18:02:09 openwebui start.sh[2377]: File "<frozen importlib._bootstrap>", line 1178, in _find_and_load Jun 04 18:02:09 openwebui start.sh[2377]: File "<frozen importlib._bootstrap>", line 1149, in _find_and_load_unlocked Jun 04 18:02:09 openwebui start.sh[2377]: File "<frozen importlib._bootstrap>", line 690, in _load_unlocked Jun 04 18:02:09 openwebui start.sh[2377]: File "<frozen importlib._bootstrap_external>", line 940, in exec_module Jun 04 18:02:09 openwebui start.sh[2377]: File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed Jun 04 18:02:09 openwebui start.sh[2377]: File "/opt/open-webui/backend/open_webui/main.py", line 43, in <module> Jun 04 18:02:09 openwebui start.sh[2377]: from starlette_compress import CompressMiddleware Jun 04 18:02:09 openwebui start.sh[2377]: ModuleNotFoundError: No module named 'starlette_compress' Jun 04 18:02:09 openwebui systemd[1]: open-webui.service: Main process exited, code=exited, status=1/FAILURE Jun 04 18:02:09 openwebui systemd[1]: open-webui.service: Failed with result 'exit-code'.`
Author
Owner

@MickLesk commented on GitHub (Jun 4, 2025):

Thats an Python / Debian Thing

https://github.com/community-scripts/ProxmoxVE/discussions/555

Then modify in /opt the txt File (If exist) to an old Version and Update again

@MickLesk commented on GitHub (Jun 4, 2025): Thats an Python / Debian Thing https://github.com/community-scripts/ProxmoxVE/discussions/555 Then modify in /opt the txt File (If exist) to an old Version and Update again
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ProxmoxVE#1066