web-ui icon indicating copy to clipboard operation
web-ui copied to clipboard

local AI and chrome issues

Open RepairYourTech opened this issue 1 year ago • 4 comments

first of all it refuses to use my ollama i get connection errors no matter what i try secondly it never uses my browser and always makes me use vnc to see it use its own

RepairYourTech avatar Jan 26 '25 12:01 RepairYourTech

How are you running ollama? If the answer is docker you'll need to use your local IP rather than localhost. for instance, http://192.168.1.3:11434 . Also the model names require the tag after the colon (:) as well. So llama3.1:latest, rather than llama3.1

Did you define the chrome dir correctly in the .env file? For example:

Chrome settings

CHROME_PATH="C:\Program Files\Google\Chrome\Application\chrome.exe" CHROME_USER_DATA="" CHROME_DEBUGGING_PORT=9222 CHROME_DEBUGGING_HOST=localhost

Set to true to keep browser open between AI tasks

CHROME_PERSISTENT_SESSION=true

iammrbt avatar Jan 29 '25 22:01 iammrbt

I HAVE same issue ['[Errno 111] Connection refused', '[Errno 111] Connection refused', '[Errno 111] Connection refused', '[Errno 111] Connection refused', '[Errno 111] Connection refused']

Image

1achy avatar Feb 07 '25 22:02 1achy

EDIT: resolved running ollama as a docker container https://github.com/browser-use/web-ui/issues/146#issuecomment-2660819578

I have the same issue. I use Ollama on a Docker container and have it configured with local IP.

Image

Image

Image

Bacca1997 avatar Feb 26 '25 23:02 Bacca1997

If you're working with Ollama, you should update the OLLAMA_ENDPOINT to "http://host.docker.internal:11434" in your .env file. This allows the Docker container to communicate with the Ollama application running on your host machine, as "localhost" inside a container refers to the container itself, not your computer.

also I made pr about this issue : https://github.com/browser-use/web-ui/pull/399

AliYmn avatar Mar 14 '25 23:03 AliYmn