[prev in list] [next in list] [prev in thread] [next in thread] 

List:       nix-dev
Subject:    Re: [Nix-dev] sudo nixos-rebuild test failes after new install
From:       4levels <4levels () gmail ! com>
Date:       2016-01-28 10:39:07
Message-ID: CADpgxdQJQ=qiOZhhCPW5oB1QX0DLoJX1B3_0p=FGoQ7dRX048w () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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@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
>  


[Attachment #5 (text/html)]

<div dir="ltr">Hi Nix-Devs,<div><br></div><div>it seems that I&#39;m the culprit of \
this messed up state of the Vultr machines.</div><div>I tried adding a swap partition \
under the fileSystems directive.   After finding the correct way to define swap \
devices (I was assuming fileSystems.&quot;swap&quot; would work), the damage was \
already done and deploying via NixOps started failing on all 5 \
servers.</div><div><br></div><div>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&#39;t realize messing with the fileSystems entry is this kind of \
dangerous ;-)</div><div><br></div><div>Kind \
regards,</div><div><br></div><div>Erik</div></div><br><div class="gmail_quote"><div \
dir="ltr">On Thu, Jan 28, 2016 at 8:53 AM 4levels &lt;<a \
href="mailto:4levels@gmail.com">4levels@gmail.com</a>&gt; wrote:<br></div><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr">Hi Nix Dev&#39;s,<div><br></div><div>yesterday \
I set up a new instance on Vultr (by adding the latest nixos minimal install \
disk).</div><div><br></div><div>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.</div><div><br></div><div>This is the output I&#39;m \
getting:</div><div><div>building Nix...</div><div>building the system \
configuration...</div><div>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</div></div><div><br></div><div>This \
seems unrelated to my own configuration options, or am I missing something obvious \
here?</div><div><br></div><div>I&#39;ve tried updating the channels, my current \
channels are:</div><div><div>nixos <a href="https://nixos.org/channels/nixos-15.09" \
target="_blank">https://nixos.org/channels/nixos-15.09</a><br></div></div><div><div>nixos-15.09 \
<a href="https://nixos.org/channels/nixos-15.09" \
target="_blank">https://nixos.org/channels/nixos-15.09</a></div></div><div>(they both \
seem identical to me, except for the name)</div><div><br></div><div>Kind \
regards,</div><div><br></div><div>Erik</div><div><br></div><div>Full \
trace:</div><div><div>building Nix...</div><div>building the system \
configuration...</div><div>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:</div><div>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:</div><div>while \
evaluating the attribute ‘environment.etc' at \
/nix/store/iwhkdzryfzapl5cya1y88y1rpajff8ca-nixos-15.09.947.6783594/nixos/nixpkgs/lib/attrsets.nix:134:44:</div><div>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:</div><div>while \
evaluating the attribute ‘value' at \
/nix/store/iwhkdzryfzapl5cya1y88y1rpajff8ca-nixos-15.09.947.6783594/nixos/nixpkgs/lib/modules.nix:287:9:</div><div>while \
evaluating the option `environment.etc&#39;:</div><div>while evaluating the attribute \
‘isDefined' at /nix/store/iwhkdzryfzapl5cya1y88y1rpajff8ca-nixos-15.09.947.6783594/nixos/nixpkgs/lib/modules.nix:319:5:</div><div>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:</div><div>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:</div><div>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:</div><div>while \
evaluating anonymous function at \
/nix/store/iwhkdzryfzapl5cya1y88y1rpajff8ca-nixos-15.09.947.6783594/nixos/nixpkgs/lib/modules.nix:298:28, \
called from undefined position:</div><div>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:</div><div>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:</div><div>while \
evaluating the attribute ‘content' at \
/nix/store/iwhkdzryfzapl5cya1y88y1rpajff8ca-nixos-15.09.947.6783594/nixos/nixpkgs/lib/modules.nix:437:14:</div><div>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:</div><div>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:</div><div>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:</div><div>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:</div><div>while \
evaluating anonymous function at \
/nix/store/iwhkdzryfzapl5cya1y88y1rpajff8ca-nixos-15.09.947.6783594/nixos/nixpkgs/lib/attrsets.nix:78:29, \
called from undefined position:</div><div>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:</div><div>while \
evaluating the attribute ‘openssh.authorizedKeys.keys' at \
/nix/store/iwhkdzryfzapl5cya1y88y1rpajff8ca-nixos-15.09.947.6783594/nixos/nixpkgs/lib/attrsets.nix:134:44:</div><div>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:</div><div>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:</div><div>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:</div><div>while \
evaluating the attribute ‘names' at \
/nix/store/iwhkdzryfzapl5cya1y88y1rpajff8ca-nixos-15.09.947.6783594/nixos/nixpkgs/lib/modules.nix:214:54:</div><div>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</div></div></div></blockquote></div>




_______________________________________________
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic