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

could not read directory '/usr/local/cargo/registry/index/github.com-1285ae84e5963aae/.git//refs': Value too large for defined data type; class=Os (2) #59

Open
nicobo opened this issue Feb 10, 2021 · 3 comments
Labels
build Build / packaging / compiling / publishing (not docker) dependencies Pull requests that update a dependency file docker Docker related

Comments

@nicobo
Copy link
Member

nicobo commented Feb 10, 2021

This problem seems to be caused by incompatible FS/cpu arch with Rust in some images (e.g. arm ones) and has already happened during the build of signal dependencies (see signal-debian.Dockerfile) but it now also happens during the build of slixmpp because newer versions of cryptography require Rust : slixmpp -> cryptography -> rust.

#62 817.8   running build_rust
#62 817.8       Updating crates.io index
#62 817.8   warning: spurious network error (2 tries remaining): could not read directory '/usr/local/cargo/registry/index/github.com-1285ae84e5963aae/.git//refs': Value too large for defined data type; class=Os (2)
#62 817.8   warning: spurious network error (1 tries remaining): could not read directory '/usr/local/cargo/registry/index/github.com-1285ae84e5963aae/.git//refs': Value too large for defined data type; class=Os (2)
#62 817.8   error: failed to get `pyo3` as a dependency of package `cryptography-rust v0.1.0 (/tmp/pip-install-gj5wjcf0/cryptography_b5957e0ba0674155830be25bbc0b6e7f/src/rust)`
#62 817.8   
#62 817.8   Caused by:
#62 817.8     failed to fetch `https://github.com/rust-lang/crates.io-index`
#62 817.8   
#62 817.8   Caused by:
#62 817.8     could not read directory '/usr/local/cargo/registry/index/github.com-1285ae84e5963aae/.git//refs': Value too large for defined data type; class=Os (2)
#62 817.8   
#62 817.8       =============================DEBUG ASSISTANCE=============================
#62 817.8       If you are seeing a compilation error please try the following steps to
#62 817.8       successfully install cryptography:
#62 817.8       1) Upgrade to the latest pip and try again. This will fix errors for most
#62 817.8          users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip
#62 817.8       2) Read https://cryptography.io/en/latest/installation.html for specific
#62 817.8          instructions for your platform.
#62 817.8       3) Check our frequently asked questions for more information:
#62 817.8          https://cryptography.io/en/latest/faq.html
#62 817.8       4) Ensure you have a recent Rust toolchain installed:
#62 817.8          https://cryptography.io/en/latest/installation.html#rust
#62 817.8       5) If you are experiencing issues with Rust for *this release only* you may
#62 817.8          set the environment variable `CRYPTOGRAPHY_DONT_BUILD_RUST=1`.
#62 817.8       =============================DEBUG ASSISTANCE=============================
#62 817.8   

See full trace here : https://github.com/nicolabs/nicobot/runs/1866971889?check_suite_focus=true

The original issue is tracked here : docker/buildx#395

See also #57

@nicobo nicobo added docker Docker related build Build / packaging / compiling / publishing (not docker) dependencies Pull requests that update a dependency file labels Feb 10, 2021
@nicobo
Copy link
Member Author

nicobo commented Feb 10, 2021

Should be fixed with 5805cba.
Keeping open however since it still should be fixed so that we can upgrade to the next cryptography releases.

@alexyao2015
Copy link

Hey! I saw this issue linked to the larger buildx issue. Just wanted to mention that I did find a terrible workaround for it for my project... Not pretty though. hass-emulated-hue/base-image@e530602#diff-a894120de2d841cb7e1e40a5faee2225d8810cc3fe03ecd231b07322594fca1cR53

@nicobo
Copy link
Member Author

nicobo commented Feb 13, 2021

@alexyao2015 thanks I will have a look at it !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Build / packaging / compiling / publishing (not docker) dependencies Pull requests that update a dependency file docker Docker related
Projects
None yet
Development

No branches or pull requests

2 participants