-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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-rebuild
hangs when building/switching system
#319440
Comments
After running It should also be noted that |
should be fixed by #316301 |
@crabdancing how long did |
I'm not really sure exactly how long you have to run it, but expect it to take a very, very long time -- since it has to hash and check every single package in the Nix store. On the machine this happened on, it had an AMD Ryzen 7 5700X & a fast NVME boot drive -- and it ended up taking probably around 4 hours. I expect on lesser hardware it could take literally days, depending on how big your system configuration is. My recommendation is generally to try just leaving it and being patient, and see if the damn thing can eventually fix itself. |
Interesting. I tried running Eventually I just tried |
Yeah, that happened in my experience too. Only, it didn't fix anything long term for me. Maybe it was just corrupted in secondary memory, but not in your store? |
Describe the bug
I'm experiencing a bug where, every time I try to do
nixos-rebuild switch
, nixos-rebuild boot` or similar, it responds with the following:It then hangs indefinitely.
I'm not exactly sure how to reproduce this, as I have a complex multi-repo flake, and furthermore, the results don't seem to be consistent. This issue crops up on exactly one of my servers, but none of the 15 or so other Nix systems I maintain with the same multi-system flake. Which makes me think it's some stale piece of state.
Expected behavior
I expect to be able to rebuild the system configuration without hanging indefinitely or error messages.
Additional context
Given the system in question is one of my build servers, I rarely if ever do garbage collection, since I like to keep old versions for reference.
Notify maintainers
@roberth
@thiagokokada
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.Add a 👍 reaction to issues you find important.
The text was updated successfully, but these errors were encountered: