-
Notifications
You must be signed in to change notification settings - Fork 35
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
ChromeDriver install returning 404 and failing to install any backup #102
Comments
Note: If I manually hit the URL below, for the version when I specified it (121.0.6167.85). It returns 200 for me. It appears that is what your script should resolve to https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/121.0.6167.85/linux64/chromedriver-linux64.zip However, I do not see the version installed by default (121.0.6167.139) on the list of available versions on the Chrome for Testing site https://googlechromelabs.github.io/chrome-for-testing/ And indeed, when I attempt to visit https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/121.0.6167.139/linux64/chromedriver-linux64.zip I get a 404 error. Not sure how you're somehow ahead of the latest stable version? Perhaps Google Chrome reverted to an earlier version. Not sure why when I manually set the version number I get the same error, as that one returns fine. |
Just for fun, I tried manually specifying the last stable v120 version 120.0.6099.109. - browser-tools/install-chrome:
chrome-version: 120.0.6099.109
replace-existing: true
- browser-tools/install-chromedriver It installed Chrome fine, but did not install chromedriver. Chrome version major is 120
Installed version of Google Chrome is 120.0.6099.109
404
Matching Chrome Driver Version 404'd, falling back to first matching major version.
/bin/bash: line 159: jq: command not found
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 863 100 863 0 0 57533 0 --:--:-- --:--:-- --:--:-- 57533
(23) Failed writing body
New ChromeDriver version to be installed:
will be installed
curl: (22) The requested URL returned error: 404
mv: cannot stat 'chromedriver-linux64': No such file or directory
mv: cannot stat 'chromedriver/chromedriver': No such file or directory
chmod: cannot access '/usr/local/bin/chromedriver': No such file or directory
/bin/bash: line 202: chromedriver: command not found
Something went wrong; ChromeDriver could not be installed
Exited with code exit status 1 which again is weird, because when I visit:
I get a 200. Not sure what would be causing the discrepancy.... |
I think this is an issue with the Chrome stable desktop release channel being different from the Chrome for Testing stable release channel. The Chrome Releases blog shows As far as I can tell, the install-chrome script seems to be ignoring Chrome for Testing altogether and just downloading regular desktop versions. |
@arthurthefourth That totally makes sense for using the latest. Still not sure why specifying previous versions with supported chromedrivers is breaking though. |
I wonder what’s up with that |
I missed that initially. My guess would be that since If it's a prereq for the orb, probably should add that to the documentation. Alternatively, it might make sense to see if the script can perform the actions without the overhead of adding an additional binary to the environment. |
So looking into the PR history, it looks like I'm guessing the assumption was you'd have installed So, if you run it after installing orbs:
jq: circleci/[email protected]
browser-tools: circleci/[email protected]
#....
steps:
- jq/install:
version: jq-1.7
- browser-tools/install-chrome
- browser-tools/install-chromedriver |
With 1.4.6 I have started to get 404 too when I don't specify a version.
Looks like the fallback is happening but using the same version as before so it is 404 again. |
As a workaround, I can suggest steps:
# Until https://github.com/CircleCI-Public/browser-tools-orb/issues/102 is resolved
# - browser-tools/install-chrome
# - browser-tools/install-chromedriver
- browser-tools/install-browser-tools:
chrome-version: 114.0.5735.90 |
Looks like now it is working:
|
Ah right, I thought you'd linked to
But
So when an official release like
@tujlaky are there any issues once you've got the right fallback version? |
No, after the fallback everything is working. I think in my case the json contained a version which was not available to download. This was not an issue with the orb. Thanks for the help |
Yeah, it looks like the problem was that the new version was not available at https://edgedl.me.gvt1.com |
It's broken for me again.
|
For me too |
I have created a PR because there is a small typo in the script which is preventing the usage of a fix version on the 121 versions. Eg: the following version will still show a 404: 121.0.6167.85 but that should work with the following:
@arthurthefourth because of this what your are mentioning in 2 will be always a 404 so it will always go for the fallback. |
Should not this script use the following URL for the download for the newest versions? Which is working for me. But the one what the script is using is not: From this page: |
During chromedriver installation step I got the following output:
so, it installed as expected, but with a BASH error. |
I'm also experiencing the bash syntax error:
I realize that the script says chromedriver has been installed, but when I try to use a headless chrome via
so I suspect that the chromedriver installation script may not have actually worked... |
EDIT: it was a testcafe problem: DevExpress/testcafe#8145
Might have to walk this back a bit: I tried pinning chrome to 116: - run:
name: apt-get update
command: sudo apt-get update
- browser-tools/install-chrome:
replace-existing: true
chrome-version: 116.0.5845.110 and while I still got the bash syntax error, the rest of the CI job worked, so maybe my problem is with
|
Same issue on our end too, I reported it here cypress-io/circleci-orb#459 (comment) |
Honestly with how fast Google is releasing chrome versions and the potential delay between a new Google Chrome version being out and the corresponding ChromeDriver version is out, I feel like the best way to go about this is to check the latest stable ChromeDriver version, download corresponding chrome and then install the ChromeDriver for it. |
@neospeed83 Do you think using the Chrome for Testing binaries for Chrome instead of the official releases isn't an option? That'd certainly be my preference, since those are already matched. But I don't know much about what scenarios this orb has to support. If that way isn't possible, I agree that your suggestion seems like the best way forward. |
Should we (the users of the orb) look for alternatives as there is no work-around and the PR is just sitting there ? |
We started to use firefox in the meantime. That looks more stable. |
Seeing similar with 124
|
We're seeing this again. We initially specified version 114.0.5735.90 per recommendations above. A couple weeks ago that version stopped working so we switched to 114.0.5735.198. Today that version disappeared.
Does anyone have a good strategy for quickly identifying a new version that is available? Or a strategy for determining how much longer a given version is likely to be available? |
we are seeing the same issue as @markzalar and @cartwrightian when specifying versions. In my case the 114.0.5735.X versions. I tried looking at the chrome releases blog and at the refs in chromium repository for versions and tried several, all with the same results ➡️ the same 404 and failure to install. I was wondering if there is any way we could specify a mirror url as a parameter for the orb as a temp fix, because I can't seem to find another way. Any help is hugely appreciated. Edit: I forgot to add that I changed to firefox and all is working as expected, but I'd like to go back to chrome if possible. |
This started to break again on 17th July 2024 for us The following worked: orbs:
- browser-tools: circleci/[email protected]
+ browser-tools: circleci/[email protected]
commands:
install-chrome:
steps:
- - run: sudo apt-get update # TODO: remove when chromedriver downloads are fixed
- - browser-tools/install-chrome:
- chrome-version: 116.0.5845.96 # TODO: remove when chromedriver downloads are fixed
+ - browser-tools/install-chrome
- browser-tools/install-chromedriver |
A new version of the orb was released, I hope it helps with this issue. |
Orb version
1.4.6
What happened
Went to update our Chrome version to just be set to the latest version by default. Updated our config to read:
That resulted in this error when the "Install Chromedriver" step was hit:
Also tried manually setting the Chromedriver version (121.0.6167.85), but got the same result. When I reverted to the old version of Chrome we were previously using (114.0.5735.90), everything worked fine.
Expected behavior
Ideally chromedriver would have been installed.
The text was updated successfully, but these errors were encountered: