π§ Server Connectivity Issues
We're here to help you get everything set up and running smoothly. Below, you'll find step-by-step instructions tailored for different scenarios to solve common connection issues with Ollama and external servers like Hugging Face.
π Connection to Ollama Serverβ
π Accessing Ollama from Open WebUIβ
Struggling to connect to Ollama from Open WebUI? It could be because Ollama isnβt listening on a network interface that allows external connections. Letβs sort that out:
-
Configure Ollama to Listen Broadly π§: Set
OLLAMA_HOST
to0.0.0.0
to make Ollama listen on all network interfaces. -
Update Environment Variables: Ensure that the
OLLAMA_HOST
is accurately set within your deployment environment. -
Restart Ollamaπ: A restart is needed for the changes to take effect.
π‘ After setting up, verify that Ollama is accessible by visiting the WebUI interface.
For more detailed instructions on configuring Ollama, please refer to the Ollama's Official Documentation.
π³ Docker Connection Errorβ
If you're seeing a connection error when trying to access Ollama, it might be because the WebUI docker container can't talk to the Ollama server running on your host. Letβs fix that:
-
Adjust the Network Settings π οΈ: Use the
--network=host
flag in your Docker command. This links your container directly to your hostβs network. -
Change the Port: Remember that the internal port changes from 3000 to 8080.
Example Docker Command:
docker run -d --network=host -v open-webui:/app/backend/data -e OLLAMA_BASE_URL=http://127.0.0.1:11434 --name open-webui --restart always ghcr.io/open-webui/open-webui:main
π After running the above, your WebUI should be available at http://localhost:8080
.
π SSL Connection Issue with Hugging Faceβ
Encountered an SSL error? It could be an issue with the Hugging Face server. Here's what to do:
-
Check Hugging Face Server Status: Verify if there's a known outage or issue on their end.
-
Switch Endpoint: If Hugging Face is down, switch the endpoint in your Docker command.
Example Docker Command for Connected Issues:
docker run -d -p 3000:8080 -e HF_ENDPOINT=https://hf-mirror.com/ --add-host=host.docker.internal:host-gateway -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:main
π Podman on MacOSβ
Running on MacOS with Podman? Hereβs how to ensure connectivity:
-
Enable Host Loopback: Use
--network slirp4netns:allow_host_loopback=true
in your command. -
Set OLLAMA_BASE_URL: Ensure it points to
http://host.containers.internal:11434
.
Example Podman Command:
podman run -d --network slirp4netns:allow_host_loopback=true -p 3000:8080 -e OLLAMA_BASE_URL=http://host.containers.internal:11434 -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:main