-
-
Notifications
You must be signed in to change notification settings - Fork 240
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
selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally #12
Comments
@shapetheLOLa Hmm... this is really weird. Sounds like it's either the wrong chrome driver for your system or your droplet hasn't got enough power (RAM) |
Im using the same chromedriver as in instapy, I've just copied it to the other location. Not sure what you mean by droplet and enough RAM tho. The Linux server has plenty |
@shapetheLOLa |
Oh sorry, yea but same error there. I've just tried it with python 2.7 after 3 didnt work. Here is the output |
@shapetheLOLa |
This won't help, will it? the chromedriver is in the assets folder, not /opt/google or /opt/. I've tried putting it there and put a link to the assets folder, still no luck |
I had this problem. You need to make sure it's running as headless. In below the other similar add_argument lines |
I also had this problem, even though I was starting chrome in headless mode. For those who come across this in the future, I found adding "--no-sandbox" to the chrome startup arguments solved the problem. |
for some reason, wasnt working with chromedriver 2.29, had to update to 2.35 and worked |
Following on from @k1ltr0 - I have just had to update to v2.36 from 2.33 after receiving this error message. It's working fine now. |
Hello,
Second pc cannot run it. I tried to do everything I read on the internet but still getting error:
I tried to add chrome_options.add_argument('--headless') and chrome_options.add_argument('--no-sandbox') + I set Path variable and still getting this error. Do you know how to solve it? |
@r8w9a5k which your version of python? |
@r8w9a5k |
@happyhq I am using python 3.6.1 and latest chromedriver 2.3.7 |
@happyhq Today I tried to run that on python 3.6.5 and chromedriver 2.3.7 with both 32bit or 64 bit and it still doesn't work. I am really angry why two indetical Dell computers differs. |
Please choice the right version of chrome and chromedriver。 |
@r8w9a5k Maybe the version of chrome is too old. |
@happyhq Version of Chrome browser is the latest. Chromedriver is also up to date. I tried lower versions but error is still same. |
@happyhq I solved my problem. I used procmon to trace what's going on with chromedriver.exe and I found out that the problem was in admin rights. I simply checked to run my IDLE and chromedriver as administrator and now it works just fine. |
@timgrossmann can be closed |
instapy is running perfectly, however I'm having trouble starting profilecrawl. Heres the output after trying to start it :
Traceback (most recent call last): File "crawl_profile.py", line 18, in <module> browser = webdriver.Chrome('./assets/chromedriver', chrome_options=chrome_options) File "/home/jwkoch/.local/lib/python2.7/site-packages/selenium/webdriver/chrome/webdriver.py", line 69, in __init__ desired_capabilities=desired_capabilities) File "/home/jwkoch/.local/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 98, in __init__ self.start_session(desired_capabilities, browser_profile) File "/home/jwkoch/.local/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 188, in start_session response = self.execute(Command.NEW_SESSION, parameters) File "/home/jwkoch/.local/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 256, in execute self.error_handler.check_response(response) File "/home/jwkoch/.local/lib/python2.7/site-packages/selenium/webdriver/remote/errorhandler.py", line 194, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally (Driver info: chromedriver=2.29.461571 (8a88bbe0775e2a23afda0ceaf2ef7ee74e822cc5),platform=Linux 4.4.0-83-generic x86_64)
You got any hints/ideas?
The text was updated successfully, but these errors were encountered: