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

Content addressed remote builds fail with: failed due to signal 6 (Aborted) #4845

Closed
DavHau opened this issue May 22, 2021 · 1 comment · Fixed by #4926
Closed

Content addressed remote builds fail with: failed due to signal 6 (Aborted) #4845

DavHau opened this issue May 22, 2021 · 1 comment · Fixed by #4926
Assignees
Labels
bug ca-derivations Derivations with content addressed outputs

Comments

@DavHau
Copy link
Member

DavHau commented May 22, 2021

Describe the bug
It doesn't matter which derivation I build, remote builds for content addressed derivaitons always fail.
Both local and remote daemon are running this nix master branch revision: af4ff64

This issue looks similar to #4664, but I do not mix nix versions and I only have this problem with CA derivations.

Example:

❯❯❯ nix build --impure --expr '(import ./. { config.contentAddressedByDefault = true; }).python3.pkgs.brotli'
error: builder for '/nix/store/lwcccxjvrsb7dl81flcy05l02xhf2n3a-python3.8-brotli-1.0.9.drv' failed due to signal 6 (Aborted);
       last 10 log lines:
       > plugins: forked-1.3.0, xdist-2.2.1
       > gw0 [379] / gw1 [379] / gw2 [379] / gw3 [379] / gw4 [379] / gw5 [379] / gw6 [379] / gw7 [379] / gw8 [379] / gw9 [379] / gw10 [379] / gw11 [379] / gw12 [379] / gw13 [379] / gw14 [379] / gw15 [379]m
       > ........................................................................ [ 18%]
       > ........................................................................ [ 37%]
       > ........................................................................ [ 56%]
       > ........................................................................ [ 75%]
       > ........................................................................ [ 94%]
       > ...................                                                      [100%]
       > ============================= 379 passed in 13.37s =============================
       > Finished executing pytestCheckPhase
       For full logs, run 'nix log /nix/store/lwcccxjvrsb7dl81flcy05l02xhf2n3a-python3.8-brotli-1.0.9.drv'.
error: build of '/nix/store/qic330irpmx14n5mz4vpyrg4rrjb6rzv-python3.8-brotli-1.0.9.drv' failed

The log shows that the build finishes successfully. The problem probably occurs after building.

Additional context

If I build normal non CA derivations the problem does not occur

@DavHau DavHau added the bug label May 22, 2021
@thufschmitt thufschmitt added the ca-derivations Derivations with content addressed outputs label May 24, 2021
@thufschmitt thufschmitt self-assigned this May 24, 2021
thufschmitt added a commit that referenced this issue Jun 21, 2021
Make sure that the derivation we send to the remote builder is exactly
the one that we want to build locally so that the output ids are exactly
the same

Fix #4845
@thufschmitt
Copy link
Member

@DavHau can you try #4926 to see whether this does fix your issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug ca-derivations Derivations with content addressed outputs
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants