-
Notifications
You must be signed in to change notification settings - Fork 44.1k
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
Command browse_website returned: Error: Message: unknown error: Chrome failed to start: crashed. (unknown error: DevToolsActivePort file doesn't exist) #1788
Comments
I got this to work in docker by making the following patches to the dockerfile and web.py I would PR this but will probably break non-docker versions. |
That indeed work but it yielded a new error : Command browse_website returned: Error: Message: unknown error: session deleted because of page crash from unknown error: cannot determine loading status from tab crashed (Session info: headless chrome=112.0.5615.121) Stacktrace: #0 0x5612c2c8bfe3 #1 0x5612c29cabc1 #2 0x5612c29b4ad2 #3 0x5612c29b3608 #4 0x5612c29b3db2 #5 0x5612c29c1283 #6 0x5612c29c22c2 #7 0x5612c29d24db #8 0x5612c29d64eb #9 0x5612c29b4273 #10 0x5612c29d2108 #11 0x5612c2a41140 #12 0x5612c2a28693 #13 0x5612c29fb03a #14 0x5612c29fc17e #15 0x5612c2c4ddbd #16 0x5612c2c51c6c #17 0x5612c2c5b4b0 #18 0x5612c2c52d63 #19 0x5612c2c25c35 #20 0x5612c2c76138 #21 0x5612c2c762c7 #22 0x5612c2c84093 #23 0x7eff5e8b2ea7 start_thread |
I also ran into this occasionally, I assumed due to a memory issue, but try with some other domains to narrow down? |
I added this to web_selenium.py to fix it: |
works great, thanks |
Resolved in #1473 |
I saw this today on the 0.2.2 latest stable. The weird thing is AutoGPT previously worked hours early and was able to launch chrome (I think, unless it fell back to google search api directly?). Anything else to check...Using standard MacBook pro latest OS, docker fully updated, run as docker compose container.....? SYSTEM: Command browse_website returned: Error: Message: unknown error: Chrome failed to start: exited abnormally. (chrome not reachable) (The process started from chrome location /usr/bin/chromium is no longer running, so ChromeDriver is assuming that Chrome has crashed.) Stacktrace: #0 0x0040006e6fe3 #1 0x004000425d36 #2 0x00400044eb20 #3 0x00400044aa9b #4 0x00400048caf7 #5 0x00400048c11f #6 0x004000483693 #7 0x00400045603a #8 0x00400045717e #9 0x0040006a8dbd #10 0x0040006acc6c #11 0x0040006b64b0 #12 0x0040006add63 #13 0x004000680c35 #14 0x0040006d1138 #15 0x0040006d12c7 #16 0x0040006df093 #17 0x004002585ea7 start_thread |
Can you tell me exactly where you added this in the code? I'm really new to all of this |
None of the browsers work for me, neither through docker nor vanilla macOS. I don't get why it wouldn't work through docker, isn't it supposed to perfectly replicate the intended environment? When run on macOS directly with safari, a window actually opens (since Safari doesn't support headless) and the page is rendered but there is still an error within Augo-GPT. |
I took a bit to figure this out but if you're using docker - you cannot edit the image. You will have to clone the github repo - like so git clone -b stable https://github.com/Significant-Gravitas/Auto-GPT.git You then need to make a few edits on the dockerfile in this repo. Then you can create a docker build on the file - and if you run that docker image - it should fix the issue I also found this specific comment useful to fix the issue - #2600 (comment) I think the issue only exists for people who are running the M1 chips |
I am running on Apple Silicon and the fix helped, thanks so much! |
I changed the default browser to Firefox by editing the .env file and it work -> USE_WEB_BROWSER=firefox |
You are a low key genius my friend! This helped a lot, thanks. |
Maybe help via: Significant-Gravitas/AutoGPT#1788 (comment)
Duplicates
Steps to reproduce 🕹
Running autogpt in docker desktop for windows
Current behavior 😯
Command browse_website returned: Error: Message: unknown error: Chrome failed to start: crashed. (unknown error: DevToolsActivePort file doesn't exist) (The process started from chrome location /usr/bin/chromium is no longer running, so ChromeDriver is assuming that Chrome has crashed.) Stacktrace: #0 0x5634a2f84fe3 #1 0x5634a2cc3d36 #2 0x5634a2cecb20 #3 0x5634a2ce8a9b #4 0x5634a2d2aaf7 #5 0x5634a2d2a11f #6 0x5634a2d21693 #7 0x5634a2cf403a #8 0x5634a2cf517e #9 0x5634a2f46dbd #10 0x5634a2f4ac6c #11 0x5634a2f544b0 #12 0x5634a2f4bd63 #13 0x5634a2f1ec35 #14 0x5634a2f6f138 #15 0x5634a2f6f2c7 #16 0x5634a2f7d093 #17 0x7fead9ae1ea7 start_thread
Expected behavior 🤔
Should be able to read the links it's pulling
Your prompt 📝
FROM debian:bullseye AS builder
ENV DEBIAN_FRONTEND=noninteractive
WORKDIR /workdir
RUN apt update && apt -y install git make build-essential
RUN git clone --recursive https://github.com/RediSearch/RediSearch.git
RUN cd RediSearch && make setup && make build
Use an official Python base image from the Docker Hub
FROM python:3.11-slim
Switch to root user and install necessary packages
USER root
RUN apt update && apt -y install vim redis-server chromium-driver chromium &&
rm -rf /var/lib/apt/lists/*
Set environment variables
ENV PIP_NO_CACHE_DIR=yes
PYTHONUNBUFFERED=1
PYTHONDONTWRITEBYTECODE=1
Create a non-root user and set permissions
RUN useradd --create-home appuser
WORKDIR /home/appuser
RUN chown appuser:appuser /home/appuser
USER appuser
Copy the requirements.txt file and install the requirements
COPY --chown=appuser:appuser requirements-docker.txt .
RUN pip install --no-cache-dir --user -r requirements-docker.txt
Copy the application files
COPY --chown=appuser:appuser autogpt/ ./autogpt
Set the entrypoint
ENTRYPOINT ["python", "-m", "autogpt"]
The text was updated successfully, but these errors were encountered: