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

ChromeDriver install fail #95

Closed
karlentwistle opened this issue Sep 12, 2023 · 11 comments
Closed

ChromeDriver install fail #95

karlentwistle opened this issue Sep 12, 2023 · 11 comments

Comments

@karlentwistle
Copy link

karlentwistle commented Sep 12, 2023

Orb version

browser-tools: circleci/[email protected]

What happened

"Install ChromeDriver" step fails, output is:

Chrome version major is 116
Installed version of Google Chrome is 116.0.5845.187 
404
Matching Chrome Driver Version 404'd, falling back to first matching major version.
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   567  100   567    0     0   6968      0 --:--:-- --:--:-- --:--:--  7000
New ChromeDriver version to be installed: 116
116 will be installed
curl: (22) The requested URL returned error: 404

Exited with code exit status 22

Expected behavior

It should install whatever the latest version of Chrome can be downloaded.


I think the issue is with this LOC

CHROMEDRIVER_VERSION=$( curl https://googlechromelabs.github.io/chrome-for-testing/latest-versions-per-milestone.json | grep -o "$CHROME_VERSION_MAJOR.*" | grep -o "version.*" | grep -o '\:*'"$CHROME_VERSION_MAJOR"'.*,' | sed 's/".*//')

its returning 116 instead of 116.0.5845.96

For example:

curl https://googlechromelabs.github.io/chrome-for-testing/latest-versions-per-milestone.json | grep -o "116.*"  | grep -o "version.*" | grep -o '\:*'"116"'.*,' | sed 's/".*//'
@karlentwistle karlentwistle changed the title ChromeDriver install fail ChromeDriver install fail (using 1.4.5) Sep 12, 2023
@karlentwistle karlentwistle changed the title ChromeDriver install fail (using 1.4.5) ChromeDriver install fail Sep 12, 2023
@chefvivica
Copy link

Same issue here with 1.4.5

@hoylemd
Copy link

hoylemd commented Sep 12, 2023

Same, and previous workaround doesn't work for me either

- browser-tools/install-browser-tools:
    chrome-version: 116.0.5845.96 # TODO: remove when chromedriver downloads are fixed
Google Chrome is not currently installed; installing it
Preparing Chrome installation for Debian-based systems
2023-09-12 19:17:35 URL:https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_116.0.5845.96-1_amd64.deb [96765132/96765132] -> "/tmp/chrome.deb" [1]
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'google-chrome-stable' instead of '/tmp/chrome.deb'
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
google-chrome-stable : Depends: libu2f-udev but it is not installable
E: Unable to correct problems, you have held broken packages.
/bin/bash: line 129: google-chrome-stable: command not found
Google Chrome v116.0.5845.96 (stable) failed to install.

Exited with code exit status 1

(on the 'Install Google Chrome' step)

@chefvivica
Copy link

chefvivica commented Sep 12, 2023

Same, and previous workaround doesn't work for me either

- browser-tools/install-browser-tools:
    chrome-version: 116.0.5845.96 # TODO: remove when chromedriver downloads are fixed
Google Chrome is not currently installed; installing it
Preparing Chrome installation for Debian-based systems
2023-09-12 19:17:35 URL:https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_116.0.5845.96-1_amd64.deb [96765132/96765132] -> "/tmp/chrome.deb" [1]
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'google-chrome-stable' instead of '/tmp/chrome.deb'
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
google-chrome-stable : Depends: libu2f-udev but it is not installable
E: Unable to correct problems, you have held broken packages.
/bin/bash: line 129: google-chrome-stable: command not found
Google Chrome v116.0.5845.96 (stable) failed to install.

Exited with code exit status 1

(on the 'Install Google Chrome' step)

@hoylemd Did you use 1.4.4 for this workaround?
1.4.4 worked for me with this workaround

@hoylemd
Copy link

hoylemd commented Sep 12, 2023

Not at first, but rolling back to 1.4.4 did make it work, so I'm rollin with

ersion: 2.1
orbs:
  browser-tools: circleci/[email protected]
jobs:
  build:
    working_directory: ~/crowdmark/crowdmark-web
    docker:
    - image: cimg/node:16.16-browsers

    steps:
    - run: sudo apt-get update
    - browser-tools/install-browser-tools:

(apt-get update might have helped but i doubt it does, i'll update this when i conform)

@karlentwistle
Copy link
Author

For a workaround we're using

version: 2.1
orbs:
  browser-tools: circleci/[email protected]
- browser-tools/install-chrome:
          chrome-version: 116.0.5845.96 # TODO: remove -> https://github.com/CircleCI-Public/browser-tools-orb/issues/95

@ryanbourdais
Copy link
Contributor

I'm looking into it right now, this was actually caused by an a change in the api endpoint, the timestamp contains 116 so the logic using attempts to grab the version number from there instead of the milestone. This should be a decently easy/quick fix. Output from this endpoint: {"timestamp":"2023-09-12T18:09:06.116Z","milestones":{"113":{"milestone":"113","version":"113.0.5672.63","revision":"1121455"},"114":{"milestone":"114","version":"114.0.5735.133","revision":"1135570"},"115":{"milestone":"115","version":"115.0.5790.170","revision":"1148114"},"116":{"milestone":"116","version":"116.0.5845.96","revision":"1160321"},"117":{"milestone":"117","version":"117.0.5938.62","revision":"1181205"},"118":{"milestone":"118","version":"118.0.5993.3","revision":"1192594"},"119":{"milestone":"119","version":"119.0.6004.0","revision":"1194959"}}}

@hoylemd
Copy link

hoylemd commented Sep 12, 2023

Awesome, thanks for the rapid response @ryanbourdais

@ryanbourdais
Copy link
Contributor

Pull Request opened, comments and reviews are much appreciated. I am hoping that this is the end of this chrome driver saga, but I'll keep an eye on this repository in the coming days to make sure.

@ryanbourdais
Copy link
Contributor

A new version of this orb has been cut, v1.4.6, and should resolve this issue. I will leave this issue open for the remainder of the week in case this issue is not resolved

@secobarbital
Copy link

secobarbital commented Sep 18, 2023

1.4.6 worked for a few days when it was installing chrome v116, now it is failing again after installing v117. Setting the chrome-version to v116 causes the same problem as before:

Google Chrome is not currently installed; installing it
Preparing Chrome installation for Debian-based systems
2023-09-16 21:02:14 URL:https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_116.0.5845.187-1_amd64.deb [96665460/96665460] -> "/tmp/chrome.deb" [1]
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'google-chrome-stable' instead of '/tmp/chrome.deb'
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 google-chrome-stable : Depends: libu2f-udev but it is not installable
                        Depends: libvulkan1 but it is not installable
E: Unable to correct problems, you have held broken packages.
/bin/bash: line 130: google-chrome-stable: command not found
Google Chrome v116.0.5845.187 (stable) failed to install.

Exited with code exit status 1

@ryanbourdais
Copy link
Contributor

@secobarbital that seems to be a separate issue, can you open a new issue with a build link?

rainerdema added a commit to solidusio/solidus_starter_frontend that referenced this issue Oct 4, 2023
Upgrading the browser-tools Orb to version 1.4.6 in our CircleCI configuration
in order to address the failure when installing Chromedriver:
```
Installed version of Google Chrome is 116.0.5845.140 
curl: (22) The requested URL returned error: 404

Exited with code exit status 22
```

Related issue: CircleCI-Public/browser-tools-orb#95.
ts-ua added a commit to ts-ua/solidus-start-app that referenced this issue Feb 23, 2024
Upgrading the browser-tools Orb to version 1.4.6 in our CircleCI configuration
in order to address the failure when installing Chromedriver:
```
Installed version of Google Chrome is 116.0.5845.140 
curl: (22) The requested URL returned error: 404

Exited with code exit status 22
```

Related issue: CircleCI-Public/browser-tools-orb#95.
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

5 participants