bug: DOCS_DIR env variable not reflected on UI #930

Closed
opened 2025-11-11 14:33:53 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @chitoku on GitHub (May 15, 2024).

Bug Report

Description

Bug Summary:
When env variable DOCS_DIR is supplied, the UI does not reflect the supplied value but still shows the default value (/data/docs).

Steps to Reproduce:

docker run --rm --network=host \
    -e OLLAMA_BASE_URL=http://127.0.0.1:11434 \
    -e DOCS_DIR=/data/documents \
    -v ${PWD}/documents/:/data/documents/ \
    ghcr.io/open-webui/open-webui:dev

Expected Behavior:
When env variable DOCS_DIR is supplied, the UI shows that value.

Actual Behavior:
The UI still shows /data/docs.
(When pressed Scan button, it does scan the correct dir that is specified by the env variable)

Environment

  • Open WebUI Version: v0.1.124

  • Ollama (if applicable): N/A

  • Operating System: Ubuntu 22.04

  • Browser (if applicable): N/A (Chrome)

Reproduction Details

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.

Logs and Screenshots

image

Browser Console Logs:
N/A

Docker Container Logs:
N/A

Screenshots (if applicable):
image

Installation Method

Docker

Additional Information

The implementation is already fixed with this PR (https://github.com/open-webui/open-webui/pull/1734).

It is just that the UI part (code) is left unfixed.

Originally created by @chitoku on GitHub (May 15, 2024). # Bug Report ## Description **Bug Summary:** When env variable `DOCS_DIR` is supplied, the UI does not reflect the supplied value but still shows the default value (`/data/docs`). **Steps to Reproduce:** ``` docker run --rm --network=host \ -e OLLAMA_BASE_URL=http://127.0.0.1:11434 \ -e DOCS_DIR=/data/documents \ -v ${PWD}/documents/:/data/documents/ \ ghcr.io/open-webui/open-webui:dev ``` **Expected Behavior:** When env variable `DOCS_DIR` is supplied, the UI shows that value. **Actual Behavior:** The UI still shows `/data/docs`. (When pressed `Scan` button, it does scan the correct dir that is specified by the env variable) ## Environment - **Open WebUI Version:** v0.1.124 - **Ollama (if applicable):** N/A - **Operating System:** Ubuntu 22.04 - **Browser (if applicable):** N/A (Chrome) ## Reproduction Details **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 included the browser console logs. - [x] I have included the Docker container logs. ## Logs and Screenshots ![image](https://github.com/open-webui/open-webui/assets/262161/65913e03-5e6b-4682-9f7e-6d726ced7851) **Browser Console Logs:** N/A **Docker Container Logs:** N/A **Screenshots (if applicable):** ![image](https://github.com/open-webui/open-webui/assets/262161/65913e03-5e6b-4682-9f7e-6d726ced7851) ## Installation Method Docker ## Additional Information The implementation is already fixed with this PR (https://github.com/open-webui/open-webui/pull/1734). It is just that the UI part ([code](https://github.com/open-webui/open-webui/blob/dev/src/lib/components/documents/Settings/General.svelte#L199)) is left unfixed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#930