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

Selenium Chrome Heroku #47

Open
muhammedtufekyapan opened this issue Jun 18, 2020 · 3 comments
Open

Selenium Chrome Heroku #47

muhammedtufekyapan opened this issue Jun 18, 2020 · 3 comments

Comments

@muhammedtufekyapan
Copy link

Hi Everyone,

Is there any way to solve Heroku's problem with Selenium Chrome engine with Kimurai?

I need to use

@engine = :selenium_chrome

I use build packs for Chrome on Heroku but I still gots error related to file path of Chrome and couldn't find any way to define it in spider settings.

Error message from Heroku:

Selenium::WebDriver::Error::WebDriverError: not a file: "/usr/local/bin/chromedriver"

@muhammedtufekyapan
Copy link
Author

Hi everyone,

I fix this issue but now I stuck with ChromeDriver on Heroku. I got the following error;

Selenium::WebDriver::Error::WebDriverError: unable to connect to chromedriver 127.0.0.1:9515

Is there anybody knows how to fix this issue?

@johnphamvan
Copy link

@muhammedtufekyapan You likely need to use your own Docker container with chromedriver and headless chrome installed on it. Heroku's default stacks do not have chrome or chromedriver. See https://devcenter.heroku.com/articles/stack-packages

@bubbaspaarx
Copy link

bubbaspaarx commented Aug 13, 2020

Have a look here too. Might help with the driver locations for Chrome and Chromedriver. They have to be manually set for Heroku to pick them up. Set them as ENV variables and reference them as per this link.
https://milk1000cc.hatenablog.com/entry/2019/11/04/114351

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