Repository navigation
Closed
Labels
0.kind: bugSomething is broken0.kind: regressionSomething that worked before working no longer1.severity: blockerThis is preventing another PR or issue from being completed6.topic: nixosIssues or PRs affecting NixOS modules, or package usability issues specific to NixOS
Milestone
Description
TL; DR
.attrs.sh: No such file or directory during nixos-rebuild -> for now see workaround below: #36268 (comment)
Issue description
Cannot sudo nixos-rebuild boot --upgrade -I nixpkgs=/home/nequi/dev/upstream_nix with latest master (b84fd70).
The build logs ends in this:
building path(s) ‘/nix/store/7cnyjhx9vs7sr5x1fa5kbwmpvszcjw60-unit-disable-kernel-module-loading.service’
building path(s) ‘/nix/store/3za4jnyxp1z1vkaq8bdrdqn1x1b9ljpj-unit-display-manager.service’
building path(s) ‘/nix/store/7y2c37lli1r9mlzjgkvl7sbh1kmdg42g-unit-dnscrypt-proxy.service’
building path(s) ‘/nix/store/6papssyd63aihaxzm8i8a14ad9xd3jks-unit-dnsmasq.service’
building path(s) ‘/nix/store/6z1kg4w6smsza15p1m8ssd73agbfqfwn-unit-docker.service’
building path(s) ‘/nix/store/3pg0sh93cdsgkdq9lqsclg34vplbsn8v-unit-firewall.service’
building path(s) ‘/nix/store/chdqahlwa6sqd2skfwdl75wjfw8shha8-unit-getty-.service’
building path(s) ‘/nix/store/xacv6qcq7qhhg0b4zp9n1rh6havkjs0w-unit-mdadm-grow-continue-.service’
building path(s) ‘/nix/store/qky8yvibqmlmvwcwik5m496asrvgws37-closure-info’
/nix/store/aj9rz4k3xvg8q9fzqfnb0q123707zp0n-builder: line 1: .attrs.sh: No such file or directory
building path(s) ‘/nix/store/1aq46pxrg2vdqmid95vnivnsnv326vk5-emacs-all-the-icons-3.2.0’
builder for ‘/nix/store/7ycz6hmaa7rjrssq8pglbd62nqf0b1g3-closure-info.drv’ failed with exit code 1
building path(s) ‘/nix/store/sd8h3r7xp6cnrwvrw9ni4fm4j7p56av6-emacs-auto-complete-20170124.1845’
building path(s) ‘/nix/store/7w7y967gy3r3yz0w1n3lkqw1ziw5ncsa-emacs-flycheck-31’
building path(s) ‘/nix/store/j7a8lhjsn7s4gjbd8sbm6zdky2q9ns3f-emacs-projectile-20180128.655’
cannot build derivation ‘/nix/store/611p5z4v1p905mkhy52ympinz1cdmrcq-initrd.drv’: 1 dependencies couldn't be built
building path(s) ‘/nix/store/qpz6mx62s58n1fmpzrv8dsrzlrq7jyld-nixos-version’
building path(s) ‘/nix/store/83nrcqkbilc0l4qgbxq6nvk57bw9qxvg-unit-mdadm-shutdown.service’
building path(s) ‘/nix/store/2kv367hvdw4b0kyv4aspa37r7s6ml82x-unit-mdmon-.service’
building path(s) ‘/nix/store/m3jsvbx8x9b8z1rswnxmw29gdjfcqbcf-unit-network-local-commands.service’
building path(s) ‘/nix/store/d82pf5pzcwl5i24jp96wp67siv108r9y-unit-network-setup.service’
cannot build derivation ‘/nix/store/7xfncw8bsqhgr9sa46m2iygihbir93w0-nixos-system-nixus-18.03.git.b84fd70.drv’: 1 dependencies couldn't be built
error: build of ‘/nix/store/7xfncw8bsqhgr9sa46m2iygihbir93w0-nixos-system-nixus-18.03.git.b84fd70.drv’ failed
I tracked this particular error to 0d00215. So I reverted it.
But then I see this error:
building path(s) ‘/nix/store/ghpzxbyfm5qin6wpajds3sqjcs68w04q-etc-os-release’
building path(s) ‘/nix/store/52xjqjz80r05i3c3fcdh9djss098fxjc-issue’
building path(s) ‘/nix/store/6z1kg4w6smsza15p1m8ssd73agbfqfwn-unit-docker.service’
building path(s) ‘/nix/store/3pg0sh93cdsgkdq9lqsclg34vplbsn8v-unit-firewall.service’
building path(s) ‘/nix/store/chdqahlwa6sqd2skfwdl75wjfw8shha8-unit-getty-.service’
building path(s) ‘/nix/store/xacv6qcq7qhhg0b4zp9n1rh6havkjs0w-unit-mdadm-grow-continue-.service’
building path(s) ‘/nix/store/83nrcqkbilc0l4qgbxq6nvk57bw9qxvg-unit-mdadm-shutdown.service’
building path(s) ‘/nix/store/2kv367hvdw4b0kyv4aspa37r7s6ml82x-unit-mdmon-.service’
building path(s) ‘/nix/store/z3cv7ivid717h0kddwl528wafdzrhy92-closure-info’
building path(s) ‘/nix/store/1aq46pxrg2vdqmid95vnivnsnv326vk5-emacs-all-the-icons-3.2.0’
/nix/store/46gz3s6zhavr1s566h9yl7gqw7fb94q2-builder: line 3: /nix/store/z3cv7ivid717h0kddwl528wafdzrhy92-closure-info: syntax error: operand expected (error token is "/nix/store/z3cv7ivid717h0kddwl528wafdzrhy92-closure-info")
/nix/store/46gz3s6zhavr1s566h9yl7gqw7fb94q2-builder: line 5: mkdir: command not found
building path(s) ‘/nix/store/sd8h3r7xp6cnrwvrw9ni4fm4j7p56av6-emacs-auto-complete-20170124.1845’
building path(s) ‘/nix/store/7w7y967gy3r3yz0w1n3lkqw1ziw5ncsa-emacs-flycheck-31’
builder for ‘/nix/store/xabyii3ka8bvk1pp0z4gwkgvfry0f09i-closure-info.drv’ failed with exit code 127
building path(s) ‘/nix/store/j7a8lhjsn7s4gjbd8sbm6zdky2q9ns3f-emacs-projectile-20180128.655’
building path(s) ‘/nix/store/bb425wwxq85ssqjghq41j8rzdpbd2xi3-emacs-undo-tree-20170706.246’
building path(s) ‘/nix/store/097gbfyml28h1kp17s6ydk8i8m75rx2j-firefox-unwrapped-58.0.2’
cannot build derivation ‘/nix/store/ifpy9k2vf6hzm8ajqpdvi4yn6alavz6d-initrd.drv’: 1 dependencies couldn't be built
building path(s) ‘/nix/store/5fw96brprz4as3b0ky1nvghq93wbaaf0-nixos-version’
building path(s) ‘/nix/store/m3jsvbx8x9b8z1rswnxmw29gdjfcqbcf-unit-network-local-commands.service’
building path(s) ‘/nix/store/d82pf5pzcwl5i24jp96wp67siv108r9y-unit-network-setup.service’
building path(s) ‘/nix/store/pzpaj3x37pmba1afg0nr2mas5hdngwmy-unit-nix-daemon.service’
building path(s) ‘/nix/store/p7ab83jq1wg3nkr972n8biyj1bjzpk7h-unit-nix-optimise.service’
cannot build derivation ‘/nix/store/vrg5r2mdpm1qzsm9xl5qirr1sj74ab5h-nixos-system-nixus-18.03.git.fdce3d6.drv’: 1 dependencies couldn't be built
error: build of ‘/nix/store/vrg5r2mdpm1qzsm9xl5qirr1sj74ab5h-nixos-system-nixus-18.03.git.fdce3d6.drv’ failed
I am unable to determine what is going on with this.
Technical details
- system:
"x86_64-linux" - host os:
Linux 4.15.7-hardened, NixOS, 18.03.git.a145640 (Impala) - multi-user?:
yes - sandbox:
yes - version:
nix-env (Nix) 1.11.16 - channels(root):
"nixos-18.03pre130558.7270f2139ae" - nixpkgs:
/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs
Reacted by Philipp Dargel, Sridhar Ratnakumar, johann bestowrous, Patrick Hilhorst, probit Labs and Bastien Rivière
Metadata
Metadata
Assignees
Labels
0.kind: bugSomething is broken0.kind: regressionSomething that worked before working no longer1.severity: blockerThis is preventing another PR or issue from being completed6.topic: nixosIssues or PRs affecting NixOS modules, or package usability issues specific to NixOS
Activity
vcunat commentedon Mar 3, 2018
That's changed with PR #34636. I can't really look into it properly now, but tomorrow morning I shall.
MP2E commentedon Mar 4, 2018
I see these same errors, not sure how to proceed
fpletz commentedon Mar 4, 2018
The reason for this failure is probably that
nix-daemonis still running with Nix 1.x..attrs.shwas added in Nix 2.0.vcunat commentedon Mar 4, 2018
That seems hard to work around. I believe
builtins.langVersionwill return version of the evaluator and not the daemon (it's a constant defined in libexpr), so the old code won't work either.vcunat commentedon Mar 4, 2018
I expect it's possible to work around this by, but we would better have compatible builder code anyway.--no-build-nixwhen doing the switchclefru commentedon Mar 4, 2018
Using --no-build-nix results in the following error:
vcunat commentedon Mar 4, 2018
Yes, of course, I'm sorry :-)
vcunat commentedon Mar 4, 2018
Well, always using the nix-1.11 code should work 17ee557, but we would lose some things by that (changes by @edolstra and @shlevy). Any better idea? Perhaps the builder code could detect the daemon version and decide based on that, as a compromise.
shlevy commentedon Mar 4, 2018
@vcunat The builder could switch based on the existence of
.attrs.shshlevy commentedon Mar 4, 2018
Ugh no that's probably not enough, because we need to set
exportReferencesGraphdifferently depending on the daemon version...30 remaining items
shlevy commentedon Apr 14, 2018
I'm confused... This is specifically a problem with upgrading NixOS, unless we have some 18.03 prerelease ISO with nix 1.11 installed this doesn't seem likely to be the same issue...
daveman1010221 commentedon Apr 14, 2018
domenkozar commentedon Oct 30, 2018
This issue is not fixed.
a) NixOS 18.03 is the first release with Nix 2.0
b) There are nixos utilities using
closureInfowhich depends on Nix 2.0 features:c) error message is
.attrs.sh: No such file or directorydomenkozar commentedon Oct 30, 2018
I wonder if there is a different way than
builtins.langVersionto determine it won't work and at least provide a good error what to do.Synthetica9 commentedon Oct 30, 2018
Why would you need a different way?
dezgeg commentedon Oct 30, 2018
builtins.langVersiondoesn't give the version of the nix-daemon running, which is what matters here.shlevy commentedon Oct 31, 2018
I think the best solution is:
arianvp commentedon May 31, 2019
Given that we are a year further now, and people should be running
18.09or19.03is the use ofclosureInfostill an issue?lheckemann commentedon Oct 4, 2019
Closing since nix 2.x has been used for several releases now. Objections welcome :)