Selenium webdriver, chromedriver and chrome with docker image failed by crashing Chrome
Posted over 3 years ago by Akaninyene Ntuk
Post a topicPeople who like this
Delete Comment
This post will be deleted permanently. Are you sure?
Code Snippet
Html
Html
Css
JavaScript
Sass
Xml
Ruby
PHP
Java
C#
C++
ObjectiveC
Perl
Python
VB
SQL
Generic Language
I have the following error after configuring a custom docker image for my spider
(The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
I need help, have been struggling with this for the past one month with a paid account on Zyte Scrapy Cloud. I have attached my spider, dockerfile and requirement file.
Thank you.
Attachments (4)
scrapinghub.yml
156 Bytes
requirements.txt
135 Bytes
Dockerfile.Dockerfile
2.64 KB
Soccer.py
27 KB
0 Votes
7 Comments
Mohsin Mahmood posted over 1 year ago
@pinak, Did you resolved this issue ?
0 Votes
Pinak Rout posted over 3 years ago
@thriveni,
With Ref: https://support.zyte.com/support/solutions/articles/22000240310, I have set up all the components according to the mentioned article. Each time while I'm running the spider encountered with the issue like:
0 Votes
thriveni posted over 3 years ago Admin
Please ensure that executable path is also added along with below arguments.
Please refer to this article which gives example of dockerfile and sample working code.
0 Votes
Pinak Rout posted over 3 years ago
I'm facing the same issue like: The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed
0 Votes
Diego Bor Nav posted over 3 years ago
hi
my situation is the same... any update?
0 Votes
Akaninyene Ntuk posted over 3 years ago
@thriveni I have effected those changes and am still having the same error. Am using PC, Windows OS and Windows 10.
0 Votes
thriveni posted over 3 years ago Admin
Hello,
Please try after removing
self.options.headless = True as its provided through argument self.options.add_argument('--headless').
Also in this,
self.driver = webdriver.Chrome(options=self.options)
please add the path where the executable is present as
self.driver = webdriver.Chrome(options=self.options, executable_path='/usr/bin/chromedriver')
Please let us know if the changes helped.
0 Votes
Login to post a comment