GNU bug report logs - #31162
"guix pull" broke itself

Previous Next

Package: guix;

Reported by: Danny Milosavljevic <dannym <at> scratchpost.org>

Date: Sun, 15 Apr 2018 11:01:02 UTC

Severity: normal

Done: Ricardo Wurmus <rekado <at> fhain.coderdojo.berlin>

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 31162 in the body.
You can then email your comments to 31162 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#31162; Package guix. (Sun, 15 Apr 2018 11:01:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Danny Milosavljevic <dannym <at> scratchpost.org>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Sun, 15 Apr 2018 11:01:02 GMT) Full text and rfc822 format available.

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

From: Danny Milosavljevic <dannym <at> scratchpost.org>
To: <bug-guix <at> gnu.org>
Subject: "guix pull" broke itself
Date: Sun, 15 Apr 2018 12:59:42 +0200
[Message part 1 (text/plain, inline)]
$ guix pull
Updating from Git repository at 'https://git.savannah.gnu.org/git/guix.git'...
Building from Git commit fc12113704255616522cb56fc37b4a18fccd84eb...
Backtrace:
In ice-9/boot-9.scm:
   2862:4 19 (define-module* _ #:filename _ #:pure _ #:version _ # _ …)
  2071:24 18 (call-with-deferred-observers #<procedure 49399b0 at ic…>)
  2875:24 17 (_)
   222:17 16 (map1 (((gnu)) ((guix)) ((guix ui)) ((guix config)) # …))
  2788:17 15 (resolve-interface (gnu) #:select _ #:hide _ #:prefix _ …)
  2714:10 14 (_ (gnu) _ _ #:ensure _)
  2982:16 13 (try-module-autoload _ _)
   2312:4 12 (save-module-excursion #<procedure 4439750 at ice-9/boo…>)
  3002:22 11 (_)
In unknown file:
          10 (primitive-load-path "gnu" #<procedure 404b680 at ice-9…>)
In gnu.scm:
     58:4  9 (_)
In ice-9/boot-9.scm:
   260:13  8 (for-each #<procedure 404b340 at gnu.scm:59:16 (m)> (# …))
In gnu.scm:
    60:33  7 (_ (gnu system))
In ice-9/boot-9.scm:
  2788:17  6 (resolve-interface (gnu system) #:select _ #:hide _ # _ …)
  2714:10  5 (_ (gnu system) _ _ #:ensure _)
  2982:16  4 (try-module-autoload _ _)
   2312:4  3 (save-module-excursion #<procedure 4439480 at ice-9/boo…>)
  3002:22  2 (_)
In unknown file:
           1 (primitive-load-path "gnu/system" #<procedure 404b2c0 a…>)
In gnu/system.scm:
    508:0  0 (_)

gnu/system.scm:508:0: util-linux-2.31.1: unbound variable

$ ls -l $(which guix)
/run/current-system/profile/bin/guix -> /gnu/store/xzz0xn80jp48fzy5xz4k8nmwwz1badgc-guix-0.14.0-9.bdf0c64/bin/guix

$ grep -r util-linux-2.31 /gnu/store/xzz0xn80jp48fzy5xz4k8nmwwz1badgc-guix-0.14.0-9.bdf0c64/share/guile/site/2.2/gnu/
$
[Message part 2 (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#31162; Package guix. (Wed, 18 Apr 2018 21:20:02 GMT) Full text and rfc822 format available.

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

From: ludo <at> gnu.org (Ludovic Courtès)
To: Danny Milosavljevic <dannym <at> scratchpost.org>
Cc: 31162 <at> debbugs.gnu.org
Subject: Re: bug#31162: "guix pull" broke itself
Date: Wed, 18 Apr 2018 23:19:22 +0200
Hi Danny,

Danny Milosavljevic <dannym <at> scratchpost.org> skribis:

> $ guix pull
> Updating from Git repository at 'https://git.savannah.gnu.org/git/guix.git'...
> Building from Git commit fc12113704255616522cb56fc37b4a18fccd84eb...
> Backtrace:
> In ice-9/boot-9.scm:
>    2862:4 19 (define-module* _ #:filename _ #:pure _ #:version _ # _ …)
>   2071:24 18 (call-with-deferred-observers #<procedure 49399b0 at ic…>)
>   2875:24 17 (_)
>    222:17 16 (map1 (((gnu)) ((guix)) ((guix ui)) ((guix config)) # …))
>   2788:17 15 (resolve-interface (gnu) #:select _ #:hide _ #:prefix _ …)
>   2714:10 14 (_ (gnu) _ _ #:ensure _)
>   2982:16 13 (try-module-autoload _ _)
>    2312:4 12 (save-module-excursion #<procedure 4439750 at ice-9/boo…>)
>   3002:22 11 (_)
> In unknown file:
>           10 (primitive-load-path "gnu" #<procedure 404b680 at ice-9…>)
> In gnu.scm:
>      58:4  9 (_)
> In ice-9/boot-9.scm:
>    260:13  8 (for-each #<procedure 404b340 at gnu.scm:59:16 (m)> (# …))
> In gnu.scm:
>     60:33  7 (_ (gnu system))
> In ice-9/boot-9.scm:
>   2788:17  6 (resolve-interface (gnu system) #:select _ #:hide _ # _ …)
>   2714:10  5 (_ (gnu system) _ _ #:ensure _)
>   2982:16  4 (try-module-autoload _ _)
>    2312:4  3 (save-module-excursion #<procedure 4439480 at ice-9/boo…>)
>   3002:22  2 (_)
> In unknown file:
>            1 (primitive-load-path "gnu/system" #<procedure 404b2c0 a…>)
> In gnu/system.scm:
>     508:0  0 (_)
>
> gnu/system.scm:508:0: util-linux-2.31.1: unbound variable
>
> $ ls -l $(which guix)
> /run/current-system/profile/bin/guix -> /gnu/store/xzz0xn80jp48fzy5xz4k8nmwwz1badgc-guix-0.14.0-9.bdf0c64/bin/guix
>
> $ grep -r util-linux-2.31 /gnu/store/xzz0xn80jp48fzy5xz4k8nmwwz1badgc-guix-0.14.0-9.bdf0c64/share/guile/site/2.2/gnu/

You should grep in ~/.config/guix/latest as well.

I can’t seem to reproduce the issue though.  Is it just running ‘guix
pull’ that breaks, or do ‘guix package’ or ‘guix system’ fail similarly?

Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#31162; Package guix. (Wed, 18 Apr 2018 21:41:01 GMT) Full text and rfc822 format available.

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

From: Danny Milosavljevic <dannym <at> scratchpost.org>
To: ludo <at> gnu.org (Ludovic Courtès)
Cc: 31162 <at> debbugs.gnu.org
Subject: Re: bug#31162: "guix pull" broke itself
Date: Wed, 18 Apr 2018 23:39:58 +0200
[Message part 1 (text/plain, inline)]
Hi Ludo,

> You should grep in ~/.config/guix/latest as well.

~/.config/guix/latest$ grep -r util-linux-2.31 .
./gnu/packages/linux.scm:(define-public util-linux-2.31.1
./gnu/system.scm:         util-linux-2.31.1
Binary file ./gnu/system.go matches

> I can’t seem to reproduce the issue though.  Is it just running ‘guix
> pull’ that breaks, or do ‘guix package’ or ‘guix system’ fail similarly?

'guix package' and 'guix system' fail as well, with the same message.
[Message part 2 (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#31162; Package guix. (Thu, 19 Apr 2018 12:23:02 GMT) Full text and rfc822 format available.

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

From: ludo <at> gnu.org (Ludovic Courtès)
To: Danny Milosavljevic <dannym <at> scratchpost.org>
Cc: 31162 <at> debbugs.gnu.org
Subject: Re: bug#31162: "guix pull" broke itself
Date: Thu, 19 Apr 2018 14:22:30 +0200
Hello,

Danny Milosavljevic <dannym <at> scratchpost.org> skribis:

>> You should grep in ~/.config/guix/latest as well.
>
> ~/.config/guix/latest$ grep -r util-linux-2.31 .
> ./gnu/packages/linux.scm:(define-public util-linux-2.31.1
> ./gnu/system.scm:         util-linux-2.31.1
> Binary file ./gnu/system.go matches
>
>> I can’t seem to reproduce the issue though.  Is it just running ‘guix
>> pull’ that breaks, or do ‘guix package’ or ‘guix system’ fail similarly?
>
> 'guix package' and 'guix system' fail as well, with the same message.

OK, so it sounds like it’s the *previous* ‘guix pull’ that left you with
miscompiled or otherwise broken modules.

Could you: ‘guix gc -R $(readlink -f ~/.config/guix/latest)’,
run ‘guix build --log-file’ for the relevant guix-*.drv, and see if the
build logs contain hints?

Besides, to work around the issue, you can always do:

  mv ~/.config/guix/latest{,.broken}
  guix pull

Thanks,
Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#31162; Package guix. (Thu, 19 Apr 2018 12:38:01 GMT) Full text and rfc822 format available.

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

From: Danny Milosavljevic <dannym <at> scratchpost.org>
To: ludo <at> gnu.org (Ludovic Courtès)
Cc: 31162 <at> debbugs.gnu.org
Subject: Re: bug#31162: "guix pull" broke itself
Date: Thu, 19 Apr 2018 14:37:23 +0200
[Message part 1 (text/plain, inline)]
Hi Ludo,

> OK, so it sounds like it’s the *previous* ‘guix pull’ that left you with
> miscompiled or otherwise broken modules.
> 
> Could you: ‘guix gc -R $(readlink -f ~/.config/guix/latest)’,

$ guix gc -R $(readlink -f ~/.config/guix/latest) |grep guix
/gnu/store/yafigkxkq1fxfq0vwq4sndl1fjhh9aki-guix-packages-source
/gnu/store/q6sg0n5rxcgh95vzh7y623vwk8ksa33f-guix-register-0.14.0-10.486de73
/gnu/store/0drxkvvxm76vz0hb5mdpvdl071ha3if3-guix-system-source
/gnu/store/5jiyj90d2wk8jcz34n8zh59gnxdkj8v6-guix-f02d254ac

$ grep -l 5jiyj90d2wk8jcz34n8zh59gnxdkj8v6-guix-f02d254ac *guix*drv
pxm17xn6p9ndy3sjkzpdjwglfjizl7s1-guix-f02d254ac.drv

$ guix build --log-file /gnu/store/pxm17xn6p9ndy3sjkzpdjwglfjizl7s1-guix-f02d254ac.drv
/var/log/guix/drvs/px/m17xn6p9ndy3sjkzpdjwglfjizl7s1-guix-f02d254ac.drv.bz2

$ bunzip2 -cd /var/log/guix/drvs/px/m17xn6p9ndy3sjkzpdjwglfjizl7s1-guix-f02d254ac.drv.bz2  |od -tx1
0000000

> Besides, to work around the issue, you can always do:
> 
>   mv ~/.config/guix/latest{,.broken}
>   guix pull

Sure, as soon as we've exhausted the debugging possibilities I'll do that.
[Message part 2 (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#31162; Package guix. (Mon, 23 Apr 2018 15:15:02 GMT) Full text and rfc822 format available.

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

From: ludo <at> gnu.org (Ludovic Courtès)
To: Danny Milosavljevic <dannym <at> scratchpost.org>
Cc: 31162 <at> debbugs.gnu.org
Subject: Re: bug#31162: "guix pull" broke itself
Date: Mon, 23 Apr 2018 17:14:52 +0200
Hello Danny,

Danny Milosavljevic <dannym <at> scratchpost.org> skribis:

>> OK, so it sounds like it’s the *previous* ‘guix pull’ that left you with
>> miscompiled or otherwise broken modules.
>> 
>> Could you: ‘guix gc -R $(readlink -f ~/.config/guix/latest)’,
>
> $ guix gc -R $(readlink -f ~/.config/guix/latest) |grep guix
> /gnu/store/yafigkxkq1fxfq0vwq4sndl1fjhh9aki-guix-packages-source
> /gnu/store/q6sg0n5rxcgh95vzh7y623vwk8ksa33f-guix-register-0.14.0-10.486de73
> /gnu/store/0drxkvvxm76vz0hb5mdpvdl071ha3if3-guix-system-source
> /gnu/store/5jiyj90d2wk8jcz34n8zh59gnxdkj8v6-guix-f02d254ac
>
> $ grep -l 5jiyj90d2wk8jcz34n8zh59gnxdkj8v6-guix-f02d254ac *guix*drv
> pxm17xn6p9ndy3sjkzpdjwglfjizl7s1-guix-f02d254ac.drv
>
> $ guix build --log-file /gnu/store/pxm17xn6p9ndy3sjkzpdjwglfjizl7s1-guix-f02d254ac.drv
> /var/log/guix/drvs/px/m17xn6p9ndy3sjkzpdjwglfjizl7s1-guix-f02d254ac.drv.bz2
>
> $ bunzip2 -cd /var/log/guix/drvs/px/m17xn6p9ndy3sjkzpdjwglfjizl7s1-guix-f02d254ac.drv.bz2  |od -tx1
> 0000000

This .drv is just the tip, all it does is symlink things produced by the
previous derivations.

Could you check the log file of the other derivations, like
guix-packages.drv?  Does anyone contain errors or anything interesting?

Thanks,
Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#31162; Package guix. (Tue, 24 Apr 2018 20:59:01 GMT) Full text and rfc822 format available.

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

From: Danny Milosavljevic <dannym <at> scratchpost.org>
To: ludo <at> gnu.org (Ludovic Courtès)
Cc: 31162 <at> debbugs.gnu.org
Subject: Re: bug#31162: "guix pull" broke itself
Date: Tue, 24 Apr 2018 22:57:55 +0200
[Message part 1 (text/plain, inline)]
Hi Ludo,

On Mon, 23 Apr 2018 17:14:52 +0200
ludo <at> gnu.org (Ludovic Courtès) wrote:

> Could you check the log file of the other derivations, like
> guix-packages.drv?  Does anyone contain errors or anything interesting?

How do I do that?
[Message part 2 (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#31162; Package guix. (Tue, 24 Apr 2018 22:21:02 GMT) Full text and rfc822 format available.

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

From: Adonay Felipe Nogueira <adfeno <at> hyperbola.info>
To: bug-guix <at> gnu.org
Subject: Re: bug#31162: "guix pull" broke itself
Date: Tue, 24 Apr 2018 19:20:03 -0300
2018-04-24T22:57:55+0200 Danny Milosavljevic wrote:
> How do I do that?

There are several ways to go around this, but since now we are past the
fact, that is, it already happened, then I propose the following method:

--8<---------------cut here---------------start------------->8---
$ cd "/var/log/guix"
$ find "." -name '*guix-packages.drv*' -ls
--8<---------------cut here---------------end--------------->8---

This will give you a list of the logs related to this "build". However,
notice that you might be interested in only one, which should match the
date the problem happened.

-- 
- Formas de contato: https://libreplanet.org/wiki/User:Adfeno#vCard
- Ativista do /software/ livre (não confundir com gratuito). Avaliador
  da liberdade de /software/ e de /sites/.
- Arquivos que aceito: https://libreplanet.org/wiki/User:Adfeno#Arquivos
- Contribuições à sociedade:
  https://libreplanet.org/wiki/User:Adfeno#Contributions
- Gosta do meu trabalho? Contrate-me ou doe algo para mim!
  https://libreplanet.org/wiki/User:Adfeno#Suporte
- Use comunicações sociais federadas padronizadas, onde o "social"
  permanece independente do fornecedor. #DeleteWhatsApp. Use #XMPP
  (https://libreplanet.org/wiki/XMPP.pt), #DeleteFacebook
  #DeleteInstagram #DeleteTwitter #DeleteYouTube. Use #ActivityPub via
  #Mastodon (https://joinmastodon.org/).
- #DeleteNetflix #CancelNetflix. Evite #DRM:
  https://www.defectivebydesign.org/




Information forwarded to bug-guix <at> gnu.org:
bug#31162; Package guix. (Wed, 25 Apr 2018 12:44:01 GMT) Full text and rfc822 format available.

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

From: ludo <at> gnu.org (Ludovic Courtès)
To: Danny Milosavljevic <dannym <at> scratchpost.org>
Cc: 31162 <at> debbugs.gnu.org
Subject: Re: bug#31162: "guix pull" broke itself
Date: Wed, 25 Apr 2018 14:42:58 +0200
Hi Danny,

Danny Milosavljevic <dannym <at> scratchpost.org> skribis:

> On Mon, 23 Apr 2018 17:14:52 +0200
> ludo <at> gnu.org (Ludovic Courtès) wrote:
>
>> Could you check the log file of the other derivations, like
>> guix-packages.drv?  Does anyone contain errors or anything interesting?
>
> How do I do that?

First you get the .drv file names from the “top-level” derivation:

  guix gc -R …-guix-1234567.drv | grep guix-packages

and then:

  guix build --log-file /gnu/store/…-guix-packages.drv

HTH!

Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#31162; Package guix. (Mon, 21 May 2018 08:58:01 GMT) Full text and rfc822 format available.

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

From: Danny Milosavljevic <dannym <at> scratchpost.org>
To: ludo <at> gnu.org (Ludovic Courtès)
Cc: 31162 <at> debbugs.gnu.org
Subject: Re: bug#31162: "guix pull" broke itself
Date: Mon, 21 May 2018 10:57:03 +0200
[Message part 1 (text/plain, inline)]
Hi Ludo,

I've checked guix-packages now and I see:

$ bzless $(guix build --log-file /gnu/store/q0s172fgb213c4jk7hvgkzsw0i1bq6j0-guix-packages.drv)

...
 31.4% of 407 files^Mcompiling...        31.7% of 407 files^Mcompiling...        31.9% of 407 files^Mcompiling...        32.2% of 407 files^Mcompiling...        32.4% of 407 files^Mcompiling...        32.7% of 407 files^Mcompiling...        32.9% of 407 files^Mcompiling...        33.2% of 407 files^Mcompiling...        33.4% of 407 files^Mcompiling...        33.7% of 407 files^Mcompiling...        33.9% of 407 files^Mcompiling...        34.2% of 407 files^Mcompiling...        34.4% of 407 files^Mcompiling...        34.6% of 407 files^Mcompiling...        34.9% of 407 files^Mcompiling...        35.1% of 407 files^Mcompiling...        35.4% of 407 files^Mcompiling...        35.6% of 407 files^Mcompiling...        35.9% of 407 files^Mcompiling...        36.1% of 407 files^Mcompiling...        36.4% of 407 files^Mcompiling...        36.6% of 407 files^Mcompiling...        36.9% of 407 files^Mcompiling...        37.1% of 407 files^Mcompiling...
        37.3% of 407 files^Mcompiling...        37.6% of 407 files^Mcompiling...        37.8% of 407 files^Mcompiling...        38.1% of 407 files^Mcompiling...        38.3% of 407 filesIn thread:
unexpected syntax
In thread:
no code for module (guix licenses)
^Mcompiling...   38.6% of 407 filesIn thread:
no code for module (guix licenses)
^Mcompiling...   38.8% of 407 filesIn thread:
no code for module (guix licenses)
^Mcompiling...  100.0% of 407 files

(Deleting ~/.cache/guile and ~/.cache/guix didn't help)
[Message part 2 (application/pgp-signature, inline)]

Reply sent to Ricardo Wurmus <rekado <at> fhain.coderdojo.berlin>:
You have taken responsibility. (Mon, 04 Feb 2019 15:35:09 GMT) Full text and rfc822 format available.

Notification sent to Danny Milosavljevic <dannym <at> scratchpost.org>:
bug acknowledged by developer. (Mon, 04 Feb 2019 15:35:10 GMT) Full text and rfc822 format available.

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

From: Ricardo Wurmus <rekado <at> fhain.coderdojo.berlin>
To: Danny Milosavljevic <dannym <at> scratchpost.org>
Cc: Ludovic Courtès <ludo <at> gnu.org>, 31162-done <at> debbugs.gnu.org
Subject: Re: bug#31162: "guix pull" broke itself
Date: Mon, 04 Feb 2019 11:01:59 +0100
Hi,

Danny Milosavljevic <dannym <at> scratchpost.org> writes:

> Hi Ludo,
>
> I've checked guix-packages now and I see:
>
> $ bzless $(guix build --log-file /gnu/store/q0s172fgb213c4jk7hvgkzsw0i1bq6j0-guix-packages.drv)
>
> ...
>  31.4% of 407 files^Mcompiling...        31.7% of 407 files^Mcompiling...        31.9% of 407 files^Mcompiling...        32.2% of 407 files^Mcompiling...        32.4% of 407 files^Mcompiling...        32.7% of 407 files^Mcompiling...        32.9% of 407 files^Mcompiling...        33.2% of 407 files^Mcompiling...        33.4% of 407 files^Mcompiling...        33.7% of 407 files^Mcompiling...        33.9% of 407 files^Mcompiling...        34.2% of 407 files^Mcompiling...        34.4% of 407 files^Mcompiling...        34.6% of 407 files^Mcompiling...        34.9% of 407 files^Mcompiling...        35.1% of 407 files^Mcompiling...        35.4% of 407 files^Mcompiling...        35.6% of 407 files^Mcompiling...        35.9% of 407 files^Mcompiling...        36.1% of 407 files^Mcompiling...        36.4% of 407 files^Mcompiling...        36.6% of 407 files^Mcompiling...        36.9% of 407 files^Mcompiling...        37.1% of 407 files^Mcompiling...
>         37.3% of 407 files^Mcompiling...        37.6% of 407 files^Mcompiling...        37.8% of 407 files^Mcompiling...        38.1% of 407 files^Mcompiling...        38.3% of 407 filesIn thread:
> unexpected syntax
> In thread:
> no code for module (guix licenses)
> ^Mcompiling...   38.6% of 407 filesIn thread:
> no code for module (guix licenses)
> ^Mcompiling...   38.8% of 407 filesIn thread:
> no code for module (guix licenses)
> ^Mcompiling...  100.0% of 407 files
>
> (Deleting ~/.cache/guile and ~/.cache/guix didn't help)

I believe that this can no longer happen since the new “guix pull”
(aside from the infamous miscompilation bug #27476).

I’m closing this, but feel free to reopen if this can be reproduced with
the new “guix pull” implementation.

~~ Ricardo





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

This bug report was last modified 6 years and 113 days ago.

Previous Next


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