GNU bug report logs -
#44825
Error in reporting guix deploy error
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 44825 in the body.
You can then email your comments to 44825 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guix <at> gnu.org
:
bug#44825
; Package
guix
.
(Mon, 23 Nov 2020 18:11:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Christopher Lemmer Webber <cwebber <at> dustycloud.org>
:
New bug report received and forwarded. Copy sent to
bug-guix <at> gnu.org
.
(Mon, 23 Nov 2020 18:11:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Seems strange... the message I get:
guix deploy: error: failed to deploy tulsi: ~A: ~S
Errors upon errors! Formatting this time, apparently. :)
Looking at the relevant code:
(define (deploy-machine* store machine)
"Deploy MACHINE, taking care of error handling."
(info (G_ "deploying to ~a...~%")
(machine-display-name machine))
(guard (c ((message-condition? c)
(report-error (G_ "failed to deploy ~a: ~a~%")
(machine-display-name machine)
(condition-message c)))
((deploy-error? c)
(when (deploy-error-should-roll-back c)
(info (G_ "rolling back ~a...~%")
(machine-display-name machine))
(run-with-store store (roll-back-machine machine)))
(apply throw (deploy-error-captured-args c))))
(run-with-store store (deploy-machine machine))
(info (G_ "successfully deployed ~a~%")
(machine-display-name machine))))
I looked at other examples of report-error, they seemed similar.. can't
see why this one wouldn't be formatting correctly. Any idea?
Information forwarded
to
bug-guix <at> gnu.org
:
bug#44825
; Package
guix
.
(Mon, 23 Nov 2020 18:47:02 GMT)
Full text and
rfc822 format available.
Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):
By the way, I did pinpoint out what caused the failure in *deploying*,
but not what caused the error message to not format correctly.
The mistake was:
(modify-services %desktop-services
(guix-service-type config =>
(guix-configuration
(inherit config)
(authorized-keys
- (append (list (local-file "twig-guix-signing-key.pub"))
+ (append (list (local-file "../keys/twig-guix-signing-key.pub"))
%default-authorized-guix-keys)))))
So basically I referenced a file that doesn't exist with local-file.
But why would that cause the string formatting to fail? Dunno...
Christopher Lemmer Webber writes:
> Seems strange... the message I get:
>
> guix deploy: error: failed to deploy tulsi: ~A: ~S
>
> Errors upon errors! Formatting this time, apparently. :)
>
> Looking at the relevant code:
>
> (define (deploy-machine* store machine)
> "Deploy MACHINE, taking care of error handling."
> (info (G_ "deploying to ~a...~%")
> (machine-display-name machine))
>
> (guard (c ((message-condition? c)
> (report-error (G_ "failed to deploy ~a: ~a~%")
> (machine-display-name machine)
> (condition-message c)))
> ((deploy-error? c)
> (when (deploy-error-should-roll-back c)
> (info (G_ "rolling back ~a...~%")
> (machine-display-name machine))
> (run-with-store store (roll-back-machine machine)))
> (apply throw (deploy-error-captured-args c))))
> (run-with-store store (deploy-machine machine))
>
> (info (G_ "successfully deployed ~a~%")
> (machine-display-name machine))))
>
> I looked at other examples of report-error, they seemed similar.. can't
> see why this one wouldn't be formatting correctly. Any idea?
Information forwarded
to
bug-guix <at> gnu.org
:
bug#44825
; Package
guix
.
(Mon, 23 Nov 2020 18:47:02 GMT)
Full text and
rfc822 format available.
Reply sent
to
Ludovic Courtès <ludo <at> gnu.org>
:
You have taken responsibility.
(Thu, 26 Nov 2020 22:42:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Christopher Lemmer Webber <cwebber <at> dustycloud.org>
:
bug acknowledged by developer.
(Thu, 26 Nov 2020 22:42:02 GMT)
Full text and
rfc822 format available.
Message #16 received at 44825-done <at> debbugs.gnu.org (full text, mbox):
Hi Chris,
Christopher Lemmer Webber <cwebber <at> dustycloud.org> skribis:
> Seems strange... the message I get:
>
> guix deploy: error: failed to deploy tulsi: ~A: ~S
>
> Errors upon errors! Formatting this time, apparently. :)
>
> Looking at the relevant code:
>
> (define (deploy-machine* store machine)
> "Deploy MACHINE, taking care of error handling."
> (info (G_ "deploying to ~a...~%")
> (machine-display-name machine))
>
> (guard (c ((message-condition? c)
> (report-error (G_ "failed to deploy ~a: ~a~%")
> (machine-display-name machine)
> (condition-message c)))
[...]
I believe this is fixed by 5842239a66683b2f5e36e95da8225e2ab7f7dac3.
Thanks!
Ludo’.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Fri, 25 Dec 2020 12:24:06 GMT)
Full text and
rfc822 format available.
This bug report was last modified 3 years and 143 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.