GNU bug report logs - #34136
guix pull -l fails on fresh user profiles

Previous Next

Package: guix;

Reported by: Pierre Neidhardt <mail <at> ambrevar.xyz>

Date: Sat, 19 Jan 2019 17:56:02 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 34136 in the body.
You can then email your comments to 34136 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#34136; Package guix. (Sat, 19 Jan 2019 17:56:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Pierre Neidhardt <mail <at> ambrevar.xyz>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Sat, 19 Jan 2019 17:56:02 GMT) Full text and rfc822 format available.

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

From: Pierre Neidhardt <mail <at> ambrevar.xyz>
To: bug-guix <at> gnu.org
Subject: guix pull -l fails on fresh user profiles
Date: Sat, 19 Jan 2019 18:55:05 +0100
[Message part 1 (text/plain, inline)]
Switch to a new user, or simply log in as 'root' if you've never "guix
pull"ed with it, then

--8<---------------cut here---------------start------------->8---
# guix pull -l
Backtrace:
           8 (apply-smob/1 #<catch-closure 11508e0>)
In ice-9/boot-9.scm:
    705:2  7 (call-with-prompt _ _ #<procedure default-prompt-handle…>)
In ice-9/eval.scm:
    619:8  6 (_ #(#(#<directory (guile-user) 11d2140>)))
In guix/ui.scm:
  1644:12  5 (run-guix-command _ . _)
In ice-9/boot-9.scm:
    829:9  4 (catch srfi-34 #<procedure 2e24be0 at guix/ui.scm:622:…> …)
    829:9  3 (catch system-error #<procedure 2e24c80 at guix/script…> …)
    829:9  2 (catch git-error #<procedure 2e24b40 at guix/scripts/p…> …)
    829:9  1 (catch system-error #<procedure 2e28c40 at guix/script…> …)
In unknown file:
           0 (raise #<condition &profile-not-found-error [profile: "…>)

ERROR: In procedure raise:
Wrong type (expecting exact integer): #<condition &profile-not-found-error [profile: "/var/guix/profiles/per-user/root/current-guix"] 2e1e8c0>
--8<---------------cut here---------------end--------------->8---

I think we should make `guix pull -l' return a value that can be used
meaningfully in deployment scripts.  For instance, a non-zero
exit code could mean this is a fresh user profile.

Thoughts?

-- 
Pierre Neidhardt
https://ambrevar.xyz/
[signature.asc (application/pgp-signature, inline)]

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

Notification sent to Pierre Neidhardt <mail <at> ambrevar.xyz>:
bug acknowledged by developer. (Sun, 20 Jan 2019 22:57:02 GMT) Full text and rfc822 format available.

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

From: Ludovic Courtès <ludo <at> gnu.org>
To: Pierre Neidhardt <mail <at> ambrevar.xyz>
Cc: 34136-done <at> debbugs.gnu.org
Subject: Re: bug#34136: guix pull -l fails on fresh user profiles
Date: Sun, 20 Jan 2019 23:56:24 +0100
Pierre Neidhardt <mail <at> ambrevar.xyz> skribis:

> Switch to a new user, or simply log in as 'root' if you've never "guix
> pull"ed with it, then
>
> # guix pull -l
> Backtrace:
>            8 (apply-smob/1 #<catch-closure 11508e0>)
> In ice-9/boot-9.scm:
>     705:2  7 (call-with-prompt _ _ #<procedure default-prompt-handle…>)
> In ice-9/eval.scm:
>     619:8  6 (_ #(#(#<directory (guile-user) 11d2140>)))
> In guix/ui.scm:
>   1644:12  5 (run-guix-command _ . _)
> In ice-9/boot-9.scm:
>     829:9  4 (catch srfi-34 #<procedure 2e24be0 at guix/ui.scm:622:…> …)
>     829:9  3 (catch system-error #<procedure 2e24c80 at guix/script…> …)
>     829:9  2 (catch git-error #<procedure 2e24b40 at guix/scripts/p…> …)
>     829:9  1 (catch system-error #<procedure 2e28c40 at guix/script…> …)
> In unknown file:
>            0 (raise #<condition &profile-not-found-error [profile: "…>)
>
> ERROR: In procedure raise:
> Wrong type (expecting exact integer): #<condition &profile-not-found-error [profile: "/var/guix/profiles/per-user/root/current-guix"] 2e1e8c0>

Fixed in c49b45c917eff17122aea5f7a57ae4cef02f1003.  A missing import and
the wrong ‘raise’ was being used.

> I think we should make `guix pull -l' return a value that can be used
> meaningfully in deployment scripts.  For instance, a non-zero
> exit code could mean this is a fresh user profile.

Yep, that’s what was intended and what happens now.  :-)

Thanks,
Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#34136; Package guix. (Mon, 21 Jan 2019 07:43:01 GMT) Full text and rfc822 format available.

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

From: Pierre Neidhardt <mail <at> ambrevar.xyz>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 34136-done <at> debbugs.gnu.org
Subject: Re: bug#34136: guix pull -l fails on fresh user profiles
Date: Mon, 21 Jan 2019 08:42:42 +0100
[Message part 1 (text/plain, inline)]
Great, thanks!

-- 
Pierre Neidhardt
https://ambrevar.xyz/
[signature.asc (application/pgp-signature, inline)]

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

This bug report was last modified 5 years and 68 days ago.

Previous Next


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