[GH-ISSUE #5268] WebUI could not connect to Ollama (Cloudflare Tunnel) #13919

Closed
opened 2026-04-19 20:27:35 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @matsyui on GitHub (Sep 8, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/5268

Bug Report

Installation Method

sudo docker run -d -p 3000:8080 -v ollama:/root/.ollama -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:ollama

Environment

  • Open WebUI Version: v0.3.21

  • Ollama (if applicable): 0.3.9

  • Operating System: Ubuntu 24.04 noble

  • Browser (if applicable): Microsoft Edge Version 126.0.2592.68 (Official build) (64-bit)

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:

It work normally as Thunder client and browser successfully runs the api with proper response time

Actual Behavior:

The error shows WebUI could not connect to Ollama when trying to set and sav the Ollama API connection using the Cloudflare tunnel URL.

Description

Bug Summary:
Can't connect to cloudflared ollama api

Reproduction Details

Steps to Reproduce:

  • setup ollama and openwebui
  • tunnel your ollama usig cloudflare
  • set your openwebui ollama connection api to the tunneled url

Logs and Screenshots

image
image
image

Originally created by @matsyui on GitHub (Sep 8, 2024). Original GitHub issue: https://github.com/open-webui/open-webui/issues/5268 # Bug Report ## Installation Method ``` sudo docker run -d -p 3000:8080 -v ollama:/root/.ollama -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:ollama ``` ## Environment - **Open WebUI Version:** v0.3.21 - **Ollama (if applicable):** 0.3.9 - **Operating System:** Ubuntu 24.04 noble - **Browser (if applicable):** Microsoft Edge Version 126.0.2592.68 (Official build) (64-bit) **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. - [ ] 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: It work normally as Thunder client and browser successfully runs the api with proper response time ## Actual Behavior: The error shows WebUI could not connect to Ollama when trying to set and sav the Ollama API connection using the Cloudflare tunnel URL. ## Description **Bug Summary:** Can't connect to cloudflared ollama api ## Reproduction Details **Steps to Reproduce:** - setup ollama and openwebui - tunnel your ollama usig cloudflare - set your openwebui ollama connection api to the tunneled url ## Logs and Screenshots ![image](https://github.com/user-attachments/assets/4b9f0873-15fe-47e7-bbea-43187fd9b952) ![image](https://github.com/user-attachments/assets/8981a9fe-5fbe-496a-a150-c364cb652787) ![image](https://github.com/user-attachments/assets/da7f941f-647c-4b2f-a85b-e2e4fc4ef1bb)
Author
Owner

@matsyui commented on GitHub (Sep 8, 2024):

Additional:
image

<!-- gh-comment-id:2336625102 --> @matsyui commented on GitHub (Sep 8, 2024): Additional: ![image](https://github.com/user-attachments/assets/89f937b4-b060-4ebd-a4ce-e8cd325d4bea)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#13919