[Nix-dev] sudo nixos-rebuild test failes after new install
4levels
4levels at gmail.com
Thu Jan 28 11:39:07 CET 2016
Hi Nix-Devs,
it seems that I'm the culprit of this messed up state of the Vultr machines.
I tried adding a swap partition under the fileSystems directive. After
finding the correct way to define swap devices (I was assuming
fileSystems."swap" would work), the damage was already done and deploying
via NixOps started failing on all 5 servers.
I just finished reinstalling one machine and now everything seems to work
again (on that machine that is, the others are still failing). I didn't
realize messing with the fileSystems entry is this kind of dangerous ;-)
Kind regards,
Erik
On Thu, Jan 28, 2016 at 8:53 AM 4levels <4levels at gmail.com> wrote:
> Hi Nix Dev's,
>
> yesterday I set up a new instance on Vultr (by adding the latest nixos
> minimal install disk).
>
> After the initial install - which just works fine - I cannot rebuild
> anymore. I can update the machine through NixOps, but running
> nixos-rebuild always failes.
>
> This is the output I'm getting:
> building Nix...
> building the system configuration...
> error: value is a list while a set was expected, at
> /nix/store/iwhkdzryfzapl5cya1y88y1rpajff8ca-nixos-15.09.947.6783594/nixos/nixpkgs/lib/modules.nix:214:62
>
> This seems unrelated to my own configuration options, or am I missing
> something obvious here?
>
> I've tried updating the channels, my current channels are:
> nixos https://nixos.org/channels/nixos-15.09
> nixos-15.09 https://nixos.org/channels/nixos-15.09
> (they both seem identical to me, except for the name)
>
> Kind regards,
>
> Erik
>
> Full trace:
> building Nix...
> building the system configuration...
> error: while evaluating the attribute ‘buildCommand’ of the derivation
> ‘nixos-15.09.947.6783594’ at
> /nix/store/iwhkdzryfzapl5cya1y88y1rpajff8ca-nixos-15.09.947.6783594/nixos/nixpkgs/nixos/modules/system/activation/top-level.nix:102:7:
> while evaluating the attribute ‘sources’ of the derivation ‘etc’ at
> /nix/store/iwhkdzryfzapl5cya1y88y1rpajff8ca-nixos-15.09.947.6783594/nixos/nixpkgs/nixos/modules/system/etc/etc.nix:12:5:
> while evaluating the attribute ‘environment.etc’ at
> /nix/store/iwhkdzryfzapl5cya1y88y1rpajff8ca-nixos-15.09.947.6783594/nixos/nixpkgs/lib/attrsets.nix:134:44:
> while evaluating anonymous function at
> /nix/store/iwhkdzryfzapl5cya1y88y1rpajff8ca-nixos-15.09.947.6783594/nixos/nixpkgs/lib/modules.nix:74:45,
> called from
> /nix/store/iwhkdzryfzapl5cya1y88y1rpajff8ca-nixos-15.09.947.6783594/nixos/nixpkgs/lib/attrsets.nix:134:52:
> while evaluating the attribute ‘value’ at
> /nix/store/iwhkdzryfzapl5cya1y88y1rpajff8ca-nixos-15.09.947.6783594/nixos/nixpkgs/lib/modules.nix:287:9:
> while evaluating the option `environment.etc':
> while evaluating the attribute ‘isDefined’ at
> /nix/store/iwhkdzryfzapl5cya1y88y1rpajff8ca-nixos-15.09.947.6783594/nixos/nixpkgs/lib/modules.nix:319:5:
> while evaluating ‘filterOverrides’ at
> /nix/store/iwhkdzryfzapl5cya1y88y1rpajff8ca-nixos-15.09.947.6783594/nixos/nixpkgs/lib/modules.nix:391:21,
> called from
> /nix/store/iwhkdzryfzapl5cya1y88y1rpajff8ca-nixos-15.09.947.6783594/nixos/nixpkgs/lib/modules.nix:303:18:
> while evaluating ‘concatMap’ at
> /nix/store/iwhkdzryfzapl5cya1y88y1rpajff8ca-nixos-15.09.947.6783594/nixos/nixpkgs/lib/lists.nix:62:18,
> called from
> /nix/store/iwhkdzryfzapl5cya1y88y1rpajff8ca-nixos-15.09.947.6783594/nixos/nixpkgs/lib/modules.nix:397:8:
> while evaluating ‘concatMap’ at
> /nix/store/iwhkdzryfzapl5cya1y88y1rpajff8ca-nixos-15.09.947.6783594/nixos/nixpkgs/lib/lists.nix:62:18,
> called from
> /nix/store/iwhkdzryfzapl5cya1y88y1rpajff8ca-nixos-15.09.947.6783594/nixos/nixpkgs/lib/modules.nix:298:17:
> while evaluating anonymous function at
> /nix/store/iwhkdzryfzapl5cya1y88y1rpajff8ca-nixos-15.09.947.6783594/nixos/nixpkgs/lib/modules.nix:298:28,
> called from undefined position:
> while evaluating ‘dischargeProperties’ at
> /nix/store/iwhkdzryfzapl5cya1y88y1rpajff8ca-nixos-15.09.947.6783594/nixos/nixpkgs/lib/modules.nix:361:25,
> called from
> /nix/store/iwhkdzryfzapl5cya1y88y1rpajff8ca-nixos-15.09.947.6783594/nixos/nixpkgs/lib/modules.nix:299:62:
> while evaluating ‘dischargeProperties’ at
> /nix/store/iwhkdzryfzapl5cya1y88y1rpajff8ca-nixos-15.09.947.6783594/nixos/nixpkgs/lib/modules.nix:361:25,
> called from
> /nix/store/iwhkdzryfzapl5cya1y88y1rpajff8ca-nixos-15.09.947.6783594/nixos/nixpkgs/lib/modules.nix:366:9:
> while evaluating the attribute ‘content’ at
> /nix/store/iwhkdzryfzapl5cya1y88y1rpajff8ca-nixos-15.09.947.6783594/nixos/nixpkgs/lib/modules.nix:437:14:
> while evaluating the attribute ‘etc’ at
> /nix/store/iwhkdzryfzapl5cya1y88y1rpajff8ca-nixos-15.09.947.6783594/nixos/nixpkgs/nixos/modules/services/networking/ssh/sshd.nix:235:5:
> while evaluating ‘flip’ at
> /nix/store/iwhkdzryfzapl5cya1y88y1rpajff8ca-nixos-15.09.947.6783594/nixos/nixpkgs/lib/trivial.nix:57:16,
> called from
> /nix/store/iwhkdzryfzapl5cya1y88y1rpajff8ca-nixos-15.09.947.6783594/nixos/nixpkgs/nixos/modules/services/networking/ssh/sshd.nix:50:33:
> while evaluating ‘filterAttrs’ at
> /nix/store/iwhkdzryfzapl5cya1y88y1rpajff8ca-nixos-15.09.947.6783594/nixos/nixpkgs/lib/attrsets.nix:77:23,
> called from
> /nix/store/iwhkdzryfzapl5cya1y88y1rpajff8ca-nixos-15.09.947.6783594/nixos/nixpkgs/lib/trivial.nix:57:19:
> while evaluating ‘concatMap’ at
> /nix/store/iwhkdzryfzapl5cya1y88y1rpajff8ca-nixos-15.09.947.6783594/nixos/nixpkgs/lib/lists.nix:62:18,
> called from
> /nix/store/iwhkdzryfzapl5cya1y88y1rpajff8ca-nixos-15.09.947.6783594/nixos/nixpkgs/lib/attrsets.nix:78:18:
> while evaluating anonymous function at
> /nix/store/iwhkdzryfzapl5cya1y88y1rpajff8ca-nixos-15.09.947.6783594/nixos/nixpkgs/lib/attrsets.nix:78:29,
> called from undefined position:
> while evaluating anonymous function at
> /nix/store/iwhkdzryfzapl5cya1y88y1rpajff8ca-nixos-15.09.947.6783594/nixos/nixpkgs/nixos/modules/services/networking/ssh/sshd.nix:50:78,
> called from
> /nix/store/iwhkdzryfzapl5cya1y88y1rpajff8ca-nixos-15.09.947.6783594/nixos/nixpkgs/lib/attrsets.nix:78:62:
> while evaluating the attribute ‘openssh.authorizedKeys.keys’ at
> /nix/store/iwhkdzryfzapl5cya1y88y1rpajff8ca-nixos-15.09.947.6783594/nixos/nixpkgs/lib/attrsets.nix:134:44:
> while evaluating anonymous function at
> /nix/store/iwhkdzryfzapl5cya1y88y1rpajff8ca-nixos-15.09.947.6783594/nixos/nixpkgs/lib/modules.nix:74:45,
> called from
> /nix/store/iwhkdzryfzapl5cya1y88y1rpajff8ca-nixos-15.09.947.6783594/nixos/nixpkgs/lib/attrsets.nix:134:52:
> while evaluating ‘yieldConfig’ at
> /nix/store/iwhkdzryfzapl5cya1y88y1rpajff8ca-nixos-15.09.947.6783594/nixos/nixpkgs/lib/modules.nix:73:29,
> called from
> /nix/store/iwhkdzryfzapl5cya1y88y1rpajff8ca-nixos-15.09.947.6783594/nixos/nixpkgs/lib/modules.nix:76:16:
> while evaluating anonymous function at
> /nix/store/iwhkdzryfzapl5cya1y88y1rpajff8ca-nixos-15.09.947.6783594/nixos/nixpkgs/lib/modules.nix:79:24,
> called from
> /nix/store/iwhkdzryfzapl5cya1y88y1rpajff8ca-nixos-15.09.947.6783594/nixos/nixpkgs/lib/modules.nix:79:11:
> while evaluating the attribute ‘names’ at
> /nix/store/iwhkdzryfzapl5cya1y88y1rpajff8ca-nixos-15.09.947.6783594/nixos/nixpkgs/lib/modules.nix:214:54:
> value is a list while a set was expected, at
> /nix/store/iwhkdzryfzapl5cya1y88y1rpajff8ca-nixos-15.09.947.6783594/nixos/nixpkgs/lib/modules.nix:214:62
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20160128/ba42faee/attachment.html
More information about the nix-dev
mailing list