[GH-ISSUE #4572] Environment variables do not update config.json #29187

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

Originally created by @JSchmie on GitHub (Aug 13, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/4572

Bug Report

Installation Method

I used your Guide for Install from Open WebUI Github Repo for a deployment in a non docker Container environment.

Environment

  • Open WebUI Version: v0.3.11

  • Ollama (if applicable): v0.3.3

  • Operating System: Ubuntu 22.04.3 LTS

  • Browser (if applicable): Firefox Ubuntu 128.1.0.esr

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:

I have tried to add additional Ollama instances using OLLAMA_BASE_URLS. However, other admins have modified the settings using the WebUI frontend, resulting in a config.json file being created in the /app/backend/data folder. I expected that changing the OLLAMA_BASE_URLS variable would update the config.json.

Actual Behavior:

After a saved change in the WebUI Frontend, a section in the config.json was created:

  { "ollama": {
            "base_urls": [
                    "http://127.0.0.1:11434",
                    "http://127.0.0.2:11434",
                    "http://127.0.0.3:11434"
            ]
    }}

When I try to update this section using for example:

OLLAMA_BASE_URLS="http://127.0.0.1:11434;http://127.0.0.2:11434;http://127.0.0.24:11434"

The section in the config.json does not get updated.

Description

Bug Summary:

If an Admin configures settings using the WebUI, those configurations can no longer be altered through Environment Variables. This may cause confusion if there are multiple Admin users.

Reproduction Details

Steps to Reproduce:

  1. Setup and start a WebUI instance and change some configurations (and save them).
  2. Stop the WebUI instance.
  3. Change Environment Variables you touched previously using the WebUI.
  4. Restart the WebUI instance and check the Admin Options.

Additional Information

I thoroughly enjoy using your tool, and I believe you are doing incredible work for the entire Open-Source Community.

While I don't consider this a major issue, I think it's worth mentioning. It would be helpful to include a note in the Environment Variable Configuration section to prevent any potential confusion.

Thank you!

Originally created by @JSchmie on GitHub (Aug 13, 2024). Original GitHub issue: https://github.com/open-webui/open-webui/issues/4572 # Bug Report ## Installation Method I used your Guide for `Install from Open WebUI Github Repo` for a deployment in a non docker Container environment. ## Environment - **Open WebUI Version:** v0.3.11 - **Ollama (if applicable):** v0.3.3 - **Operating System:** Ubuntu 22.04.3 LTS - **Browser (if applicable):** Firefox Ubuntu 128.1.0.esr **Confirmation:** - [x] 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. - [x] I have provided the exact steps to reproduce the bug in the "Steps to Reproduce" section below. ## Expected Behavior: I have tried to add additional Ollama instances using OLLAMA_BASE_URLS. However, other admins have modified the settings using the WebUI frontend, resulting in a config.json file being created in the /app/backend/data folder. I expected that changing the OLLAMA_BASE_URLS variable would update the config.json. ## Actual Behavior: After a saved change in the WebUI Frontend, a section in the config.json was created: ```json { "ollama": { "base_urls": [ "http://127.0.0.1:11434", "http://127.0.0.2:11434", "http://127.0.0.3:11434" ] }} ``` When I try to update this section using for example: ```bash OLLAMA_BASE_URLS="http://127.0.0.1:11434;http://127.0.0.2:11434;http://127.0.0.24:11434" ``` The section in the `config.json` does not get updated. ## Description **Bug Summary:** If an Admin configures settings using the WebUI, those configurations can no longer be altered through Environment Variables. This may cause confusion if there are multiple Admin users. ## Reproduction Details **Steps to Reproduce:** 1. Setup and start a WebUI instance and change some configurations (and save them). 2. Stop the WebUI instance. 3. Change Environment Variables you touched previously using the WebUI. 4. Restart the WebUI instance and check the Admin Options. ## Additional Information I thoroughly enjoy using your tool, and I believe you are doing incredible work for the entire Open-Source Community. While I don't consider this a major issue, I think it's worth mentioning. It would be helpful to include a note in the [Environment Variable Configuration](https://docs.openwebui.com/getting-started/env-configuration#ollama_base_urls) section to prevent any potential confusion. 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#29187