-
Notifications
You must be signed in to change notification settings - Fork 2.2k
click Run Agent error #267
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Any solutions? |
I am also facing the same kind of issues on my Mac. |
Host machine doesn't have any issues. Docker has the websocket communication issue |
I also face same problems, when i use docker deploy WebAgent in windows |
Anyone find the solution yet? |
Hey everyone! I'm using the docker setup with my Browser-Use connecting to an OLLAMA instance that is not running locally. I had the same error logs that I see here, but I found a slight work around to this. I was reading the logs and this one caught my eye
Here are the settings I used to make it work:
|
I have the same problem |
As far as i understand stand its only happening when we are running models locally. I was running ollama with deepseek i was also seeing the same issue.Once i change the model to use Gemini it stared to work |
@furkankurtoglu @cngitlt also I made pr about this issue : #399 |
I made this change in .env
|
My .env file if it helps.
|
I'm also getting these types of errors running on Docker Desktop on Mac. I tried to parse through the logs and only shown below are what appear to be ERRORS not just debugging messages. It actually runs, and I can connect to the VNC to see the browser, but when I run the default 'Run Agent' prompt, it never gives a result in the gradio website, even though I can see through VNC that the browser did search google for 'OpenAI' and find the first URL.
|
Here's what Gemini 2.0 Flash Thinking (Deep Research mode) had to say. Troubleshooting WebUI Docker Container Startup on macOSTroubleshooting WebUI Docker Container Startup on macOSThis report analyzes the errors encountered while attempting to run the WebUI application within a Docker container on macOS, as indicated by the provided Docker logs and configuration files. The objective is to identify the root causes of these errors and provide detailed, actionable steps for their resolution. 1. Introduction The user is experiencing difficulties in launching the WebUI application, sourced from the browser-use/web-ui GitHub repository, using Docker Compose on a macOS environment. The Docker logs provided reveal a series of errors occurring within the browser-use-webui-1 container. This report will systematically examine each error message in the order it appears, leveraging the provided configuration files (Dockerfile, docker-compose.yml, and supervisord.conf) and external research to determine the underlying causes and propose effective solutions. The analysis will cover components such as Docker Desktop, Docker Compose, the WebUI application itself, the noVNC web-based VNC client, the X server (Xvfb), the D-Bus inter-process communication system, and the persistent browser (likely Chromium) used within the container. 2. Detailed Analysis of Docker Logs and Resolutions
3. Review of Docker Configuration Files
4. macOS Specific Considerations for GUI Applications in Docker Running GUI applications in Docker on macOS often involves using XQuartz to forward the X11 display from the container to the host 11. However, the current setup utilizes Xvfb to create a virtual display inside the container, which is then accessed remotely via VNC and noVNC. In this scenario, the volume mount - /tmp/.X11-unix:/tmp/.X11-unix in docker-compose.yml is not necessary and should be removed as it's intended for sharing the host's X server socket, which is not being used here. Docker Desktop on macOS runs a virtual machine internally, and port mappings in docker-compose.yml correctly handle the redirection of network traffic. While there have been reports of issues with Docker Desktop on macOS 13, the errors reported by the user appear to be related to the container's internal configuration rather than fundamental problems with Docker Desktop itself. 5. Recommendations and Best Practices Based on the analysis, the following recommendations are provided:
6. Conclusion The analysis of the Docker logs and configuration files reveals several potential issues that could be contributing to the user's difficulties in running the WebUI application. The most critical error appears to be the WebSocket handshake failure, which prevents the browser from connecting to the VNC server. Addressing the self.pem warning to ensure secure connections, verifying the configuration and status of the noVNC and x11vnc services, and ensuring the D-Bus service is running are key steps towards resolving this issue. The persistent browser errors, while present, might not be directly preventing the core functionality but should be monitored. Finally, cleaning up the configuration files by removing the unnecessary volume mount and ensuring consistency in environment variables will contribute to a more robust and maintainable Docker setup. By implementing these recommendations, the user should be able to successfully run the WebUI application in their Docker environment on macOS. Table 1: Error Analysis and Resolution
Table 2: supervisord.conf Service Dependencies and Commands
Table 3: docker-compose.yml Port Mappings
Works cited
|
Uh oh!
There was an error while loading. Please reload this page.
help me please :(
windows11,python3.11,docker,ollama
Directly opening Ollama and OpenWebUI can normally use the locally deployed large model, but when using the [browser use webui], it cannot be used normally.
config:
click Run Agent docker log
2025-02-10 22:42:05 browser-use-webui-1 | [120:135:0210/144205.394667:ERROR:ssl_client_socket_impl.cc(877)] handshake failed; returned -1, SSL error code 1, net_error -100
2025-02-10 22:42:05 browser-use-webui-1 | 2025-02-10 14:42:05,394 DEBG 'persistent_browser' stderr output:
2025-02-10 22:42:05 browser-use-webui-1 | [120:135:0210/144205.394667:ERROR:ssl_client_socket_impl.cc(877)] handshake failed; returned -1, SSL error code 1, net_error -100
2025-02-10 22:42:05 browser-use-webui-1 |
2025-02-10 22:42:05 browser-use-webui-1 | 2025-02-10 14:42:05,394 DEBG 'persistent_browser' stderr output:
2025-02-10 22:42:05 browser-use-webui-1 | [120:135:0210/144205.394667:ERROR:ssl_client_socket_impl.cc(877)] handshake failed; returned -1, SSL error code 1, net_error -100
2025-02-10 22:42:05 browser-use-webui-1 |
2025-02-10 22:42:06 browser-use-webui-1 | INFO [agent] 🚀 Starting task: go to https://www.baidu.com and type 'OpenAI' click search and give me the first url
2025-02-10 22:42:06 browser-use-webui-1 | 2025-02-10 14:42:06,815 DEBG 'webui' stdout output:
2025-02-10 22:42:06 browser-use-webui-1 | INFO [agent] 🚀 Starting task: go to https://www.baidu.com and type 'OpenAI' click search and give me the first url
2025-02-10 22:42:06 browser-use-webui-1 |
2025-02-10 22:42:06 browser-use-webui-1 | 2025-02-10 14:42:06,815 DEBG 'webui' stdout output:
2025-02-10 22:42:06 browser-use-webui-1 | INFO [agent] 🚀 Starting task: go to https://www.baidu.com and type 'OpenAI' click search and give me the first url
2025-02-10 22:42:06 browser-use-webui-1 |
2025-02-10 22:42:06 browser-use-webui-1 | 10/02/2025 14:42:06 Got connection from client 127.0.0.1
2025-02-10 22:42:06 browser-use-webui-1 | 10/02/2025 14:42:06 1 other clients
2025-02-10 22:42:06 browser-use-webui-1 | 10/02/2025 14:42:06 webSocketsHandshake: unknown connection error
2025-02-10 22:42:06 browser-use-webui-1 | 10/02/2025 14:42:06 Client 127.0.0.1 gone
2025-02-10 22:42:06 browser-use-webui-1 | 10/02/2025 14:42:06 Statistics events Transmit/ RawEquiv ( saved)
2025-02-10 22:42:06 browser-use-webui-1 | 10/02/2025 14:42:06 TOTALS : 0 | 0/ 0 ( 0.0%)
2025-02-10 22:42:06 browser-use-webui-1 | 10/02/2025 14:42:06 Statistics events Received/ RawEquiv ( saved)
2025-02-10 22:42:06 browser-use-webui-1 | 10/02/2025 14:42:06 TOTALS : 0 | 0/ 0 ( 0.0%)
2025-02-10 22:42:06 browser-use-webui-1 | 2025-02-10 14:42:06,899 DEBG 'x11vnc_log' stdout output:
2025-02-10 22:42:06 browser-use-webui-1 | 10/02/2025 14:42:06 Got connection from client 127.0.0.1
2025-02-10 22:42:06 browser-use-webui-1 | 10/02/2025 14:42:06 1 other clients
2025-02-10 22:42:06 browser-use-webui-1 | 10/02/2025 14:42:06 webSocketsHandshake: unknown connection error
2025-02-10 22:42:06 browser-use-webui-1 | 10/02/2025 14:42:06 Client 127.0.0.1 gone
2025-02-10 22:42:06 browser-use-webui-1 | 10/02/2025 14:42:06 Statistics events Transmit/ RawEquiv ( saved)
2025-02-10 22:42:06 browser-use-webui-1 | 10/02/2025 14:42:06 TOTALS : 0 | 0/ 0 ( 0.0%)
2025-02-10 22:42:06 browser-use-webui-1 | 10/02/2025 14:42:06 Statistics events Received/ RawEquiv ( saved)
2025-02-10 22:42:06 browser-use-webui-1 | 10/02/2025 14:42:06 TOTALS : 0 | 0/ 0 ( 0.0%)
2025-02-10 22:42:06 browser-use-webui-1 |
2025-02-10 22:42:06 browser-use-webui-1 | 2025-02-10 14:42:06,899 DEBG 'x11vnc_log' stdout output:
2025-02-10 22:42:06 browser-use-webui-1 | 10/02/2025 14:42:06 Got connection from client 127.0.0.1
2025-02-10 22:42:06 browser-use-webui-1 | 10/02/2025 14:42:06 1 other clients
2025-02-10 22:42:06 browser-use-webui-1 | 10/02/2025 14:42:06 webSocketsHandshake: unknown connection error
2025-02-10 22:42:06 browser-use-webui-1 | 10/02/2025 14:42:06 Client 127.0.0.1 gone
2025-02-10 22:42:06 browser-use-webui-1 | 10/02/2025 14:42:06 Statistics events Transmit/ RawEquiv ( saved)
2025-02-10 22:42:06 browser-use-webui-1 | 10/02/2025 14:42:06 TOTALS : 0 | 0/ 0 ( 0.0%)
2025-02-10 22:42:06 browser-use-webui-1 | 10/02/2025 14:42:06 Statistics events Received/ RawEquiv ( saved)
2025-02-10 22:42:06 browser-use-webui-1 | 10/02/2025 14:42:06 TOTALS : 0 | 0/ 0 ( 0.0%)
2025-02-10 22:42:06 browser-use-webui-1 |
2025-02-10 22:42:06 browser-use-webui-1 | INFO [src.browser.custom_browser] Reusing existing Chrome instance
2025-02-10 22:42:06 browser-use-webui-1 | 2025-02-10 14:42:06,997 DEBG 'webui' stdout output:
2025-02-10 22:42:06 browser-use-webui-1 | INFO [src.browser.custom_browser] Reusing existing Chrome instance
2025-02-10 22:42:06 browser-use-webui-1 |
2025-02-10 22:42:06 browser-use-webui-1 | 2025-02-10 14:42:06,997 DEBG 'webui' stdout output:
2025-02-10 22:42:06 browser-use-webui-1 | INFO [src.browser.custom_browser] Reusing existing Chrome instance
2025-02-10 22:42:06 browser-use-webui-1 |
2025-02-10 22:42:07 browser-use-webui-1 | [14:100:0210/144207.329154:ERROR:bus.cc(408)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
2025-02-10 22:42:07 browser-use-webui-1 | 2025-02-10 14:42:07,329 DEBG 'persistent_browser' stderr output:
2025-02-10 22:42:07 browser-use-webui-1 | [14:100:0210/144207.329154:ERROR:bus.cc(408)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
2025-02-10 22:42:07 browser-use-webui-1 | [14:100:0210/144207.329183:ERROR:bus.cc(408)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
2025-02-10 22:42:07 browser-use-webui-1 | [14:100:0210/144207.329188:ERROR:bus.cc(408)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
2025-02-10 22:42:07 browser-use-webui-1 |
2025-02-10 22:42:07 browser-use-webui-1 | 2025-02-10 14:42:07,329 DEBG 'persistent_browser' stderr output:
2025-02-10 22:42:07 browser-use-webui-1 | [14:100:0210/144207.329154:ERROR:bus.cc(408)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
2025-02-10 22:42:07 browser-use-webui-1 | [14:100:0210/144207.329183:ERROR:bus.cc(408)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
2025-02-10 22:42:07 browser-use-webui-1 | [14:100:0210/144207.329188:ERROR:bus.cc(408)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
2025-02-10 22:42:07 browser-use-webui-1 |
2025-02-10 22:42:07 browser-use-webui-1 | [14:100:0210/144207.329183:ERROR:bus.cc(408)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
2025-02-10 22:42:07 browser-use-webui-1 | [14:100:0210/144207.329188:ERROR:bus.cc(408)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
2025-02-10 22:42:07 browser-use-webui-1 | [14:100:0210/144207.330648:ERROR:bus.cc(408)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
2025-02-10 22:42:07 browser-use-webui-1 | 2025-02-10 14:42:07,330 DEBG 'persistent_browser' stderr output:
2025-02-10 22:42:07 browser-use-webui-1 | [14:100:0210/144207.330648:ERROR:bus.cc(408)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
2025-02-10 22:42:07 browser-use-webui-1 | [14:100:0210/144207.330704:ERROR:bus.cc(408)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
2025-02-10 22:42:07 browser-use-webui-1 | [14:100:0210/144207.330715:ERROR:bus.cc(408)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
2025-02-10 22:42:07 browser-use-webui-1 |
2025-02-10 22:42:07 browser-use-webui-1 | 2025-02-10 14:42:07,330 DEBG 'persistent_browser' stderr output:
2025-02-10 22:42:07 browser-use-webui-1 | [14:100:0210/144207.330648:ERROR:bus.cc(408)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
2025-02-10 22:42:07 browser-use-webui-1 | [14:100:0210/144207.330704:ERROR:bus.cc(408)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
2025-02-10 22:42:07 browser-use-webui-1 | [14:100:0210/144207.330715:ERROR:bus.cc(408)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
2025-02-10 22:42:07 browser-use-webui-1 |
2025-02-10 22:42:07 browser-use-webui-1 | [14:100:0210/144207.330704:ERROR:bus.cc(408)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
2025-02-10 22:42:07 browser-use-webui-1 | [14:100:0210/144207.330715:ERROR:bus.cc(408)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
2025-02-10 22:42:08 browser-use-webui-1 | [14:100:0210/144208.460149:ERROR:bus.cc(408)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
2025-02-10 22:42:08 browser-use-webui-1 | [14:100:0210/144208.460177:ERROR:bus.cc(408)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
2025-02-10 22:42:08 browser-use-webui-1 | [14:100:0210/144208.460182:ERROR:bus.cc(408)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
2025-02-10 22:42:08 browser-use-webui-1 | 2025-02-10 14:42:08,460 DEBG 'persistent_browser' stderr output:
2025-02-10 22:42:08 browser-use-webui-1 | [14:100:0210/144208.460149:ERROR:bus.cc(408)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
2025-02-10 22:42:08 browser-use-webui-1 | [14:100:0210/144208.460177:ERROR:bus.cc(408)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
2025-02-10 22:42:08 browser-use-webui-1 | [14:100:0210/144208.460182:ERROR:bus.cc(408)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
2025-02-10 22:42:08 browser-use-webui-1 |
2025-02-10 22:42:08 browser-use-webui-1 | 2025-02-10 14:42:08,460 DEBG 'persistent_browser' stderr output:
2025-02-10 22:42:08 browser-use-webui-1 | [14:100:0210/144208.460149:ERROR:bus.cc(408)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
2025-02-10 22:42:08 browser-use-webui-1 | [14:100:0210/144208.460177:ERROR:bus.cc(408)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
2025-02-10 22:42:08 browser-use-webui-1 | [14:100:0210/144208.460182:ERROR:bus.cc(408)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
2025-02-10 22:42:08 browser-use-webui-1 |
2025-02-10 22:42:08 browser-use-webui-1 | INFO [src.agent.custom_agent]
2025-02-10 22:42:08 browser-use-webui-1 | 📍 Step 1
2025-02-10 22:42:08 browser-use-webui-1 | 2025-02-10 14:42:08,581 DEBG 'webui' stdout output:
2025-02-10 22:42:08 browser-use-webui-1 | INFO [src.agent.custom_agent]
2025-02-10 22:42:08 browser-use-webui-1 | 📍 Step 1
2025-02-10 22:42:08 browser-use-webui-1 |
2025-02-10 22:42:08 browser-use-webui-1 | 2025-02-10 14:42:08,581 DEBG 'webui' stdout output:
2025-02-10 22:42:08 browser-use-webui-1 | INFO [src.agent.custom_agent]
2025-02-10 22:42:08 browser-use-webui-1 | 📍 Step 1
2025-02-10 22:42:08 browser-use-webui-1 |
2025-02-10 22:42:09 browser-use-webui-1 | 2025-02-10 14:42:09,618 DEBG 'persistent_browser' stderr output:
2025-02-10 22:42:09 browser-use-webui-1 | [14:100:0210/144209.618677:ERROR:bus.cc(408)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
2025-02-10 22:42:09 browser-use-webui-1 | [14:100:0210/144209.618701:ERROR:bus.cc(408)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
2025-02-10 22:42:09 browser-use-webui-1 | [14:100:0210/144209.618706:ERROR:bus.cc(408)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
2025-02-10 22:42:09 browser-use-webui-1 |
2025-02-10 22:42:09 browser-use-webui-1 | 2025-02-10 14:42:09,618 DEBG 'persistent_browser' stderr output:
2025-02-10 22:42:09 browser-use-webui-1 | [14:100:0210/144209.618677:ERROR:bus.cc(408)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
2025-02-10 22:42:09 browser-use-webui-1 | [14:100:0210/144209.618701:ERROR:bus.cc(408)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
2025-02-10 22:42:09 browser-use-webui-1 | [14:100:0210/144209.618706:ERROR:bus.cc(408)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
2025-02-10 22:42:09 browser-use-webui-1 |
2025-02-10 22:42:09 browser-use-webui-1 | [14:100:0210/144209.618677:ERROR:bus.cc(408)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
2025-02-10 22:42:09 browser-use-webui-1 | [14:100:0210/144209.618701:ERROR:bus.cc(408)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
2025-02-10 22:42:09 browser-use-webui-1 | [14:100:0210/144209.618706:ERROR:bus.cc(408)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
2025-02-10 22:42:09 browser-use-webui-1 | ERROR [agent] ❌ Result failed 1/5 times:
2025-02-10 22:42:09 browser-use-webui-1 | [Errno 111] Connection refused
2025-02-10 22:42:09 browser-use-webui-1 | 2025-02-10 14:42:09,730 DEBG 'webui' stdout output:
2025-02-10 22:42:09 browser-use-webui-1 | ERROR [agent] ❌ Result failed 1/5 times:
2025-02-10 22:42:09 browser-use-webui-1 | [Errno 111] Connection refused
The text was updated successfully, but these errors were encountered: