Open utdemir opened 9 years ago
Just a related note: When I was trying to create a machine in NixOps, it also didn't have some packages registered, that looked like relevant to this issue. Probably there's something wrong with nix-store --load-db
.
If it's an EC2 or VirtualBox machine created by NixOps, this has been fixed by https://github.com/NixOS/nixpkgs/commit/724cf98bdfac2b13fa2713ceb2e68014c1ec194a.
@edolstra It's a machine created by nixpkgs/nixos/lib/testing.nix
, not NixOps, sorry.
Our temporary solution was doing a nix-store --verify --check-contents
too. Just maybe that line can be added to the install script, although this would significantly increase the install time.
I marked this as stale due to inactivity. → More info
I closed this issue due to inactivity. → More info
They should be populated by "https://github.com/NixOS/nix/blob/master/scripts/install-nix-from-closure.sh#L63", but somehow they don't.
Steps to reproduce:
curl https://nixos.org/nix/install | sh
sqlite3 /nix/var/nix/db/db.sqlite "select id, hash, registrationTime, deriver, narSize from ValidPaths"
has zeros on narSize and hash fieldsnix-store --repair --validate --check-contents
makes the problem disappear.