Open WebUI: Server Connection Error #725

Closed
opened 2025-11-11 14:29:55 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @waterloo2018 on GitHub (Apr 25, 2024).

Bug Report

Open WebUI: Server Connection Error

Description

Open WebUI: Server Connection Error in the kubernetes cluster environment.
Bug Summary:

Open WebUI: Server Connection Error in the kubernetes cluster environment.

Steps to Reproduce:
kubernetes/manifest/base/webui-deployment.yaml

apiVersion: apps/v1
kind: Deployment
metadata:
name: open-webui-deployment
namespace: open-webui
spec:
replicas: 1
selector:
matchLabels:
app: open-webui
template:
metadata:
labels:
app: open-webui
spec:
containers:
- name: open-webui
image: ghcr.io/open-webui/open-webui:main
ports:
- containerPort: 8080
resources:
requests:
cpu: "500m"
memory: "500Mi"
limits:
cpu: "1000m"
memory: "1Gi"
env:
- name: OLLAMA_BASE_URL
value: "http://ollama-service.open-webui.svc.cluster.local:11434"
tty: true
volumeMounts:
- name: webui-volume
mountPath: /app/backend/data
volumes:
- name: webui-volume
persistentVolumeClaim:
claimName: open-webui-pvc

Expected Behavior:
wish to utilize Open WebUI with Ollama in the kubernetes clusters.

Actual Behavior:

Open WebUI: Server Connection Error

Note

solutions:

kubernetes/manifest/base/webui-deployment.yaml

apiVersion: apps/v1
kind: Deployment
metadata:
name: open-webui-deployment
namespace: open-webui
spec:
replicas: 1
selector:
matchLabels:
app: open-webui
template:
metadata:
labels:
app: open-webui
spec:
containers:
- name: open-webui
image: ghcr.io/open-webui/open-webui:main
ports:
- containerPort: 8080
resources:
requests:
cpu: "500m"
memory: "500Mi"
limits:
cpu: "1000m"
memory: "1Gi"
env:
- name: OLLAMA_BASE_URL
value: "http://ollama-service.open-webui.svc.cluster.local:11434/api"
tty: true
volumeMounts:
- name: webui-volume
mountPath: /app/backend/data
volumes:
- name: webui-volume
persistentVolumeClaim:
claimName: open-webui-pvc

in the yaml file, the ollama_base_url is not correct, it works if I change "env:
- name: OLLAMA_BASE_URL
value: "http://ollama-service.open-webui.svc.cluster.local:11434/"" to "env:
- name: OLLAMA_BASE_URL
value: "http://ollama-service.open-webui.svc.cluster.local:11434/api".

Originally created by @waterloo2018 on GitHub (Apr 25, 2024). # Bug Report Open WebUI: Server Connection Error ## Description Open WebUI: Server Connection Error in the kubernetes cluster environment. **Bug Summary:** Open WebUI: Server Connection Error in the kubernetes cluster environment. **Steps to Reproduce:** kubernetes/manifest/base/webui-deployment.yaml apiVersion: apps/v1 kind: Deployment metadata: name: open-webui-deployment namespace: open-webui spec: replicas: 1 selector: matchLabels: app: open-webui template: metadata: labels: app: open-webui spec: containers: - name: open-webui image: ghcr.io/open-webui/open-webui:main ports: - containerPort: 8080 resources: requests: cpu: "500m" memory: "500Mi" limits: cpu: "1000m" memory: "1Gi" env: - name: OLLAMA_BASE_URL value: "http://ollama-service.open-webui.svc.cluster.local:11434" tty: true volumeMounts: - name: webui-volume mountPath: /app/backend/data volumes: - name: webui-volume persistentVolumeClaim: claimName: open-webui-pvc **Expected Behavior:** wish to utilize Open WebUI with Ollama in the kubernetes clusters. **Actual Behavior:** Open WebUI: Server Connection Error ## Note solutions: kubernetes/manifest/base/webui-deployment.yaml apiVersion: apps/v1 kind: Deployment metadata: name: open-webui-deployment namespace: open-webui spec: replicas: 1 selector: matchLabels: app: open-webui template: metadata: labels: app: open-webui spec: containers: - name: open-webui image: ghcr.io/open-webui/open-webui:main ports: - containerPort: 8080 resources: requests: cpu: "500m" memory: "500Mi" limits: cpu: "1000m" memory: "1Gi" env: - name: OLLAMA_BASE_URL value: "http://ollama-service.open-webui.svc.cluster.local:11434/api" tty: true volumeMounts: - name: webui-volume mountPath: /app/backend/data volumes: - name: webui-volume persistentVolumeClaim: claimName: open-webui-pvc in the yaml file, the ollama_base_url is not correct, it works if I change "env: - name: OLLAMA_BASE_URL value: "http://ollama-service.open-webui.svc.cluster.local:11434/"" to "env: - name: OLLAMA_BASE_URL value: "http://ollama-service.open-webui.svc.cluster.local:11434/api".
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#725