Comments (11)
I also had an app break after pushing an update and the Chrome browser version updated without my knowledge.
I've forked this repo with an update that adds an env var for the Chrome browser version. Key for the env var is in the readme.
https://github.com/awl19/heroku-buildpack-google-chrome
from heroku-buildpack-google-chrome.
Thanks @awl19 for your quick and informative response - I do only have the two buildpacks:
- https://github.com/awl19/heroku-buildpack-google-chrome
- https://github.com/heroku/heroku-buildpack-chromedriver
...and had already removed https://github.com/heroku/heroku-buildpack-google-chrome in favour of your one.
I did try the heroku builds:cache:purge
command though and when I re-deployed I only saw the version I expected:
-----> Installing google-chrome-stable_110.0.5481.77-1_amd64.deb
And more importantly I didn't get the SessionNotCreatedError
error so I think my problem is solved... Thanks so much for your help!
from heroku-buildpack-google-chrome.
Same issue for me, any guide on how to block? Thinking about forking and just blocking the version before the updates
from heroku-buildpack-google-chrome.
same issue for me :/
selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 104
CHROMEDRIVER_VERSION not working
from heroku-buildpack-google-chrome.
Same issue here.
from heroku-buildpack-google-chrome.
The same 😢
from heroku-buildpack-google-chrome.
A pull request was submitted for this but it wasn't merged, and is now likely out of date as a fork:
#118
from heroku-buildpack-google-chrome.
Also having the same issue. It would be very helpful if we could specify the chrome version we'd like to use that way we could intentionally change the version when there is a new update instead of crashing without knowing there was an update.
from heroku-buildpack-google-chrome.
Hey @awl19 - thanks for creating the buildpack that allows the Chrome version to be specified! I tried tonight on my project and it didn't work quite as I expected though. On my heroku settings I'm using:
https://github.com/awl19/heroku-buildpack-google-chrome and https://github.com/heroku/heroku-buildpack-chromedriver
I've specified config vars CHROMEDRIVER_VERSION=110.0.5481.77
and CHROME_VERSION=110.0.5481.77
However, When I run run a webdriver process that uses the headless chrome + ChromeDriver I've just installed, I get the following error:
[21:44:45] E/launcher - Error: SessionNotCreatedError: session not created:
This version of ChromeDriver only supports Chrome version 110 Current browser version is 112.0.5615.49 with binary path /app/.apt/opt/google/chrome/chrome (Driver info: chromedriver=110.0.5481.77 (65ed616c6e8ee3fe0ad64fe83796c020644d42af-refs/branch-heads/5481@{#839}),platform=Linux 4.4.0-1104-aws x86_64) at Object.checkLegacyResponse (/app/server/node_modules/selenium-webdriver/lib/error.js:546:15)
at parseHttpResponse (/app/server/node_modules/selenium-webdriver/lib/http.js:509:13) at /app/server/node_modules/selenium-webdriver/lib/http.js:441:30 at processTicksAndRejections (node:internal/process/task_queues:96:5)
I had a detailed look at the heroku install log and noticed the following:
-----> Fetching https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_110.0.5481.77-1_amd64.deb
.....
-----> Installing google-chrome-stable_110.0.5481.77-1_amd64.deb
-----> Installing google-chrome-stable_current_amd64.deb
I'm wondering whether the second installation is overwriting the binary in /app/.apt/opt/google/chrome/chrome
?
Thanks in advance for your help!
from heroku-buildpack-google-chrome.
Hey @nbarrett, that is odd.
When I executed the URL of the Chrome browser bin provided from your log, it did initiate download, so the version is valid and the link is working as expected.
https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_110.0.5481.77-1_amd64.deb
Do you have 2 versions of this buildpack in your Heroku app? One being the original "heroku-buildpack-google-chrome" and the other being my fork? Because if so, I could see that being a conflicting issue.
If that's not the case, then I could see it maybe having to with your build cache, which you can clear by following these instructions. It's something I had to do in order to get things working in my app.
https://help.heroku.com/18PI5RSY/how-do-i-clear-the-build-cache
If it's not either of those two issues, I'm not sure what it could be.
from heroku-buildpack-google-chrome.
@nbarrett Awesome, glad to hear it! Happy coding :)
from heroku-buildpack-google-chrome.
Related Issues (20)
- --host-resolver-rules command line flag working locally but fails on heroku HOT 1
- google-chrome-beta_current_amd64.deb' is not a Debian format archive HOT 23
- --host-resolver-rules crashing application now
- Please update HOT 4
- javascript error
- Chrome crashes when jemalloc build pack is used on Heroku HOT 1
- Not Optimized for Some Websites
- Help my google chrome is old version HOT 1
- Example Ruby in README code is out of date
- Not able to run angular unit test case with chrome browser
- As Heroku being dead for testing purposes. What is the closest alternative for this buildpack on Render?
- ValueError: There is no such driver by url https://chromedriver.storage.googleapis.com/115.0.5790/chromedriver_linux64.zip HOT 3
- Chrome version 116; Chrome Driver expecting version 114 HOT 14
- Security risks of running with `--no-sandbox`
- The chromedriver version (117.0.5938.62) detected in PATH at /app/.chromedriver/bin/chromedriver might not be compatible with the detected chrome version (116.0.5845.187); currently, chromedriver 116.0.5845.96 is recommended for chrome 116.*, so it is advised to delete the driver in PATH HOT 1
- Register Selinium Webdriver HOT 1
- DevToolsActivePort file doesn't exist ( Issue coming in Heroku)
- This version of ChromeDriver only supports Chrome version 121
- executable shim stopped working
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from heroku-buildpack-google-chrome.