GNU bug report logs - #28057
assert-node-has-guix should fail gracefully

Previous Next

Package: guix;

Reported by: Ricardo Wurmus <rekado <at> elephly.net>

Date: Fri, 11 Aug 2017 21:02:02 UTC

Owned by: Ricardo Wurmus <rekado <at> elephly.net>

Severity: normal

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

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 28057 in the body.
You can then email your comments to 28057 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#28057; Package guix. (Fri, 11 Aug 2017 21:02:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ricardo Wurmus <rekado <at> elephly.net>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Fri, 11 Aug 2017 21:02:02 GMT) Full text and rfc822 format available.

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

From: Ricardo Wurmus <rekado <at> elephly.net>
To: bug-guix <at> gnu.org
Subject: assert-node-has-guix should fail gracefully
Date: Fri, 11 Aug 2017 22:59:10 +0200
I have a couple of servers where offloading doesn’t quite work for as
yet unknown reasons.  “guix offload test” crashes instead of telling me
what’s wrong:

--8<---------------cut here---------------start------------->8---
root <at> berlin ~/maintenance# guix offload test
guix offload: testing 3 build machines defined in '/etc/guix/machines.scm'...
guix offload: '192.168.0.2' is running guile (GNU Guile) 2.2.2
guix offload: '192.168.0.3' is running guile (GNU Guile) 2.2.2
guix offload: '192.168.0.12' is running guile (GNU Guile) 2.2.2
guix offload: Guix is usable on '192.168.0.2' (test returned "/gnu/store/883yjkl46dxw9mzykykmbs0yzwyxm17z-test")
guix offload: Guix is usable on '192.168.0.3' (test returned "/gnu/store/883yjkl46dxw9mzykykmbs0yzwyxm17z-test")
Backtrace:
           7 (primitive-load "/gnu/store/gkv8zl774h2qpa89mrf6d74fry3…")
In guix/ui.scm:
  1352:12  6 (run-guix-command _ . _)
In ice-9/boot-9.scm:
    837:9  5 (catch _ _ #<procedure 7f6793a209a8 at guix/ui.scm:450…> …)
    837:9  4 (catch _ _ #<procedure 7f6793a209c0 at guix/ui.scm:538…> …)
In guix/scripts/offload.scm:
    611:6  3 (check-machine-availability _ _)
In srfi/srfi-1.scm:
   656:11  2 (for-each #<procedure assert-node-has-guix (node name)> …)
In guix/scripts/offload.scm:
    543:2  1 (assert-node-has-guix _ "192.168.0.12")
In ssh/dist/node.scm:
    397:8  0 (node-eval #<node hydra <at> 192.168.0.12:22/37146 e01600> _)

ssh/dist/node.scm:397:8: In procedure node-eval:
ssh/dist/node.scm:397:8: Throw to key `node-repl-error' with args `("Evaluation failed" "scheme@(guile-user)> While compiling expression:\nERROR: no code for module (guix)" ())'.
--8<---------------cut here---------------end--------------->8---

This error should be caught and the message be printed without the stack
trace.

--
Ricardo

GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
https://elephly.net





Owner recorded as Ricardo Wurmus <rekado <at> elephly.net>. Request was from Ricardo Wurmus <rekado <at> elephly.net> to control <at> debbugs.gnu.org. (Mon, 09 Oct 2017 21:42:02 GMT) Full text and rfc822 format available.

Reply sent to ludo <at> gnu.org (Ludovic Courtès):
You have taken responsibility. (Sat, 13 Jan 2018 14:11:02 GMT) Full text and rfc822 format available.

Notification sent to Ricardo Wurmus <rekado <at> elephly.net>:
bug acknowledged by developer. (Sat, 13 Jan 2018 14:11:02 GMT) Full text and rfc822 format available.

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

From: ludo <at> gnu.org (Ludovic Courtès)
To: Ricardo Wurmus <rekado <at> elephly.net>
Cc: 28057-done <at> debbugs.gnu.org
Subject: Re: bug#28057: assert-node-has-guix should fail gracefully
Date: Sat, 13 Jan 2018 15:10:23 +0100
Ricardo Wurmus <rekado <at> elephly.net> skribis:

> I have a couple of servers where offloading doesn’t quite work for as
> yet unknown reasons.  “guix offload test” crashes instead of telling me
> what’s wrong:
>
> root <at> berlin ~/maintenance# guix offload test
> guix offload: testing 3 build machines defined in '/etc/guix/machines.scm'...
> guix offload: '192.168.0.2' is running guile (GNU Guile) 2.2.2
> guix offload: '192.168.0.3' is running guile (GNU Guile) 2.2.2
> guix offload: '192.168.0.12' is running guile (GNU Guile) 2.2.2
> guix offload: Guix is usable on '192.168.0.2' (test returned "/gnu/store/883yjkl46dxw9mzykykmbs0yzwyxm17z-test")
> guix offload: Guix is usable on '192.168.0.3' (test returned "/gnu/store/883yjkl46dxw9mzykykmbs0yzwyxm17z-test")
> Backtrace:
>            7 (primitive-load "/gnu/store/gkv8zl774h2qpa89mrf6d74fry3…")
> In guix/ui.scm:
>   1352:12  6 (run-guix-command _ . _)
> In ice-9/boot-9.scm:
>     837:9  5 (catch _ _ #<procedure 7f6793a209a8 at guix/ui.scm:450…> …)
>     837:9  4 (catch _ _ #<procedure 7f6793a209c0 at guix/ui.scm:538…> …)
> In guix/scripts/offload.scm:
>     611:6  3 (check-machine-availability _ _)
> In srfi/srfi-1.scm:
>    656:11  2 (for-each #<procedure assert-node-has-guix (node name)> …)
> In guix/scripts/offload.scm:
>     543:2  1 (assert-node-has-guix _ "192.168.0.12")
> In ssh/dist/node.scm:
>     397:8  0 (node-eval #<node hydra <at> 192.168.0.12:22/37146 e01600> _)
>
> ssh/dist/node.scm:397:8: In procedure node-eval:
> ssh/dist/node.scm:397:8: Throw to key `node-repl-error' with args `("Evaluation failed" "scheme@(guile-user)> While compiling expression:\nERROR: no code for module (guix)" ())'.
>
> This error should be caught and the message be printed without the stack
> trace.

Fixed in 5a5e34e3588e863de0028523ada61041e78cf8c6, thanks.

Ludo’.




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

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

Previous Next


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