-
Notifications
You must be signed in to change notification settings - Fork 34
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
Installing Chrome fails (exit status 18) #33
Comments
We got the same issue. I tried your workaround but that doesn't work either. |
Dupe of #34 (I suspect) so closing this issue in favour of that thread. |
Swap to install all the browser tools as `install-chrome` by itself is broken. There is an open PR to resolve this issue. In the meantime just install all the things. CircleCI-Public/browser-tools-orb#33
Swap to install all the browser tools as `install-chrome` by itself is broken. There is an open PR to resolve this issue. In the meantime just install all the things. CircleCI-Public/browser-tools-orb#33
Swap to install all the browser tools as install-chrome by itself is broken. There is an open PR to resolve this issue. In the meantime just install all the things. CircleCI-Public/browser-tools-orb#33
Swap to install all the browser tools as install-chrome by itself is broken. There is an open PR to resolve this issue. In the meantime just install all the things. CircleCI-Public/browser-tools-orb#33 Also remove setting the ACCEPTANCE_TESTS_EDITOR_APP and CI_MODE environment variables in their own step as they are set inside the command below.
Swap to install all the browser tools as install-chrome by itself is broken. There is an open PR to resolve this issue. In the meantime just install all the things. CircleCI-Public/browser-tools-orb#33
Update: I tried again today and it seems fine now, so this may be resolved? |
I've seen this error 3 times in the last few hours. |
We continue to see this failure regularly. |
We've seen this fail more than ten times across many different jobs, and it's currently blocking our ability to deploy (since we use CircleCI for continuous deployment). Is it possible to set a higher number of retries, or add a setting to cache the downloads for some period of time? |
I can confirm, we face this issue a lot since yesterday. |
I had this issue too. Workaround for now was to specify the Chrome version:
I used the version in the orb docs |
Same issue over here. Strangely enough for now we only see it fail in one of our projects, but not in another project which uses the same browser-tools version and similar configuration (but maybe it will start failing there soon as well). I will try the specific Chrome version work around (thanks everybody), but a proper fix in this orb for installing the latest Chrome version would be great! |
Also seeing this issue very often. |
👋 the below provides the fallback to continue the download using http1.1 if the initial curl doesn’t succeed:
|
Hey everyone. The main problem here is that Google's Server is responding in strange ways. I think partially due to a form of rate limiting. The orb has been updated, v2 of this orb is being planned with a potential new install method that will hopefully avoid this problem altogether. |
I was having this problem earlier on a workflow that ran many parallel jobs that ended up downloading Chrome in each one, and the failures were resulting in some time-consuming job re-runs if just one parallel job failed. To get around this I ended up extending the base node-browsers image CircleCI provides with the Chrome download that was included in the legacy base images, so my custom image looked like this: FROM cimg/node:<NODE_VERSION>-browsers
RUN curl --silent --show-error --location --fail --retry 3 --output /tmp/google-chrome-stable_current_amd64.deb https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb \
&& (sudo dpkg -i /tmp/google-chrome-stable_current_amd64.deb || sudo apt-get -fy install) \
&& rm -rf /tmp/google-chrome-stable_current_amd64.deb \
&& sudo sed -i 's|HERE/chrome"|HERE/chrome" --disable-setuid-sandbox --no-sandbox|g' \
"/opt/google/chrome/google-chrome" \
&& google-chrome --version
RUN export CHROMEDRIVER_RELEASE=$(curl --location --fail --retry 3 http://chromedriver.storage.googleapis.com/LATEST_RELEASE) \
&& curl --silent --show-error --location --fail --retry 3 --output /tmp/chromedriver_linux64.zip "http://chromedriver.storage.googleapis.com/$CHROMEDRIVER_RELEASE/chromedriver_linux64.zip" \
&& cd /tmp \
&& unzip chromedriver_linux64.zip \
&& rm -rf chromedriver_linux64.zip \
&& sudo mv chromedriver /usr/local/bin/chromedriver \
&& sudo chmod +x /usr/local/bin/chromedriver \
&& chromedriver --version This seems to have resolved the issue since now Chrome is only downloaded when a new image is created, which is happening outside of CI. |
Orb version
version 1.2.1
What happened
browser-tools/install-chrome
(with no chrome version set, so it should be "latest")fails with
e.g. https://app.circleci.com/pipelines/github/wunderteam/portal/10969/workflows/233c3e6e-65df-474d-bf2f-d2f2c07a932e/jobs/90380
This happens in roughly 75% of our builds
Expected behavior
browser-tools/install-chrome
should complete without errorWorkaround
I updated our config to hardcode the Chrome version, which fixed the issue:
This seems to suggest the issue is with downloading the latest version of Chrome from https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
The text was updated successfully, but these errors were encountered: