mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 03:18:23 -05:00
502 Server Error: Bad Gateway when downloading Ollama model via Open WebUI #769
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @GeorgesAlkhouri on GitHub (Apr 30, 2024).
Bug Report
Description
Bug Summary:
After following the standard installation instructions by copying the docker-compose.yaml file from the repository and executing docker compose up, I encounter a "502 Server Error: Bad Gateway" when trying to download an Ollama model through the Open WebUI interface.
Steps to Reproduce:
Expected Behavior:
The Ollama model should download successfully without server errors.
Actual Behavior:
A "502 Server Error: Bad Gateway" is displayed when attempting to download the model, indicating an issue with reaching the Ollama service.
Environment
Open WebUI Version: v0.1.122
Ollama (if applicable): v0.1.32
Operating System: Ubuntu 20.04
docker/docker compose: 26.1.0 / v2.26.1
Reproduction Details
Confirmation:
Logs and Screenshots
Browser Console Logs:
Docker Container Logs:
Screenshots (if applicable):
[Attach any relevant screenshots to help illustrate the issue]
Installation Method
Used Docker installation by executing docker compose up
Additional Information
[Include any additional details that may help in understanding and reproducing the issue. This could include specific configurations, error messages, or anything else relevant to the bug.]
Note
If the bug report is incomplete or does not follow the provided instructions, it may not be addressed. Please ensure that you have followed the steps outlined in the README.md and troubleshooting.md documents, and provide all necessary information for us to reproduce and address the issue. Thank you!
@GeorgesAlkhouri commented on GitHub (Apr 30, 2024):
So my curreny solution is to connect to ollama via the
network_mode: host.