mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
Unable To Connect to Automatic1111 API | Images #813
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 @Vishnubathala on GitHub (May 5, 2024).
I've tried so many way running automatic running inside docker, windows, wsl doesn't matter updated open webui to latest version I get same error
Error :

Something went wrong :/ HTTPConnectionPool(host='127.0.0.1', port=7860): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9bfcad2cd0>: Failed to establish a new connection: [Errno 111] Connection refused'))
Running as docker inside WSL2 below is my argument
docker run -d -p 3000:8080 --add-host=host.docker.internal:host-gateway -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:main
Can someone please help why it is not letting setup a connection.
@justinh-rahb commented on GitHub (May 5, 2024):
Use
host.docker.internalinstead of127.0.0.1orlocalhost.https://docs.openwebui.com/faq#q-how-do-i-make-my-hosts-services-accessible-to-docker-containers
@Vishnubathala commented on GitHub (May 5, 2024):
Amazing! just like that Legend thanks for the fix