[Nix-dev] Berkeley DB hangs (was: Stdenv update)

Eelco Dolstra e.dolstra at tudelft.nl
Tue Mar 11 14:04:58 CET 2008


Hi,

Eelco Dolstra wrote:

> If this happens and the upgrade hangs, then try killing all Nix 
> processes (nix-store, nix-instantiate), and do:
> 
> $ nix-channel --update
> $ nix-build /etc/nixos/nixpkgs -A nixUnstable -o nix
> $ ./nix/bin/nix-env -q \*  # <- should recover the DB
> $ PATH=./nix/bin:$PATH NIXOS_NO_PULL=1 nixos-rebuild switch

Actually, there's a much simpler workaround: just set NIX_REMOTE to "daemon":

$ NIX_REMOTE=daemon nixos-rebuild switch

After the switch you may still need to kill any running Nix processes and do a 
"nix-store -q" to recover the Berkeley DB environment.

-- 
Eelco Dolstra | http://www.st.ewi.tudelft.nl/~dolstra/



More information about the nix-dev mailing list