Open i386 opened 4 years ago
I'm having the same issue. My Heroku CI pipeline broke as a result of this problem. The failure I'm seeing is this:
Selenium::WebDriver::Error::SessionNotCreatedError:
session not created: This version of ChromeDriver only supports Chrome version 85
My app.json file looks like this:
{
"environments": {
"test": {
"addons": ["heroku-postgresql:in-dyno", "heroku-redis:in-dyno"],
"buildpacks": [
{ "url": "heroku/ruby" },
{ "url": "https://github.com/heroku/heroku-buildpack-chromedriver" },
{ "url": "https://github.com/heroku/heroku-buildpack-google-chrome" }
],
"formation": {
"test": {
"quantity": 1,
"size": "performance-l"
}
},
"scripts": {
"test-setup": "rails db:structure:load; bin/rails assets:precompile",
"test": "bin/rspec"
}
}
}
}
But I've also tried removing the chromedriver buildpack and that fails with the following message:
Selenium::WebDriver::Error::WebDriverError:
Unable to find chromedriver. Please download the server from
https://chromedriver.storage.googleapis.com/index.html and place it somewhere on your PATH.
Clearing my build cache fixed this issue for me. Instructions here.
These build packs are a production nightmare. No combination of environment variables will have you a working chrome + chrome driver configuration that won't break the moment a chrome version moves between channels.
My horrible scraping solution broke today because chrome driver got out of sync with chrome. I use
heroku-buildpack-chromedriver
which is run afterheroku-buildpack-google-chrome
During investigation, it turns out that there are two chromedrivers installed - one in
~/.apt
and another in~/.chromedriver
Looks like
heroku-buildpack-google-chrome
is dragging inchromium-chromedriver
somehow:According to the README this build pack shouldn't be doing that