Originally created by @i0ntempest on GitHub (Nov 29, 2024).
# Bug Report
## Installation Method
pip with venv
## Environment
- **Open WebUI Version:** 0.4.6
- **Ollama (if applicable):** 0.4.6
- **Operating System:** macOS 15.0.2
- **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.
- [ ] I have included the browser console logs.
- [ ] 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:
WebUI port is configurable per official guide
## Actual Behavior:
It is hardcoded in `__init__.py`
## Description
**Bug Summary:**
Setting env var `PORT` does not change WebUI port
## Reproduction Details
**Steps to Reproduce:**
Follow the [official guide](https://docs.openwebui.com/getting-started/advanced-topics/env-configuration#port) to set the environment variable `PORT=38080` and run `open-webui serve`. The webui port stays on 8080.
## Logs and Screenshots
**Browser Console Logs:**
N/A
**Docker Container Logs:**
N/A
**Screenshots/Screen Recordings (if applicable):**
N/A
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @i0ntempest on GitHub (Nov 29, 2024).
Bug Report
Installation Method
pip with venv
Environment
Open WebUI Version: 0.4.6
Ollama (if applicable): 0.4.6
Operating System: macOS 15.0.2
Browser (if applicable): N/A
Confirmation:
Expected Behavior:
WebUI port is configurable per official guide
Actual Behavior:
It is hardcoded in
__init__.pyDescription
Bug Summary:
Setting env var
PORTdoes not change WebUI portReproduction Details
Steps to Reproduce:
Follow the official guide to set the environment variable
PORT=38080and runopen-webui serve. The webui port stays on 8080.Logs and Screenshots
Browser Console Logs:
N/A
Docker Container Logs:
N/A
Screenshots/Screen Recordings (if applicable):
N/A