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

Downloading chromedriver fails #199

Closed
petschki opened this issue Aug 2, 2023 · 12 comments
Closed

Downloading chromedriver fails #199

petschki opened this issue Aug 2, 2023 · 12 comments

Comments

@petschki
Copy link

petschki commented Aug 2, 2023

Recently we get the following error from curl:

Run nanasess/setup-chromedriver@v2
  with:
  env:
    pythonLocation: /opt/hostedtoolcache/Python/3.8.17/x64
    PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.8.17/x64/lib/pkgconfig
    Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.17/x64
    Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.17/x64
    Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.17/x64
    LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.8.17/x64/lib
##setup chromedriver
/home/runner/work/_actions/nanasess/setup-chromedriver/v2/lib/setup-chromedriver.sh  linux64
Installing ChromeDriver 115.0.5790.110 for linux64
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  232k  100  232k    0     0  2425k      0 --:--:-- --:--:-- --:--:-- 2425k
Downloading 
curl: Remote file name has no length!
curl: (23) Failed writing received data to disk/application
Error: The process '/home/runner/work/_actions/nanasess/setup-chromedriver/v2/lib/setup-chromedriver.sh' failed with exit code 23

Were there changes on the download rate limit at Google?

@johantell
Copy link

It started working for me just now (had the issue described above). Same for you?

@nanasess
Copy link
Owner

nanasess commented Aug 2, 2023

@petschki Are the problems still persisting?

@robbl
Copy link

robbl commented Aug 2, 2023

I have the same issue. Before I was using v1 and notices some 404 errors, when the action tried to download chromedriver. Now I switched to v2 see the same error as above. I've got a setup with a build matrix and some jobs randomly fail and others finish successfully.

Is there anything a can assist or provide, that we can learn about the issue?

@petschki
Copy link
Author

petschki commented Aug 2, 2023

Its indeed a bit flaky but it occurred right now again.

@nanasess
Copy link
Owner

nanasess commented Aug 2, 2023

@robbl @petschki
Please provide a link to the GitHub Actions for success and failure.

@robbl
Copy link

robbl commented Aug 2, 2023

@robbl @petschki
Please provide a link to the GitHub Actions for success and failure.

Sorry, private repo 🫣 Anything else I can provide?

@petschki
Copy link
Author

petschki commented Aug 2, 2023

Failure: https://github.com/collective/collective.collectionfilter/actions/runs/5736016672/job/15549923763
Success (but robot failures): https://github.com/collective/collective.collectionfilter/actions/runs/5736016672/job/15549923081

Both jobs are in the same workflow as you can see.

@nanasess
Copy link
Owner

nanasess commented Aug 2, 2023

@robbl @petschki
Looking at the status of Chrome for Testing, it appears that version 115.0.5790.110, which failed to download ChromeDriver, is failing to build.
image

https://googlechromelabs.github.io/chrome-for-testing/

@petschki
Copy link
Author

petschki commented Aug 2, 2023

Aha! so pinning the version should fix this for now:

  with:
    chromedriver-version: '115.0.5790.102'

@petschki
Copy link
Author

petschki commented Aug 2, 2023

Would it be possible to use

  with:
    chromedriver-version: 'stable'

?

@nanasess
Copy link
Owner

nanasess commented Aug 2, 2023

@petschki
Probably because your GitHub Actions are using Chrome 115.0.5790.110.
In this case, it is best to use:

with:
    chromerdriver-version: '115.0.5790.102'

@nanasess
Copy link
Owner

nanasess commented Aug 2, 2023

Rewriting in TypeScript would allow for flexible error handling.
#159

Since this is a Chrome for Testing issue, this issue is closed.

@petschki @robbl @johantell
Thank you so much for all the information you provided!🙏

@nanasess nanasess closed this as completed Aug 2, 2023
tdooner added a commit to codeforamerica/homeschool-pebt that referenced this issue Aug 2, 2023
This is recommended by the maintainer as a potential workaround around
network flakiness happening right now?

nanasess/setup-chromedriver#199
tdooner added a commit to codeforamerica/homeschool-pebt that referenced this issue Aug 2, 2023
This is recommended by the maintainer as a potential workaround around
network flakiness happening right now?

nanasess/setup-chromedriver#199
jamilbk added a commit to firezone/firezone that referenced this issue Aug 4, 2023
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

4 participants