AutoGPT: chromedriver wont launch

⚠️ Search for existing issues first ⚠️

  • I have searched the existing issues, and there is no existing issue for my problem

Which Operating System are you using?

Docker

Which version of Auto-GPT are you using?

Stable (branch)

GPT-3 or GPT-4?

GPT-4

Steps to reproduce 🕹

On macbook pro latest download docker and download autoGPT following docker setup instructions. Generally runs and works, but the web searches using chrome driver always fail…

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 <unknown> #1 0x004000425d36 <unknown> #2 0x00400044eb20 <unknown> #3 0x00400044aa9b <unknown> #4 0x00400048caf7 <unknown> #5 0x00400048c11f <unknown> #6 0x004000483693 <unknown> #7 0x00400045603a <unknown> #8 0x00400045717e <unknown> #9 0x0040006a8dbd <unknown> #10 0x0040006acc6c <unknown> #11 0x0040006b64b0 <unknown> #12 0x0040006add63 <unknown> #13 0x004000680c35 <unknown> #14 0x0040006d1138 <unknown> #15 0x0040006d12c7 <unknown> #16 0x0040006df093 <unknown> #17 0x004002585ea7 start_thread THOUGHTS: I will use the ‘google’ command to search for articles

I installed chromedriver locally for good measure, but pretty sure it would be using the local one inside the docker containers, so not expecting this would be an issue. It seems to fall back to some google api search, but it slows things down and I assume limits how well it can search the web ?

Current behavior 😯

chrome search commands fail

Expected behavior 🤔

chrome web searches work

Your prompt 📝

# Paste your prompt here

I just run auto-gpt and give it an AI context and goals…like search and monitor for healthcare tech news…

Your Logs 📒

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 <unknown> #1 0x004000425d36 <unknown> #2 0x00400044eb20 <unknown> #3 0x00400044aa9b <unknown> #4 0x00400048caf7 <unknown> #5 0x00400048c11f <unknown> #6 0x004000483693 <unknown> #7 0x00400045603a <unknown> #8 0x00400045717e <unknown> #9 0x0040006a8dbd <unknown> #10 0x0040006acc6c <unknown> #11 0x0040006b64b0 <unknown> #12 0x0040006add63 <unknown> #13 0x004000680c35 <unknown> #14 0x0040006d1138 <unknown> #15 0x0040006d12c7 <unknown> #16 0x0040006df093 <unknown> #17 0x004002585ea7 start_thread
 THOUGHTS:  I will use the 'google' command to search for articles

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 5
  • Comments: 30

Most upvoted comments

The steps above from @caudurodev worked for me. For those who are still having issues:

  1. download latest stable code
  2. Edit Dockerfile and change the browser code to this:
# Install browsers
RUN apt-get update && apt-get install -y \
    chromium-driver firefox-esr \
    ca-certificates \
    libglib2.0 libnss3 libgconf-2-4 libfontconfig1
  1. Build docker by cding into the directory where your Dockerfile is and running docker-compose build auto-gpt
  2. Run docker-compose run --rm auto-gpt and it should work

No, I dont know how to add to the container as is. I thought the point of the docker option is it has everything it needs setup already, I suspect if others seeing this issue its problem with the container setup. Perhaps the docker container calls out to the main host OS for this function, but I’d doubt it…

TylerBarnes solution works on M1 - thanks mate…

This is how issue fixed for me 1.Loging to docker container as root using the following commands -sudo docker exec --user=“root” -it <CONTAINER> /bin/bash 2. Update the existing chromium version inside the dockercontainer using the following -apt update -apt install chromium-browser

Installing in the docker image

apt-get install -y libglib2.0 libnss3 libgconf-2-4 libfontconfig1 chromium-driver

fixes the issue for me.