-
-
Notifications
You must be signed in to change notification settings - Fork 15.1k
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
nixos-install fails with getting attributes of path /nix/store/...: No such file or directory #126141
Comments
seen 3 people with the same issue in the last 2 days |
This issue has been mentioned on NixOS Discourse. There might be relevant details there: |
i've seen this happen ~7 times in the past week here's one just 1 hour ago https://www.reddit.com/r/NixOS/comments/o0gil2/does_anyone_know_how_to_fix_this_error/ and theres one in the Nix / NixOS matrix server right now |
a workaround by @jonringer
let it complete |
does Curious if flakification efforts of |
oops, just noticed you posted it as well :) |
Going to pin this issue until there's a better resolution of this, but many people have been having this issue. |
Maybe, but it can be reproduced without using nixos-install at all. See nix bug: NixOS/nix#4912 |
It's quite possible. The |
This issue has been mentioned on NixOS Discourse. There might be relevant details there: |
Did anyone figure this out? I've only be able to complete the installation by commeting out sections of the confiuration; once booted into the new system it worked. The problem must be with |
@rnhmjoj I'm also currently using a similar workaround. By using a minimal configuration the only derivation that is currently causing the issue in my install-phase config is mailcap-2.1.52. I noticed that by finding the derivations in /mnt/nix/store which have .lock files in place point out at least some of such problematic derivations and they can be fixed by nix-store --repair-path. |
Interesting, it was mailcap for me too, that can't be a coincidence. There must be something in common with these derivations that's making Nix fail, but only when invoked from nixos-install. |
The bug comes from nixos-install invoking nix-store with a --store path that is not /. I strongly believe that this is a nix bug and not a nixos-install bug. |
This issue has been mentioned on NixOS Discourse. There might be relevant details there: |
This issue has been mentioned on NixOS Discourse. There might be relevant details there: |
might be related to NixOS/nix#4081 |
This happened to me with at least |
don't remember where I read the issue, but there may be a regression with
A temporary fix could be just building it twice, once without The drawbacks being:
|
Otherwise chrooted store will fail because Nix will try to read the virtual path instead of the physical one Should fix NixOS/nixpkgs#126141
@samueldr I couldn’t replicate the exact issue, but I’m fairly confident that it would be fixed by NixOS/nix@89fba5c . Do you mind giving it a try? |
This issue has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/cant-log-in-to-new-install-21-05/14263/5 |
Can also confirm that NixOS/nix@89fba5c fixed the issue in my |
Yay! I’ve opened NixOS/nix#5053 so that we can have a proper release with the fix
NixOS/nix@3dbd83b (the faulty commit) is a backport of NixOS/nix@5985b8b (which is on master), but I had to rework it a little bit as the code had changed in the meantime. And that’s when I introduced the bug. |
@edolstra will a Nix 2.3.15 release be made soon enough? (before the end of the week) Or should the patch be applied on 2.3.14 until then? Given that this is a major blocker and tarnishes experience for new users, I think we should land a fix for this before the end of the week. |
As far as I understand/experiment, the proposed temporal fixe downloads everything into the live
The problem is that the livecd does not have a huge space, and it tends to run out of space. Is there a way to download packages in the -- EDIT -- I also tried to upgrade nix using the unstable channel (I though the bug was not present in master) and upgrade nix with |
So... we update nix then? #132046 |
I understand that it is happily fixed @SuperSandro2000 but what do I need to do to install a fresh nixos now? Can we have some explanation for less technical folks? |
... into release-21.05 as a part of fixing #126141. (I think; I don't know how often the fallback gets used in practice.)
You don't have to reinstall |
I got a fresh install image and updated channels but still run into this problem, that's why I asked what to do :). Ultimately I see that I just needed to run what you suggested in initial post: |
no isos have been built with the pr yet |
Latest 21.05 ISOs should have all the fixes in them now. |
Just waiting on https://nixpk.gs/pr-tracker.html?pr=132046 to finish, then I'll unpin |
This issue has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/tweag-nix-dev-update-16/14379/1 |
I've used 21.05 and haven't spotted this bug. |
All maintained channels and ISOs should be fixed now. (or at least contain those nix updates) |
It only occurs if you add new packages to your nixos configuration that don't exist in the image. If your initial install is a subset of the image, you're fine. |
Yep, the issue only happens if you attempt to copy a fixed output derivation from a substituter into a chroot store. It's kind of rare but very unpleasant for people who try to do this thing that should work during installation. |
This issue has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/nixos-install-cant-find-iana-etc/15390/2 |
This issue has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/having-trouble-installing-nixos/15431/3 |
This issue has been mentioned on NixOS Discourse. There might be relevant details there: |
Describe the bug
during nixos-install a error appears
getting attributes of path /nix/store/...: No such file or directory
the person who told me about this is @epsyle
i was using his dotfiles to test https://github.com/epsyle/snowflake/tree/c13f37ac19942bdcc3ddced28015b47b10e1f6b2
i did this in a vm and he did it on hw
To Reproduce
Steps to reproduce the behavior:
nixos-minimal-21.05.804.5de44c15758-x86_64-linux.iso
Expected behavior
install should work
Screenshots

Additional context

after
nix-build '<nixpkgs>' -A fira-code
ornix-shell -p fira-code
the install will continue until there's a another error of the same type which can be fixed by doing the same thingnix-store --repair-path /nix/store/41qphrp1ksc1fqm01i7khs30n1zjl56r-fira-code-5.2
would fix it tooI hope this issue will help new people who are searching for a fix
Maybe related NixOS/nix#1281
Metadata
"x86_64-linux"
Linux 5.10.40, NixOS, 21.05.804.5de44c15758 (Okapi)
yes
yes
nix-env (Nix) 2.3.12
"nixos-21.05.804.5de44c15758"
/nix/var/nix/profiles/per-user/root/channels/nixos
The text was updated successfully, but these errors were encountered: