[GH-ISSUE #10785] Proxy and logging settings do not take effects #16031

Closed
opened 2026-04-19 22:04:54 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @wbfan95 on GitHub (Feb 25, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/10785

Installation Method

The Open WebUI was installed using pip at a new virtual environment.

Environment

  • Open WebUI Version: 0.5.16

  • Ollama (if applicable): Not installed

  • Operating System: CentOS 7

  • Browser (if applicable): Chrome 133

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:

  1. Browse openai.com through an HTTP proxy. One must use a proxy to browse OpenAI from China mainland.
  2. Set logging level to "WARNING".

Actual Behavior:

The environment variables do not take effects:

export PORT=2428
export HTTP_PROXY="socks5h://localhost:1234"
export HTTPS_PROXY="socks5h://localhost:1234"
export GLOBAL_LOG_LEVEL="WARNING"
export LOG_LEVEL="WARNING"
export PYTHON_LOG_LEVEL="WARNING"

Description

Bug Summary:
Environment variables do not take effects.

Reproduction Details

Steps to Reproduce:

  1. Set these variables before running open-webui. -> Failed
  2. Set these variables in BASE_DIR/.env. -> Failed

Logs and Screenshots

HTTP requests are sent from aiohttp:

ERROR [open_webui.routers.openai] Client error: Cannot connect to host api.openai.com:443 ssl:default [Multiple exceptions: [Errno 110] Connect call failed ('108.160.167.30', 443), [Errno 110] Connect call failed ('2001::6ca0:a639', 443, 0, 0)]
Traceback (most recent call last):
  File "/public/apps/anaconda3/envs/openwebui/lib/python3.11/site-packages/aiohttp/connector.py", line 1115, in _wrap_create_connection
    sock = await aiohappyeyeballs.start_connection(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/public/apps/anaconda3/envs/openwebui/lib/python3.11/site-packages/aiohappyeyeballs/impl.py", line 112, in start_connection
    raise OSError(first_errno, msg)
TimeoutError: [Errno 110] Multiple exceptions: [Errno 110] Connect call failed ('108.160.167.30', 443), [Errno 110] Connect call failed ('2001::6ca0:a639', 443, 0, 0)

Browser Console Logs: NA

Docker Container Logs: NA

Screenshots/Screen Recordings (if applicable): No

Additional Information

Note

Originally created by @wbfan95 on GitHub (Feb 25, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/10785 ## Installation Method The Open WebUI was installed using pip at a new virtual environment. ## Environment - **Open WebUI Version:** 0.5.16 - **Ollama (if applicable):** Not installed - **Operating System:** CentOS 7 - **Browser (if applicable):** Chrome 133 **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: 1. Browse openai.com through an HTTP proxy. One must use a proxy to browse OpenAI from China mainland. 2. Set logging level to "WARNING". ## Actual Behavior: The environment variables do not take effects: ``` export PORT=2428 export HTTP_PROXY="socks5h://localhost:1234" export HTTPS_PROXY="socks5h://localhost:1234" export GLOBAL_LOG_LEVEL="WARNING" export LOG_LEVEL="WARNING" export PYTHON_LOG_LEVEL="WARNING" ``` ## Description **Bug Summary:** Environment variables do not take effects. ## Reproduction Details **Steps to Reproduce:** 1. Set these variables before running `open-webui`. -> Failed 2. Set these variables in `BASE_DIR/.env`. -> Failed ## Logs and Screenshots HTTP requests are sent from aiohttp: ```Python ERROR [open_webui.routers.openai] Client error: Cannot connect to host api.openai.com:443 ssl:default [Multiple exceptions: [Errno 110] Connect call failed ('108.160.167.30', 443), [Errno 110] Connect call failed ('2001::6ca0:a639', 443, 0, 0)] Traceback (most recent call last): File "/public/apps/anaconda3/envs/openwebui/lib/python3.11/site-packages/aiohttp/connector.py", line 1115, in _wrap_create_connection sock = await aiohappyeyeballs.start_connection( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/public/apps/anaconda3/envs/openwebui/lib/python3.11/site-packages/aiohappyeyeballs/impl.py", line 112, in start_connection raise OSError(first_errno, msg) TimeoutError: [Errno 110] Multiple exceptions: [Errno 110] Connect call failed ('108.160.167.30', 443), [Errno 110] Connect call failed ('2001::6ca0:a639', 443, 0, 0) ``` **Browser Console Logs:** NA **Docker Container Logs:** NA **Screenshots/Screen Recordings (if applicable):** No ## Additional Information ## Note
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#16031