CI can't reach internet to fetch rust packages

David Mulder dmulder at samba.org
Mon Aug 12 21:29:27 UTC 2024


I'm getting this failure when doing a `cargo test` via samba test in CI:

     Updating crates.io index
warning: spurious network error (3 tries remaining): [7] Couldn't 
connect to server (Failed to connect to index.crates.io port 443 after 
42 ms: Couldn't connect to server)
warning: spurious network error (2 tries remaining): [7] Couldn't 
connect to server (Failed to connect to index.crates.io port 443 after 0 
ms: Couldn't connect to server)
warning: spurious network error (1 tries remaining): [7] Couldn't 
connect to server (Failed to connect to index.crates.io port 443 after 0 
ms: Couldn't connect to server)
error: failed to get `libc` as a dependency of package `config v4.21.0 
(/builds/samba-testbase/samba-o3/rust/config)`

Caused by:
   download of config.json failed

Caused by:
   failed to download from `https://index.crates.io/config.json`

Caused by:
   [7] Couldn't connect to server (Failed to connect to index.crates.io 
port 443 after 0 ms: Couldn't connect to server)

Doing `cargo build` during the build phase does not fail to download 
dependencies. Any one know what's causing this?

https://gitlab.com/samba-team/devel/samba/-/jobs/7566611520

-- 
David Mulder
Labs Software Engineer, Samba
SUSE
1221 S Valley Grove Way, Suite 500
Pleasant Grove, UT 84062
(P)+1 385.208.2989
dmulder at suse.com
http://www.suse.com




More information about the samba-technical mailing list