question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[🐛 Bug]: chromedriver unexpectedly exited. Status code was: -5 - - -

See original GitHub issue

What happened?

browser = webdriver.Chrome(

File “/home/snippetbucket/source/odoo/venv3.8/lib/python3.8/site-packages/selenium/webdriver/chrome/webdriver.py”, line 70, in init super(WebDriver, self).init(DesiredCapabilities.CHROME[‘browserName’], “goog”, File “/home/snippetbucket/source/odoo/venv3.8/lib/python3.8/site-packages/selenium/webdriver/chromium/webdriver.py”, line 90, in init self.service.start() File “/home/snippetbucket/source/odoo/venv3.8/lib/python3.8/site-packages/selenium/webdriver/common/service.py”, line 98, in start self.assert_process_still_running() File “/home/snippetbucket/source/odoo/venv3.8/lib/python3.8/site-packages/selenium/webdriver/common/service.py”, line 110, in assert_process_still_running raise WebDriverException( selenium.common.exceptions.WebDriverException: Message: Service /home/snippetbucket/.wdm/drivers/chromedriver/linux64/101.0.4951.41/chromedriver unexpectedly exited. Status code was: -5 - - -

How can we reproduce the issue?

running bottle server

in background use python selenium

Relevant log output

chat = WhatsApp()
  File "/home/snippetbucket/source/odoo/venv3.8/lib/python3.8/site-packages/alright/__init__.py", line 33, in __init__
    browser = webdriver.Chrome(
  File "/home/snippetbucket/source/odoo/venv3.8/lib/python3.8/site-packages/selenium/webdriver/chrome/webdriver.py", line 70, in __init__
    super(WebDriver, self).__init__(DesiredCapabilities.CHROME['browserName'], "goog",
  File "/home/snippetbucket/source/odoo/venv3.8/lib/python3.8/site-packages/selenium/webdriver/chromium/webdriver.py", line 90, in __init__
    self.service.start()
  File "/home/snippetbucket/source/odoo/venv3.8/lib/python3.8/site-packages/selenium/webdriver/common/service.py", line 98, in start
    self.assert_process_still_running()
  File "/home/snippetbucket/source/odoo/venv3.8/lib/python3.8/site-packages/selenium/webdriver/common/service.py", line 110, in assert_process_still_running
    raise WebDriverException(
selenium.common.exceptions.WebDriverException: Message: Service /home/snippetbucket/.wdm/drivers/chromedriver/linux64/101.0.4951.41/chromedriver unexpectedly exited. Status code was: -5 - - -

Operating System

ubuntu 20

Selenium version

latest

What are the browser(s) and version(s) where you see this issue?

101.0.4951

What are the browser driver(s) and version(s) where you see this issue?

101.0.4951

Are you using Selenium Grid?

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
JonEliasMoencommented, Jun 2, 2022

chromium-browser is already the newest version (92.0.4515.98~buster-rpt2) Switching to “apt-get install chromium” now. Think that was the issue

CHROME_PATH = '/usr/lib/chromium-browser/chromium-browser'
CHROMEDRIVER_PATH = '/usr/lib/chromium-browser/chromedriver'

chrome_options = Options()
chrome_options.add_argument("--headless")
#chrome_options.add_argument("--remote-debugging-port=9222 https://chromium.org")
chrome_options.add_argument("--disable-gpu")
chrome_options.add_argument("--no-sandbox")
chrome_options.add_argument("--start-maximized")
chrome_options.binary_location = CHROME_PATH

self.driver = webdriver.Chrome(executable_path=CHROME_PATH,
                    options=chrome_options)
0reactions
github-actions[bot]commented, Jul 3, 2022

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Message: Service chromedriver unexpectedly exited. Status ...
I was receiving the same selenium trace error: WebDriverException: Message: Service chromedriver unexpectedly exited. Status code was: 127.
Read more >
Service chromedriver unexpectedly exited. Status code was: -6
I am trying to run the app on Colab and reported the error: selenium.common.exceptions.WebDriverException: Message: Service chromedriver unexpectedly exited ...
Read more >
Errors Using Selenium/Chromedriver in DataBricks
Hello,. I'm programming in a notebook and attempting to use the python library Selenium to automate Chrome/chromedriver.
Read more >
Chromedriver unexpectedly exits during pipeline run
I'm trying to run a selenium test on my pipeline but this error shows up: WebDriverException( selenium.common.exceptions.WebDriverException: Message:
Read more >
Error when using Selenium from inside a "daemon" process
... Message: Service /home/ubuntu/.wdm/drivers/chromedriver/linux64/103.0.5060.53/chromedriver unexpectedly exited. Status code was: -5.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found