mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-20 05:31:54 -05:00
[GH-ISSUE #8802] OpenWebUI hangs when used with Ramalama #30795
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 @vpavlin on GitHub (Jan 23, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/8802
Bug Report
Installation Method
Installed via Docker (ghcr.io/open-webui/open-webui:main)
Environment
Open WebUI Version: v0.5.4
Ollama (if applicable):
Operating System: Debian 12
Browser (if applicable):
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:
When there is an error in reaching a backend, Open WebUI should still be loadable
Actual Behavior:
After an error being observed in Docker logs, the UI never loads again
Description
Bug Summary:
I've been playing around with https://github.com/containers/ramalama (cc @ericcurtin) and thought I'll try to use
ramalama servewith Open WebUI (although probably not supported combo:) )After configuring Ramalama as a backend (IIUC
ramalama serveusesllama.cppHTTP server, which should be compatible with Ollama API?) and hitting the Manage button, the Open WebUI freezes and never loads again. I have to restart the container to get it working.Reproduction Details
Steps to Reproduce:
ramalama serve -d qwen2.5-coder:1.5b, this will start a container with API on port 8080ManagebuttonLogs and Screenshots
Browser Console Logs:
Empty
Docker Container Logs:
Screenshots/Screen Recordings (if applicable):
[Attach any relevant screenshots to help illustrate the issue]
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!
@ericcurtin commented on GitHub (Jan 23, 2025):
In RamaLama we use llama-server from llama.cpp and/or vllm server. So to be compatible with ramalama is to be compatible with those.
@vpavlin commented on GitHub (Jan 23, 2025):
Yeah, this is not that much about it not working with Ramalama, but more about trying to use non-Ollama API completely breaks the webui and it cannot be recovered from without restarting the service.
Making Ramalama/llama-server API actually work would be a separate endeavour:)
@ericcurtin commented on GitHub (Jan 23, 2025):
One feature that would help this is:
https://github.com/containers/ramalama/issues/598
in RamaLama, but Open WebUI should not require this, it should work with popular OpenAI API-compatible APIs like llama-server from llama.cpp and vllm also.
Unless of course Open WebUI group is happy to be an Ollama-specific tool. 😄
@tjbck commented on GitHub (Jan 23, 2025):
They do not offer Ollama compatible API endpoints.
@vpavlin commented on GitHub (Jan 27, 2025):
Correct, but then your software should report error, but not break completely;)
@ericcurtin commented on GitHub (Mar 21, 2025):
@vpavlin @tjbck
I figured it out:
ramalama serve some_modeland
podman run -it --rm --network slirp4netns:allow_host_loopback=true -e OPENAI_API_BASE_URL=http://host.containers.internal:8080 -p 3000:8080 -v open-webui:/app/backend/data --name open-webui ghcr.io/open-webui/open-webui:mainget open webui working just fine for me.
@tjbck you let me down the wrong track a little :)
I assumed you didn't support generic OpenAI endpoints when you said
They do not offer Ollama compatible API endpointsso I avoided trying to debug our generic endpoint until today