[Nix-dev] nixos-rebuild issues

Jan Malakhovski oxij at oxij.org
Fri Dec 21 00:58:08 CET 2012


On Thu, 20 Dec 2012 23:19:20 +0000
Jan Malakhovski <oxij at oxij.org> wrote:

> Yep, thanks. As I mentioned, I'd done something similar and it'd worked.
> 
> On Thu, 20 Dec 2012 17:56:46 -0500
> Shea Levy <shea at shealevy.com> wrote:
> 
> > I give up! Just remove the new line in the first command.
> > 
> > On 12/20/2012 05:57 PM, shea at shealevy.com wrote:
> > > Gah! Now I definitely look a fool :)
> > >
> > > # $(nix-build -A system "<nixos>"
> > > --no-out-link)/bin/switch-to-configuration test
> > > # nixos-rebuild switch/boot/whatever
> > >

Ouch. I thought this was a workaround for a proxy issue, but it worked in both cases :)

On Fri, 21 Dec 2012 00:06:44 +0100
Eelco Dolstra <eelco.dolstra at logicblox.com> wrote:

> Hi,
> 
> On 20/12/12 23:50, Shea Levy wrote:
> 
> > This is actually a problem with nix-1.2 client interacting poorly with 
> > nix-1.1 daemon (https://github.com/NixOS/nix/issues/76).
> 
> By chance this problem doesn't occur on the NixOS-systemd branch, which is
> probably why I didn't notice it.
> 
> > The workaround 
> > for now is to run the following as root:
> 
> A simpler workaround (not tested) should be to run "stop nix-daemon" first.

"stop nix-daemon" works fine too.


More information about the nix-dev mailing list