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

Installation failing on NixOS:nix docker image #38

Open
mohnishkodnani opened this issue Mar 31, 2023 · 3 comments
Open

Installation failing on NixOS:nix docker image #38

mohnishkodnani opened this issue Mar 31, 2023 · 3 comments

Comments

@mohnishkodnani
Copy link

Hi,
I am trying to use the docker.io/NixOS/nix:latest docker image and install attic in there to serve as binary cache and run in K8s.
However I didnt find any instructions on how to install with just nix package manager.
I tried
nix profile install https://github.com/zhaofengli/attic but the installation fails

error: builder for '/nix/store/9yxll8rg9hm10pvm4a82vpnsdwnh26vw-aws-sigv4-0.54.1.drv' failed with exit code 139
error: 1 dependencies of derivation '/nix/store/rf6x1ywjf314c7w15ccypr55yv0gllsh-cargo-package-aws-sigv4-0.54.1.drv' failed to build

or some other runs I see the following

bash-5.1# nix profile install github:zhaofengli/attic
trace: warning: crane cannot find version attribute in /nix/store/k9wifwriy8nd8a1j7jcczdz9f0f2kw8n-source/Cargo.toml, consider setting `version = "...";` explicitly
error: builder for '/nix/store/9jvbzhzd8192v5xpljyq8j3lh505g596-cargo-package-winapi-i686-pc-windows-gnu-0.4.0.drv' failed with exit code 2;
       last 2 log lines:
       > /nix/store/61mzw223sdk26lxawnx64b72xgjrhaj8-gnutar-1.34/bin/tar: Child died with signal 11
       > /nix/store/61mzw223sdk26lxawnx64b72xgjrhaj8-gnutar-1.34/bin/tar: Error is not recoverable: exiting now
       For full logs, run 'nix log /nix/store/9jvbzhzd8192v5xpljyq8j3lh505g596-cargo-package-winapi-i686-pc-windows-gnu-0.4.0.drv'.

Not sure why it needs windows api.. Hence, I am thinking my command is incorrect.
or

error: builder for '/nix/store/v69r3icrvh26vyzwhiydlkgh1px2sbdr-cargo-package-http-range-header-0.3.0.drv' failed due to signal 11 (Segmentation fault)
error: 1 dependencies of derivation '/nix/store/k9zyg176bwys2awyynwq8iv18h2qm4qg-vendor-registry.drv' failed to build
building '/nix/store/871rakk4bkq2pwhrma3sk83ajn2qwpnx-source.drv'...
error: 1 dependencies of derivation '/nix/store/gx6b2fnilxidx62m6wrkdl3g4j2v8rk5-vendor-cargo-deps.drv' failed to build
error: 1 dependencies of derivation '/nix/store/1gxagm26pi29sn5xf1rd4cw1nivfd7m6-attic-0.1.0.drv' failed to build

Appreciate any help.

Thanks
mohnish.

@zhaofengli
Copy link
Owner

Hi, not sure why tar is segfaulting, but you can directly build an image from this repo with nix build .#attic-server-image and import it with docker load.

@terinjokes
Copy link

I build packages in the nix docker image and was hoping to have installation instructions for getting attic in the image, so I can push artifacts to the binary cache.

@mohnishkodnani
Copy link
Author

mohnishkodnani commented Apr 3, 2023

I have a macbook M1 and trying to build on it is yet unsupported. Plus I need linux/amd64 image. So I  am trying to build this within the NixOS/nix docker image, but that seg faults for some reason as well.
Not sure yet of the reason, it fails at different points
2 runs

bash-5.1# nix run github:zhaofengli/attic#attic-server-image
error: program 'git' failed due to signal 11 (Segmentation fault)
(use '--show-trace' to show detailed location information)
bash-5.1# nix run github:zhaofengli/attic#attic-server-image
error: program 'git' failed with exit code 139

Next run

nix run github:zhaofengli/attic#attic-server-image --show-trace
error: builder for '/nix/store/h32hwlkg7srmx055k78ka4knc9fag6q6-cargo-package-aws-sig-auth-0.54.1.drv' failed due to signal 11 (Segmentation fault)
error: 1 dependencies of derivation

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

3 participants