NixOS / nix

Nix, the purely functional package manager
https://nixos.org/
GNU Lesser General Public License v2.1
12.29k stars 1.48k forks source link

After installing Nix using `install-nix-from-closure.sh`, (some) paths on "/nix/var/nix/db" has zeros at hash and size fields #647

Open utdemir opened 9 years ago

utdemir commented 9 years ago

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:

nix-store --repair --validate --check-contents makes the problem disappear.

utdemir commented 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.

edolstra commented 9 years ago

If it's an EC2 or VirtualBox machine created by NixOps, this has been fixed by https://github.com/NixOS/nixpkgs/commit/724cf98bdfac2b13fa2713ceb2e68014c1ec194a.

utdemir commented 9 years ago

@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.

stale[bot] commented 3 years ago

I marked this as stale due to inactivity. → More info

stale[bot] commented 2 years ago

I closed this issue due to inactivity. → More info