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

WebDriverException: Message: Service chromedriver unexpectedly exited. Status code was: 1 #28

Open
gtpeter opened this issue Jan 13, 2023 · 5 comments

Comments

@gtpeter
Copy link

gtpeter commented Jan 13, 2023

Hi, Mr. Korakot !

Today 13 Jan 2023. My Colab is facing a strange issue, i.e, it can not pass following script (This Monday 09 Jan was still working) :

###################
!pip3 install kora -q

from kora.selenium import wd

########################
with Error:
WebDriverException: Message: Service chromedriver unexpectedly exited. Status code was: 1

kora error 1
kora error 2

I even tried without Kora (as below). it gives the same error:

##########

!pip install selenium
!apt-get update
!apt install chromium-chromedriver

from selenium import webdriver
chrome_options = webdriver.ChromeOptions()
chrome_options.add_argument('--headless')
chrome_options.add_argument('--no-sandbox')
chrome_options.add_argument('--disable-dev-shm-usage')
driver = webdriver.Chrome('chromedriver',chrome_options=chrome_options)

###############

@kpennell
Copy link

Dealing with the same issue here

@gtpeter
Copy link
Author

gtpeter commented Jan 22, 2023

Sorry for forgetting to update

The problem was auto-resolved by it self a few days ago. (But no time to update here)

Today, I would like to update here, and I happened to see (User: kpennell) reported the same issue (yesterday), therefore I just went to test again, Yes, the same issue comes back again, the ONLY difference is the Status code was: -6
Previously was: 1

Hope this problem can be resolved permanently !

@korakot
Copy link
Owner

korakot commented Jan 23, 2023

For now, please use the solution here

https://stackoverflow.com/a/75164596/6729010

@gtpeter
Copy link
Author

gtpeter commented Jan 23, 2023

Thanks, Korakot

This morning, I also noticed similar thread from googlecolab github:
googlecolab/colabtools#3347

, but spent whole morning to solve another problem: "unmet dependencies" (as screenshot-1). I tried many methods from google, and finally realized that my Colab environment is still Ubuntu 18.04 (screenshot-2). But if it still 18.04, then wondering why doesn't the previous methods (kora or non-kora) work.

After duplicate the notebook, the Ubuntu environment change to 20.04, and the NEW method works as expected.

image

image

@kpennell
Copy link

kpennell commented Jan 24, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants