mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 23:21:44 -05:00
[GH-ISSUE #12313] issue: v0.6.0 Docker: Tool Server UI validation fails & backend logs show incorrect host.docker.internal usage #136275
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 @ref21 on GitHub (Apr 1, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/12313
Check Existing Issues
Installation Method
Docker
Open WebUI Version
0.6.0
Ollama Version (if applicable)
No response
Operating System
MacOS 15.3.2
Browser (if applicable)
Safari and Chrome
Confirmation
README.md.Expected Behavior
When adding a custom OpenAPI tool server running in a separate container on the same Docker Compose network, Open WebUI should:
Actual Behavior
Two distinct issues occur:
Steps to Reproduce
Prepare Custom Tool Server:
-- It uses build: context pointing to the filesystem server code/Dockerfile.
-- It has a distinct container_name (e.g., filesystem-server).
-- Example filesystem service definition:
docker exec -it open-webui bash
curl http://filesystem-server:8000/openapi.json
exit
Logs & Screenshots
2025-04-01 15:06:21 open-webui | 2025-04-01 20:06:21.282 | ERROR | open_webui.routers.openai:send_get_request:81 - Connection error: Cannot connect to host host.docker.internal:8000 ssl:default [Connect call failed ('192.###.##.###', 8000)] - {}
Additional Information
Troubleshooting steps like restarting the open-webui container and performing docker-compose down & docker-compose up -d did not resolve either issue. Neither did a shift-refresh or changing browsers.
@tjbck commented on GitHub (Apr 1, 2025):
related: https://github.com/open-webui/mcpo/issues/10#issuecomment-2770559381
TL;DR Tool servers makes outgoing requests directly from the browser, and not the backend.
@pkkudo commented on GitHub (Apr 2, 2025):
Edit: Nvm below. My error was caused by mixed contents where I have OWUI over https and mcpo over http. I have setup my reverse proxy to serve mcpo over https and the issue was gone.
I have OWUI v0.6.0 running as both docker container and uvx on separate hosts. The mcpo is running on another host.I can successfully add the mcpo server on port 8000 on uvx OUWI, but fails on docker OWUI, showing the same logs reported above. I also cannot figure out why.
My browser (192.168.1.244 in the logs below) using uvx OWUI is successfully connected and using the tool. The host running docker OWUI (192.168.1.145) can also access it as shown in the log below at the bottom.
"GET /openapi.json" was executed from the container running next to the OWUI container connected to the same docker network.