Skip to content
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

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

Closed
tejastank opened this issue May 23, 2022 · 5 comments
Closed
Labels
I-defect I-issue-template Applied to issues not following the template, or missing information.

Comments

@tejastank
Copy link

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

@github-actions
Copy link

@tejastank, thank you for creating this issue. We will troubleshoot it as soon as we can.


Info for maintainers

Triage this issue by using labels.

If information is missing, add a helpful comment and then I-issue-template label.

If the issue is a question, add the I-question label.

If the issue is valid but there is no time to troubleshoot it, consider adding the help wanted label.

If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C), add the applicable G-* label, and it will provide the correct link and auto-close the issue.

After troubleshooting the issue, please add the R-awaiting answer label.

Thank you!

@diemol diemol added I-issue-template Applied to issues not following the template, or missing information. and removed needs-triaging labels May 23, 2022
@github-actions
Copy link

Hi, @tejastank.
Please follow the issue template, we need more information to reproduce the issue.

Either a complete code snippet and URL/HTML (if more than one file is needed, provide a GitHub repo and instructions to run the code), the specific versions used, or a more detailed description to help us understand the issue.

Note: If you cannot share your code and URL/HTML, any complete code snippet and URL/HTML that reproduces the issue is good enough.

Reply to this issue when all information is provided, thank you.

@diemol
Copy link
Member

diemol commented Jun 2, 2022

Closing as no more info was provided.

@diemol diemol closed this as completed Jun 2, 2022
@JonEliasMoen
Copy link

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)

@github-actions
Copy link

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.

@github-actions github-actions bot locked and limited conversation to collaborators Jul 3, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
I-defect I-issue-template Applied to issues not following the template, or missing information.
Projects
None yet
Development

No branches or pull requests

3 participants