Nix store corrupted #137
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
security
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Total time spent: 58 minutes 47 seconds
Due date
a
58 minutes 47 seconds
No due date set.
Dependencies
No dependencies set.
Reference: exozyme/exozyme#137
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Something seems to be wrong with our
/nix
since the following command errors out:I've already tried
sudo nix-store --verify --check-contents --repair
to fix it, didn't work.This is probably a bad idea, but...
Let's give it a try!
Didn't fix the issue
I think that just made everything worse since now the Nix store is not only corrupted, but also deleted.
I think the safest thing to do here is uninstall and reinstall Nix, unfortunately.
That didn't work either, for some VERY strange reason.
However, I installed Nix on a brand new system and it didn't have this bug, so I'm not sure what's going on.
Finally fixed this with some help from the Nix Matrix chat:
how can i debug this ?
5/16/2022, 2:46:44 PM - K900 (bcachefs when): There should be more context
5/16/2022, 2:46:49 PM - K900 (bcachefs when): Maybe you're out of disk space?
5/16/2022, 2:47:09 PM - aktaboot: hm could be
5/16/2022, 2:47:56 PM - : <@k900:0upti.me "You also want to attach with `-f..."> Alright, I think I found the issue:
Thanks for the help!
5/16/2022, 2:48:37 PM - aktaboot: <@k900:0upti.me "Maybe you're out of disk space?"> are you a wizard ?
5/16/2022, 2:48:52 PM - K900 (bcachefs when): No, but you were complaining about disk space last night
5/16/2022, 2:49:13 PM - zonnebloem: :)
5/16/2022, 2:52:46 PM - aktaboot: but what is weird is that it does that with nix search, ig it cant even fetch a repo index or smth
I think it was because @notaiden and I were testing very long file paths and deep directories for no good reason and it ended up breaking Nix somehow :/
lmao sorry
No worries, fixing this issue taught me quite a bit about Nix!