[Nix-dev] sudo nixos-rebuild test failes after new install

Daniel Hlynskyi abcz2.uprola at gmail.com
Sat Jun 18 09:49:07 CEST 2016


Messing with filesystems.* is really dangerous. Once I forgot to assign
label to root partirion and referenced disk by label in configuration.
Nixos-rebuuld switch and goodbye.

Yesterday I forgot to mkfs of a new LV before nixos-rebuild, got
local-fs.target failed and bricked instance. Sadly this time I lost all the
disk data, because rescue system failed somehow.
28 січ. 2016 1:39 пп, користувач "4levels" <4levels at gmail.com> написав:

> 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
>>
>
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.science.uu.nl/pipermail/nix-dev/attachments/20160618/ea239f14/attachment-0001.html>


More information about the nix-dev mailing list