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

Random error "failed to fetch https://github.com/rust-lang/crates.io-index" on CI runs #9187

Closed
xoxys opened this issue Feb 18, 2021 · 3 comments
Labels
C-bug Category: bug

Comments

@xoxys
Copy link

xoxys commented Feb 18, 2021

Problem
I get random errors like this during CI runs:

      Updating crates.io index
  warning: spurious network error (2 tries remaining): error inflating zlib stream; class=Zlib (5)
  warning: spurious network error (1 tries remaining): error inflating zlib stream; class=Zlib (5)
  error: failed to get `pyo3` as a dependency of package `cryptography-rust v0.1.0 (/tmp/pip-install-7e_k98bl/cryptography_9db4bb72c5224efc97549c8e71dbe2f7/src/rust)`
  
  Caused by:
    failed to fetch `https://github.com/rust-lang/crates.io-index`
  
  Caused by:
    error inflating zlib stream; class=Zlib (5)

Restarting the failed pipeline works in most cases and the build finished without issues. Full log:
Failed - https://drone.thegeeklab.de/thegeeklab/git-batch/50/7/2
Worked - https://drone.thegeeklab.de/thegeeklab/git-batch/51/7/2

Any idea where to look or how to fix it? The ARM pipelines are running within arm32v7/python:3.9-alpine containers on AWS EC2 a1.xlarge machines.

Output of cargo version: cargo 1.47.0

@xoxys xoxys added the C-bug Category: bug label Feb 18, 2021
@ehuss
Copy link
Contributor

ehuss commented Feb 18, 2021

Thanks for the report! This should be fixed in the 1.50 release (#8998). I'm not too familiar with alpine, or how Rust is built there, so the exact details may differ (like if they are packaging their own libgit2, that would need to be updated). As a workaround, if you have git installed, you can set the net.git-fetch-with-cli option to use the git command-line tool instead of the built-in git library.

@xoxys
Copy link
Author

xoxys commented Feb 18, 2021

Thanks for your fast reply. I'll try the workaround tomorrow. Not sure how to get the latest rust release easily running on alpine arm as rustup seems to be not working on armv7.

@ehuss
Copy link
Contributor

ehuss commented Feb 22, 2021

Closing as a duplicate of #8517. Feel free to reopen if it still doesn't work on 1.50 or newer.

@ehuss ehuss closed this as completed Feb 22, 2021
capntrips added a commit to capntrips/docker-nzbget that referenced this issue Apr 8, 2021
capntrips added a commit to capntrips/docker-nzbget that referenced this issue Apr 8, 2021
[armhf] revert linuxserver#125 and use py3-cryptography alpine package, avoiding rust-lang/cargo#9187

closes linuxserver#127
JonasAlfredsson added a commit to JonasAlfredsson/docker-nginx-certbot that referenced this issue Mar 1, 2022
We get random errors, when rust is building, stating that

  failed to fetch https://github.com/rust-lang/crates.io-index

This appears to [be known][1] and will be fixed in the future. Until
then the suggested workaround is to use git that is installed on the
system instead.

[1]: rust-lang/cargo#9187
JonasAlfredsson added a commit to JonasAlfredsson/docker-nginx-certbot that referenced this issue Mar 1, 2022
We get random errors, when rust is building, stating that

  failed to fetch https://github.com/rust-lang/crates.io-index

This appears to [be known][1] and will be fixed in the future. Until
then the suggested workaround is to use git that is installed on the
system instead.

[1]: rust-lang/cargo#9187
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug
Projects
None yet
Development

No branches or pull requests

2 participants