GNU bug report logs - #35175
Cannot reconfigure

Previous Next

Package: guix;

Reported by: Luther Thompson <lutheroto <at> gmail.com>

Date: Sat, 6 Apr 2019 19:35:01 UTC

Severity: normal

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 35175 in the body.
You can then email your comments to 35175 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#35175; Package guix. (Sat, 06 Apr 2019 19:35:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Luther Thompson <lutheroto <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Sat, 06 Apr 2019 19:35:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Luther Thompson <lutheroto <at> gmail.com>
To: bug-guix <at> gnu.org
Subject: Cannot reconfigure
Date: Sat, 6 Apr 2019 15:34:11 -0400
[Message part 1 (text/plain, inline)]
`sudo guix system reconfigure config.scm` fails on Guix commit 177bc62.
I'm attaching my config.scm. Here is my backtrace:

---BEGIN---
/home/luther/config.scm:40:4: warning: 'title' field is deprecated
Backtrace:
In gnu/services.scm:
   778:26 19 (loop #<<service> type: #<service-type account 1f9fa00>…>)
In srfi/srfi-1.scm:
   592:29 18 (map1 (#<<service> type: #<service-type guix 27edc80…> …))
   592:29 17 (map1 (#<<service> type: #<service-type ntp 27ed5a0>…> …))
   592:17 16 (map1 (#<<service> type: #<service-type dbus 27ed9b0…> …))
In gnu/services.scm:
   778:26 15 (loop #<<service> type: #<service-type dbus 27ed9b0> va…>)
In srfi/srfi-1.scm:
   592:29 14 (map1 (#<<service> type: #<service-type elogind 27ed…> …))
   592:17 13 (map1 (#<<service> type: #<service-type polkit 27ed9…> …))
In gnu/services.scm:
   778:26 12 (loop #<<service> type: #<service-type polkit 27ed960> …>)
In srfi/srfi-1.scm:
   592:29 11 (map1 (#<<service> type: #<service-type elogind 27ed…> …))
   592:29 10 (map1 (#<<service> type: #<service-type colord 27ed0…> …))
   592:29  9 (map1 (#<<service> type: #<service-type cups-pk-help…> …))
   592:29  8 (map1 (#<<service> type: #<service-type accountsserv…> …))
   592:29  7 (map1 (#<<service> type: #<service-type udisks 27ed0…> …))
   592:29  6 (map1 (#<<service> type: #<service-type network-mana…> …))
   592:29  5 (map1 (#<<service> type: #<service-type gnome-deskto…> …))
   592:17  4 (map1 (#<<service> type: #<service-type localed 27ed82…>))
In gnu/services.scm:
   778:26  3 (loop #<<service> type: #<service-type localed 27ed820>…>)
In srfi/srfi-1.scm:
   592:17  2 (map1 (#<<service> type: #<service-type gdm 27ed730> v…>))
In gnu/services.scm:
   787:37  1 (loop #<<service> type: #<service-type gdm 27ed730> val…>)
In unknown file:
           0 (car ())

ERROR: In procedure car:
In procedure car: Wrong type (expecting pair): ()
---END---

Luther
[config.scm (text/x-scheme, attachment)]

Information forwarded to bug-guix <at> gnu.org:
bug#35175; Package guix. (Sat, 06 Apr 2019 20:50:02 GMT) Full text and rfc822 format available.

Message #8 received at 35175 <at> debbugs.gnu.org (full text, mbox):

From: znavko <at> disroot.org
To: "Luther Thompson" <lutheroto <at> gmail.com>, 35175 <at> debbugs.gnu.org
Subject: Re: bug#35175: Cannot reconfigure
Date: Sat, 06 Apr 2019 20:44:45 +0000
This is not a bug, but your config is wrong here:

  (file-systems
   (cons
    (file-system (device "my-root")
		 (mount-point "/")
		 (type "ext4")
		 (title 'label))
    %base-file-systems))

Delete string  `(title 'label)` and leave like this:

  (file-systems
   (cons
    (file-system (device "my-root")
		 (mount-point "/")
		 (type "ext4"))
    %base-file-systems))

And then try to reconfigure.

April 6, 2019 7:35 PM, "Luther Thompson" <lutheroto <at> gmail.com> wrote:

> `sudo guix system reconfigure config.scm` fails on Guix commit 177bc62.
> I'm attaching my config.scm. Here is my backtrace:
> 
> ---BEGIN---
> /home/luther/config.scm:40:4: warning: 'title' field is deprecated
> Backtrace:
> In gnu/services.scm:
> 778:26 19 (loop #<<service> type: #<service-type account 1f9fa00>…>)
> In srfi/srfi-1.scm:
> 592:29 18 (map1 (#<<service> type: #<service-type guix 27edc80…> …))
> 592:29 17 (map1 (#<<service> type: #<service-type ntp 27ed5a0>…> …))
> 592:17 16 (map1 (#<<service> type: #<service-type dbus 27ed9b0…> …))
> In gnu/services.scm:
> 778:26 15 (loop #<<service> type: #<service-type dbus 27ed9b0> va…>)
> In srfi/srfi-1.scm:
> 592:29 14 (map1 (#<<service> type: #<service-type elogind 27ed…> …))
> 592:17 13 (map1 (#<<service> type: #<service-type polkit 27ed9…> …))
> In gnu/services.scm:
> 778:26 12 (loop #<<service> type: #<service-type polkit 27ed960> …>)
> In srfi/srfi-1.scm:
> 592:29 11 (map1 (#<<service> type: #<service-type elogind 27ed…> …))
> 592:29 10 (map1 (#<<service> type: #<service-type colord 27ed0…> …))
> 592:29 9 (map1 (#<<service> type: #<service-type cups-pk-help…> …))
> 592:29 8 (map1 (#<<service> type: #<service-type accountsserv…> …))
> 592:29 7 (map1 (#<<service> type: #<service-type udisks 27ed0…> …))
> 592:29 6 (map1 (#<<service> type: #<service-type network-mana…> …))
> 592:29 5 (map1 (#<<service> type: #<service-type gnome-deskto…> …))
> 592:17 4 (map1 (#<<service> type: #<service-type localed 27ed82…>))
> In gnu/services.scm:
> 778:26 3 (loop #<<service> type: #<service-type localed 27ed820>…>)
> In srfi/srfi-1.scm:
> 592:17 2 (map1 (#<<service> type: #<service-type gdm 27ed730> v…>))
> In gnu/services.scm:
> 787:37 1 (loop #<<service> type: #<service-type gdm 27ed730> val…>)
> In unknown file:
> 0 (car ())
> 
> ERROR: In procedure car:
> In procedure car: Wrong type (expecting pair): ()
> ---END---
> 
> Luther




Information forwarded to bug-guix <at> gnu.org:
bug#35175; Package guix. (Sat, 06 Apr 2019 21:27:01 GMT) Full text and rfc822 format available.

Message #11 received at 35175 <at> debbugs.gnu.org (full text, mbox):

From: Luther Thompson <lutheroto <at> gmail.com>
To: znavko <at> disroot.org
Cc: 35175 <at> debbugs.gnu.org
Subject: Re: bug#35175: Cannot reconfigure
Date: Sat, 6 Apr 2019 17:26:32 -0400
On Sat, 06 Apr 2019 20:44:45 +0000
znavko <at> disroot.org wrote:

> This is not a bug, but your config is wrong here:
> 
>   (file-systems
>    (cons
>     (file-system (device "my-root")
> 		 (mount-point "/")
> 		 (type "ext4")
> 		 (title 'label))
>     %base-file-systems))
> 
> Delete string  `(title 'label)` and leave like this:
> 
>   (file-systems
>    (cons
>     (file-system (device "my-root")
> 		 (mount-point "/")
> 		 (type "ext4"))
>     %base-file-systems))
> 
> And then try to reconfigure.

I'm still getting the same error. The backtrace says the error happens
"In unknown file", so I suspect the problem is in an eval or macro
somewhere.

Luther




Information forwarded to bug-guix <at> gnu.org:
bug#35175; Package guix. (Sun, 07 Apr 2019 08:16:01 GMT) Full text and rfc822 format available.

Message #14 received at 35175 <at> debbugs.gnu.org (full text, mbox):

From: znavko <at> disroot.org
To: "Luther Thompson" <lutheroto <at> gmail.com>
Cc: 35175 <at> debbugs.gnu.org
Subject: Re: bug#35175: Cannot reconfigure
Date: Sun, 07 Apr 2019 08:15:53 +0000
[Message part 1 (text/plain, inline)]
I think your guix files are old but your config needs new version.
Have you performed `guix pull && guix package -u` first?
If this line causes the errors too, try this way:
http://lists.gnu.org/archive/html/bug-guix/2018-09/msg00153.html
It helped me: just boot with another (may be the oldest) kernel and make updates with `guix pull && guix package -u`
And then try again. If not, post `guix describe` if it will be renewed.

April 6, 2019 9:26 PM, "Luther Thompson" <lutheroto <at> gmail.com (mailto:lutheroto <at> gmail.com)> wrote:
 On Sat, 06 Apr 2019 20:44:45 +0000
znavko <at> disroot.org (mailto:znavko <at> disroot.org) wrote:
 This is not a bug, but your config is wrong here:

(file-systems
(cons
(file-system (device "my-root")
(mount-point "/")
(type "ext4")
(title 'label))
%base-file-systems))

Delete string `(title 'label)` and leave like this:

(file-systems
(cons
(file-system (device "my-root")
(mount-point "/")
(type "ext4"))
%base-file-systems))

And then try to reconfigure. 

I'm still getting the same error. The backtrace says the error happens
"In unknown file", so I suspect the problem is in an eval or macro
somewhere.

Luther
[Message part 2 (text/html, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#35175; Package guix. (Sun, 07 Apr 2019 11:03:02 GMT) Full text and rfc822 format available.

Message #17 received at 35175 <at> debbugs.gnu.org (full text, mbox):

From: Luther Thompson <lutheroto <at> gmail.com>
To: znavko <at> disroot.org
Cc: 35175 <at> debbugs.gnu.org
Subject: Re: bug#35175: Cannot reconfigure
Date: Sun, 7 Apr 2019 07:02:38 -0400
On Sun, 07 Apr 2019 08:15:53 +0000
znavko <at> disroot.org wrote:

> I think your guix files are old but your config needs new version.
> Have you performed `guix pull && guix package -u` first?

I run `sudo guix pull` every day that I reconfigure, and it works.

I don't think it makes sense to run `guix package -u` as root, because
reconfiguring takes care of all that. Root should not need any packages
that aren't in the OS configuration.

> It helped me: just boot with another (may be the oldest) kernel and
> make updates with `guix pull && guix package -u` And then try again.

I'm hoping I won't have to use an older system generation or an older
Guix commit, because as long as `sudo guix pull` works, I should be
able to reconfigure as soon as someone fixes this bug (assuming my
backtrace is enough for someone to locate the bug).

> If not, post `guix describe` if it will be renewed.

Current output of `sudo guix describe`:

  guix 32c055f
    repository URL: https://git.savannah.gnu.org/git/guix.git
    branch: master
    commit: 32c055fd32059cbe0ab6f94eb3ef3a8c7e49dc92

So there's been further commits since I first encountered the problem.
Other than that, there's not much info here.

For what it's worth, I'm able to update my user profile without any
issue.

Luther




Reply sent to Ludovic Courtès <ludo <at> gnu.org>:
You have taken responsibility. (Sun, 07 Apr 2019 16:27:02 GMT) Full text and rfc822 format available.

Notification sent to Luther Thompson <lutheroto <at> gmail.com>:
bug acknowledged by developer. (Sun, 07 Apr 2019 16:27:02 GMT) Full text and rfc822 format available.

Message #22 received at 35175-done <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Luther Thompson <lutheroto <at> gmail.com>
Cc: 35175-done <at> debbugs.gnu.org
Subject: Re: bug#35175: Cannot reconfigure
Date: Sun, 07 Apr 2019 18:25:58 +0200
Hi Luther,

Luther Thompson <lutheroto <at> gmail.com> skribis:

> In gnu/services.scm:
>    787:37  1 (loop #<<service> type: #<service-type gdm 27ed730> val…>)
> In unknown file:
>            0 (car ())
>
> ERROR: In procedure car:
> In procedure car: Wrong type (expecting pair): ()

This was a mistake of mine, fixed in
0cf981a6066711f6e830a3f1d40f7c265b0bac94 a couple of days ago.

Could you try to ‘guix pull’ and then reconfigure?

Thanks, and apologies for the breakage!

Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#35175; Package guix. (Sun, 07 Apr 2019 21:29:02 GMT) Full text and rfc822 format available.

Message #25 received at 35175-done <at> debbugs.gnu.org (full text, mbox):

From: Luther Thompson <lutheroto <at> gmail.com>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 35175-done <at> debbugs.gnu.org
Subject: Re: bug#35175: Cannot reconfigure
Date: Sun, 7 Apr 2019 17:27:45 -0400
On Sun, 07 Apr 2019 18:25:58 +0200
Ludovic Courtès <ludo <at> gnu.org> wrote:

> Hi Luther,
> 
> Luther Thompson <lutheroto <at> gmail.com> skribis:
> 
> > In gnu/services.scm:
> >    787:37  1 (loop #<<service> type: #<service-type gdm 27ed730>
> > val…>) In unknown file:
> >            0 (car ())
> >
> > ERROR: In procedure car:
> > In procedure car: Wrong type (expecting pair): ()  
> 
> This was a mistake of mine, fixed in
> 0cf981a6066711f6e830a3f1d40f7c265b0bac94 a couple of days ago.
> 
> Could you try to ‘guix pull’ and then reconfigure?

I haven't rebooted yet, but the reconfigure did work. Thank you!

Luther




Information forwarded to bug-guix <at> gnu.org:
bug#35175; Package guix. (Mon, 08 Apr 2019 10:55:01 GMT) Full text and rfc822 format available.

Message #28 received at 35175 <at> debbugs.gnu.org (full text, mbox):

From: Danny Milosavljevic <dannym <at> scratchpost.org>
To: znavko <at> disroot.org, "Luther Thompson" <lutheroto <at> gmail.com>
Cc: 35175 <at> debbugs.gnu.org
Subject: Re: bug#35175: Cannot reconfigure
Date: Mon, 8 Apr 2019 12:54:14 +0200
[Message part 1 (text/plain, inline)]
On Sat, 06 Apr 2019 20:44:45 +0000
znavko <at> disroot.org wrote:

> This is not a bug, but your config is wrong here:
> 
>   (file-systems
>    (cons
>     (file-system (device "my-root")
> 		 (mount-point "/")
> 		 (type "ext4")
> 		 (title 'label))
>     %base-file-systems))
> 
> Delete string  `(title 'label)` and leave like this:
> 
>   (file-systems
>    (cons
>     (file-system (device "my-root")
> 		 (mount-point "/")
> 		 (type "ext4"))
>     %base-file-systems))

... why?

I use (title 'label) for more than a year and it works fine.

The reason for the error Luther encountered is because something is up with the gdm service.

And that's because of

                      (extend params (compose extensions)))

And I guess the extension/composition mechanism of gdm is broken.

There was a commit

commit 0cf981a6066711f6e830a3f1d40f7c265b0bac94
Author: Ludovic Courtès <ludo <at> gnu.org>
Date:   Fri Apr 5 17:40:01 2019 +0200

    services: gdm: Properly handle empty extensions lists.

recently.

The change is:

diff --git a/gnu/services/xorg.scm b/gnu/services/xorg.scm
index 26ca0d4f1f..ede8bc7304 100644
--- a/gnu/services/xorg.scm
+++ b/gnu/services/xorg.scm
@@ -879,11 +879,16 @@ the GNOME desktop environment.")
                 ;; For convenience, this service can be extended with an
                 ;; <xorg-configuration> record.  Take the first one that
                 ;; comes.
-                (compose first)
+                (compose (lambda (extensions)
+                           (match extensions
+                             (() #f)
+                             ((config . _) config))))
                 (extend (lambda (config xorg-configuration)
-                          (gdm-configuration
-                           (inherit config)
-                           (xorg-configuration xorg-configuration))))
+                          (if xorg-configuration
+                              (gdm-configuration
+                               (inherit config)
+                               (xorg-configuration xorg-configuration))
+                              config)))
 
                 (default-value (gdm-configuration))
                 (description

@Luther: Could you try with the commit right before that change?

  guix pull --commit=37aaf9a8c7d64ae69c4670a12f481dfc0aac53ae

[Message part 2 (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#35175; Package guix. (Mon, 08 Apr 2019 14:47:02 GMT) Full text and rfc822 format available.

Message #31 received at 35175 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Danny Milosavljevic <dannym <at> scratchpost.org>
Cc: 35175 <at> debbugs.gnu.org, Luther Thompson <lutheroto <at> gmail.com>,
 znavko <at> disroot.org
Subject: Re: bug#35175: Cannot reconfigure
Date: Mon, 08 Apr 2019 16:46:44 +0200
Danny Milosavljevic <dannym <at> scratchpost.org> skribis:

> On Sat, 06 Apr 2019 20:44:45 +0000
> znavko <at> disroot.org wrote:
>
>> This is not a bug, but your config is wrong here:
>> 
>>   (file-systems
>>    (cons
>>     (file-system (device "my-root")
>> 		 (mount-point "/")
>> 		 (type "ext4")
>> 		 (title 'label))
>>     %base-file-systems))
>> 
>> Delete string  `(title 'label)` and leave like this:
>> 
>>   (file-systems
>>    (cons
>>     (file-system (device "my-root")
>> 		 (mount-point "/")
>> 		 (type "ext4"))
>>     %base-file-systems))
>
> ... why?
>
> I use (title 'label) for more than a year and it works fine.

As a side note, ‘title’ has been deprecated for a year or so.  You
should now write:

  (file-system
    (device (file-system-label "my-root"))
    (mount-point "/")
    (type "ext4"))

See <https://gnu.org/s/guix/manual/en/html_node/File-Systems.html>.

Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#35175; Package guix. (Mon, 08 Apr 2019 23:29:01 GMT) Full text and rfc822 format available.

Message #34 received at 35175 <at> debbugs.gnu.org (full text, mbox):

From: Luther Thompson <lutheroto <at> gmail.com>
To: Danny Milosavljevic <dannym <at> scratchpost.org>
Cc: 35175 <at> debbugs.gnu.org, znavko <at> disroot.org
Subject: Re: bug#35175: Cannot reconfigure
Date: Mon, 8 Apr 2019 19:27:52 -0400
On Mon, 8 Apr 2019 12:54:14 +0200
Danny Milosavljevic <dannym <at> scratchpost.org> wrote:

> The reason for the error Luther encountered is because something is
> up with the gdm service.
> 
> And that's because of
> 
>                       (extend params (compose extensions)))
> 
> And I guess the extension/composition mechanism of gdm is broken.
> 
> There was a commit
> 
> commit 0cf981a6066711f6e830a3f1d40f7c265b0bac94
> Author: Ludovic Courtès <ludo <at> gnu.org>
> Date:   Fri Apr 5 17:40:01 2019 +0200
> 
>     services: gdm: Properly handle empty extensions lists.
> 
> recently.
> 
> @Luther: Could you try with the commit right before that change?

I think that's the commit that *fixed* the problem. It didn't work for
me until 2 days later, which may be due to the fact that `guix system
reconfigure` actually installs a system from a couple of `guix pull`s
ago. I know that by seeing the Linux versions in GRUB.

Luther




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 07 May 2019 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 348 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.