Env for OLLAMA_API_BASE_URL not properly saving #886

Closed
opened 2025-11-11 14:33:01 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @PokeFoundry on GitHub (May 11, 2024).

I am running Open WebUI on Unraid, here is the docker run command:

`docker run
-d
--name='open-webui'
--net='bridge'
-e TZ="America/Los_Angeles"
-e HOST_OS="Unraid"
-e HOST_HOSTNAME="Tower"
-e HOST_CONTAINERNAME="open-webui"
-e 'OLLAMA_API_BASE_URL'='http://10.10.1.201:11434/api'
-e 'OLLAMA_ORIGINS'='*'
-l net.unraid.docker.managed=dockerman
-l net.unraid.docker.webui='http://[IP]:[PORT:8080]/'
-l net.unraid.docker.icon='https://raw.githubusercontent.com/open-webui/open-webui/main/static/favicon.png'
-p '1337:8080/tcp'
-v '/mnt/user/system/docker/ollama-webui':'/app/backend/data':'rw' 'ghcr.io/open-webui/open-webui:main'
65b766cbd270ac44987c893b2f1ef90e9af75cd0eaac074967574dbe9a8b19be

The command finished successfully!`

Issue I am having is ERROR:apps.ollama.main:Connection error: Cannot connect to host host.docker.internal:11434 ssl:default [Name or service not known]

While changing this value in the settings works, the next time the container is restarted, the settings are gone and the same issue re-appears.

Originally created by @PokeFoundry on GitHub (May 11, 2024). I am running Open WebUI on Unraid, here is the docker run command: `docker run -d --name='open-webui' --net='bridge' -e TZ="America/Los_Angeles" -e HOST_OS="Unraid" -e HOST_HOSTNAME="Tower" -e HOST_CONTAINERNAME="open-webui" -e 'OLLAMA_API_BASE_URL'='http://10.10.1.201:11434/api' -e 'OLLAMA_ORIGINS'='*' -l net.unraid.docker.managed=dockerman -l net.unraid.docker.webui='http://[IP]:[PORT:8080]/' -l net.unraid.docker.icon='https://raw.githubusercontent.com/open-webui/open-webui/main/static/favicon.png' -p '1337:8080/tcp' -v '/mnt/user/system/docker/ollama-webui':'/app/backend/data':'rw' 'ghcr.io/open-webui/open-webui:main' 65b766cbd270ac44987c893b2f1ef90e9af75cd0eaac074967574dbe9a8b19be The command finished successfully!` Issue I am having is `ERROR:apps.ollama.main:Connection error: Cannot connect to host host.docker.internal:11434 ssl:default [Name or service not known]` While changing this value in the settings works, the next time the container is restarted, the settings are gone and the same issue re-appears.
Author
Owner

@justinh-rahb commented on GitHub (May 11, 2024):

Outdated.

@justinh-rahb commented on GitHub (May 11, 2024): Outdated.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#886