Giter Site home page Giter Site logo

selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally about instagram-profilecrawl HOT 20 CLOSED

instapy avatar instapy commented on May 14, 2024
selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally

from instagram-profilecrawl.

Comments (20)

0xc0392b avatar 0xc0392b commented on May 14, 2024 53

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.
E.g. chrome_options.add_argument('--no-sandbox')

from instagram-profilecrawl.

Jayphen avatar Jayphen commented on May 14, 2024 4

I had this problem. You need to make sure it's running as headless.

In crawl_profile.py, add
chrome_options.add_argument('--headless')

below the other similar add_argument lines

from instagram-profilecrawl.

tcvieira avatar tcvieira commented on May 14, 2024 3

@shapetheLOLa
Have you tried this stackoverflow question ?
Are you running as root?

from instagram-profilecrawl.

r8w9a5k avatar r8w9a5k commented on May 14, 2024 1

@happyhq Version of Chrome browser is the latest. Chromedriver is also up to date. I tried lower versions but error is still same.

from instagram-profilecrawl.

r8w9a5k avatar r8w9a5k commented on May 14, 2024 1

@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.

from instagram-profilecrawl.

timmoh avatar timmoh commented on May 14, 2024 1

@timgrossmann can be closed
@shapetheLOLa please close

from instagram-profilecrawl.

timgrossmann avatar timgrossmann commented on May 14, 2024

@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)

from instagram-profilecrawl.

shapetheLOLa avatar shapetheLOLa commented on May 14, 2024

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

from instagram-profilecrawl.

tcvieira avatar tcvieira commented on May 14, 2024

@shapetheLOLa
On the log looks like it´s using selenium webdriver from python2.7
"/home/jwkoch/.local/lib/python2.7/site-packages/selenium/webdriver/chrome/webdriver.py"
Try install selenium for python3
pip3 install selenium
and run with python3

from instagram-profilecrawl.

shapetheLOLa avatar shapetheLOLa commented on May 14, 2024

Oh sorry, yea but same error there. I've just tried it with python 2.7 after 3 didnt work.
I've also tried using a later chromedriver version.

Here is the output
⇒ python3.5 crawl_profile.py 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/python3.5/site-packages/selenium/webdriver/chrome/webdriver.py", line 69, in __init__ desired_capabilities=desired_capabilities) File "/home/jwkoch/.local/lib/python3.5/site-packages/selenium/webdriver/remote/webdriver.py", line 98, in __init__ self.start_session(desired_capabilities, browser_profile) File "/home/jwkoch/.local/lib/python3.5/site-packages/selenium/webdriver/remote/webdriver.py", line 188, in start_session response = self.execute(Command.NEW_SESSION, parameters) File "/home/jwkoch/.local/lib/python3.5/site-packages/selenium/webdriver/remote/webdriver.py", line 256, in execute self.error_handler.check_response(response) File "/home/jwkoch/.local/lib/python3.5/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.30.477691 (6ee44a7247c639c0703f291d320bdf05c1531b57),platform=Linux 4.4.0-83-generic x86_64)

from instagram-profilecrawl.

shapetheLOLa avatar shapetheLOLa commented on May 14, 2024

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

from instagram-profilecrawl.

k1ltr0 avatar k1ltr0 commented on May 14, 2024

for some reason, wasnt working with chromedriver 2.29, had to update to 2.35 and worked

from instagram-profilecrawl.

djlowes avatar djlowes commented on May 14, 2024

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.

from instagram-profilecrawl.

r8w9a5k avatar r8w9a5k commented on May 14, 2024

Hello,
I got 2 identical Dell computers with both win10.
First one can run selenium via simple python code

from selenium import webdriver
driver = webdriver.Chrome()
driver.get('https://www.google.cz')

Second pc cannot run it. I tried to do everything I read on the internet but still getting error:

selenium.common.exceptions.WebDriverException: Message: unknown error: chrome failed to start
(Driver info: chromedriver=2.37.544315 (730aa6a5fdba159ac9f4c1e8cbc59bf1b5ce12b7),platform=Windows NT 10.0.16299 x86_64)

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?

from instagram-profilecrawl.

happyhq avatar happyhq commented on May 14, 2024

@r8w9a5k which your version of python?

from instagram-profilecrawl.

happyhq avatar happyhq commented on May 14, 2024

@r8w9a5k
I meet the same problem。before,I think it‘s the version of python。But NOT。
it ’s the veriosn of chrome。
Please choice the right version of chrome and chromedriver。
You can see from https://sites.google.com/a/chromium.org/chromedriver/。

from instagram-profilecrawl.

r8w9a5k avatar r8w9a5k commented on May 14, 2024

@happyhq I am using python 3.6.1 and latest chromedriver 2.3.7

from instagram-profilecrawl.

r8w9a5k avatar r8w9a5k commented on May 14, 2024

@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.

from instagram-profilecrawl.

happyhq avatar happyhq commented on May 14, 2024

@r8w9a5k

Please choice the right version of chrome and chromedriver。
You can see from https://sites.google.com/a/chromium.org/chromedriver/。

from instagram-profilecrawl.

happyhq avatar happyhq commented on May 14, 2024

@r8w9a5k Maybe the version of chrome is too old.

from instagram-profilecrawl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.