[GH-ISSUE #4865] pip install does not look at PORT env var #13764

Closed
opened 2026-04-19 20:23:06 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @kyllan16693 on GitHub (Aug 23, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/4865

Bug Report

Installation Method

pip

Environment

  • Open WebUI Version: v0.3.15

  • Operating System: Ubuntu 20.04

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 provided the exact steps to reproduce the bug in the "Steps to Reproduce" section below.

Expected Behavior:

The port OpenWebUI is on should change when the environment variable PORT is changed

Actual Behavior:

It stays with the default 8080

Description

Bug Summary:
The port does not change when the environment variable PORT is set.

Reproduction Details

Steps to Reproduce:
install with pip
pip install open-webui
set port variable
export PORT=8081
start
open-webui serve

Logs and Screenshots

INFO:     Uvicorn running on http://0.0.0.0:8080 (Press CTRL+C to quit)
$ echo $PORT
8081

Additional Information

I created a blank vm and just installed and set the PORT env var. Nothing special.

Originally created by @kyllan16693 on GitHub (Aug 23, 2024). Original GitHub issue: https://github.com/open-webui/open-webui/issues/4865 # Bug Report ## Installation Method pip ## Environment - **Open WebUI Version:** v0.3.15 - **Operating System:** Ubuntu 20.04 **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 provided the exact steps to reproduce the bug in the "Steps to Reproduce" section below. ## Expected Behavior: The port OpenWebUI is on should change when the environment variable `PORT` is changed ## Actual Behavior: It stays with the default 8080 ## Description **Bug Summary:** The port does not change when the environment variable `PORT` is set. ## Reproduction Details **Steps to Reproduce:** install with pip `pip install open-webui` set port variable `export PORT=8081` start `open-webui serve` ## Logs and Screenshots ``` INFO: Uvicorn running on http://0.0.0.0:8080 (Press CTRL+C to quit) $ echo $PORT 8081 ``` ## Additional Information I created a blank vm and just installed and set the `PORT` env var. Nothing special.
Author
Owner

@tjbck commented on GitHub (Aug 23, 2024):

it's --port 8081.

<!-- gh-comment-id:2307747891 --> @tjbck commented on GitHub (Aug 23, 2024): it's `--port 8081`.
Author
Owner

@kyllan16693 commented on GitHub (Aug 23, 2024):

Thank you!

Do you think this could be added to open-webui --help and the docs website?

<!-- gh-comment-id:2307762243 --> @kyllan16693 commented on GitHub (Aug 23, 2024): Thank you! Do you think this could be added to `open-webui --help` and the docs website?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#13764