[Nix-dev] Broken nix database/store.

Layus layus.on at gmail.com
Thu Jun 9 19:21:36 CEST 2016


Hi,

Due to a wrong manipulation when activating dir_index on my root 
partition, I have now plenty of live orphaned paths in my store (about 
5G) like this one:

|$ nix-store -q --referrers-closure 
/nix/store/4zhkw0g564g3ljdpnn8j5krrsvcxildn-libXcomposite-0.4.4.tar.bz2 
/nix/store/4zhkw0g564g3ljdpnn8j5krrsvcxildn-libXcomposite-0.4.4.tar.bz2 
$ nix-store --delete 
/nix/store/4zhkw0g564g3ljdpnn8j5krrsvcxildn-libXcomposite-0.4.4.tar.bz2 
finding garbage collector roots... error: cannot delete path 
‘/nix/store/4zhkw0g564g3ljdpnn8j5krrsvcxildn-libXcomposite-0.4.4.tar.bz2’ since 
it is still alive 0 store paths deleted, 0.00 MiB freed $ nix-store 
--delete --ignore-liveness 
/nix/store/4zhkw0g564g3ljdpnn8j5krrsvcxildn-libXcomposite-0.4.4.tar.bz2 
error: you are not allowed to ignore liveness 0 store paths deleted, 
0.00 MiB freed $ sudo nix-store --delete 
/nix/store/4zhkw0g564g3ljdpnn8j5krrsvcxildn-libXcomposite-0.4.4.tar.bz2 
finding garbage collector roots... error: cannot delete path 
‘/nix/store/4zhkw0g564g3ljdpnn8j5krrsvcxildn-libXcomposite-0.4.4.tar.bz2’ since 
it is still alive 0 store paths deleted, 0.00 MiB freed $ sudo nix-store 
--delete --ignore-liveness 
/nix/store/4zhkw0g564g3ljdpnn8j5krrsvcxildn-libXcomposite-0.4.4.tar.bz2 
finding garbage collector roots... deleting 
‘/nix/store/4zhkw0g564g3ljdpnn8j5krrsvcxildn-libXcomposite-0.4.4.tar.bz2’ deleting 
‘/nix/store/trash’ deleting unused links... note: currently hard linking 
saves 1754.97 MiB 1 store paths deleted, 0.27 MiB freed |

Is there some repair command to update liveness of paths ?

nix-store --verify --check-contents --repair finds nothing useful.

Regards,
-- Layus.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.science.uu.nl/pipermail/nix-dev/attachments/20160609/179fa364/attachment-0001.html>


More information about the nix-dev mailing list