agenticSeek icon indicating copy to clipboard operation
agenticSeek copied to clipboard

docker_deployement branch - chromedriver exit when run in docker

Open Fosowl opened this issue 9 months ago • 0 comments

I am currently working on docker deployement on the docker_deployement branch but I am kind of stuck on the following issue, if anyone know or find a solution feel free to reply or send a message on discord. Probably not very difficult but didn't have the time to finish.

The issue is that I want to run the backend in docker (currently it's the only service run on host), I am implementing required change on the docker_deployement branch, it's almost finished, except that the backend service keep exiting due to a error with selenium.

To help with solving:

  • checkout to docker_deployement branch I am currently working on
  • start with./start_services.sh full yes, you need to add "full" as argument to the script
  • You should see the same log as below, the web driver exit with code 255
  • Find a workaround
backend   | Traceback (most recent call last):
backend   |   File "/app/api.py", line 109, in <module>
backend   |     interaction = initialize_system()
backend   |   File "/app/api.py", line 65, in initialize_system
backend   |     create_driver(headless=config.getboolean('BROWSER', 'headless_browser'), stealth_mode=stealth_mode, lang=languages[0]),
backend   |   File "/app/sources/browser.py", line 199, in create_driver
backend   |     return webdriver.Chrome(service=service, options=chrome_options)
backend   |   File "/usr/local/lib/python3.10/dist-packages/selenium/webdriver/chrome/webdriver.py", line 47, in __init__
backend   |     super().__init__(
backend   |   File "/usr/local/lib/python3.10/dist-packages/selenium/webdriver/chromium/webdriver.py", line 58, in __init__
backend   |     self.service.start()
backend   |   File "/usr/local/lib/python3.10/dist-packages/selenium/webdriver/common/service.py", line 106, in start
backend   |     self.assert_process_still_running()
backend   |   File "/usr/local/lib/python3.10/dist-packages/selenium/webdriver/common/service.py", line 119, in assert_process_still_running
backend   |     raise WebDriverException(f"Service {self._path} unexpectedly exited. Status code was: {return_code}")
backend   | selenium.common.exceptions.WebDriverException: Message: Service /usr/local/bin/chromedriver unexpectedly exited. Status code was: 255
backend   | 
backend exited with code 1

Fosowl avatar May 27 '25 21:05 Fosowl