Open mrmagic223325 opened 1 month ago
Not related to nixpkgs, it's a nix thing. And if you're getting these errors you need to do a store repair, you probably have some disk corruption.
Not related to nixpkgs, it's a nix thing. And if you're getting these errors you need to do a store repair, you probably have some disk corruption.
Whats the correct repo for the nix command? I have also tried all different kinds of repair commands for the nix store but none did any change.
I would suggest running sudo nix-store --verify --repair --check-contents
as the repair command (exactly as is).
For help/questions you can get more help on discourse.nixos.org, would probably get more attention than asking here IMO.
I would suggest running
sudo nix-store --verify --repair --check-contents
as the repair command (exactly as is).
I tried the command you suggested. I now get a new error:
error: executing SQLite statement 'delete from ValidPaths where path = '/nix/store/vlkzz3c0ihb0y78c9hvhdpqbi763y4bp-electron-30.0.3.drv';': constraint failed, FOREIGN KEY constraint failed (in '/nix/var/nix/db/db.sqlite')
For help/questions you can get more help on discourse.nixos.org, would probably get more attention than asking here IMO.
I think I'll just reinstall my entire system at this point. Seems like my nix store isn't doing good at all.
Describe the bug
Some nix commands which operate on the store all return the same error message
error: opening file '/nix/store/pgrnz3yny412l4q8s46kw39jf184gn7q-webcord-vencord-4.9.1.drv': No such file or directory
Steps To Reproduce
Steps to reproduce the behavior:
nix-collect-garbage -d
,nix-store --gc
ornix-store --optimise
Expected behavior
There shouldn't be any error messages and the command should just succeed.
Screenshots
Additional context
/
Notify maintainers
No idea who maintains these commands or the nix store.
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.Add a :+1: reaction to issues you find important.