all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Sergio Pastor Pérez" <sergio.pastorperez@outlook.es>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: guix-devel@gnu.org
Subject: Re: Should we document how to detect if build machines are reachable before trying to offload?
Date: Thu, 11 Jul 2024 22:23:42 +0200	[thread overview]
Message-ID: <PAXP251MB0348D24F884757DC4A004500F3A52@PAXP251MB0348.EURP251.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <87plrk2rad.fsf@gnu.org>

Hi Ludo!

> Do you remember exactly under what circumstances it hangs?  I think
> ‘guix offload’ should handle that situation gracefully and we should fix
> it if it does not.

Yeah. It happens when I have a build machine configured like so and I
disconnect it from the Ethernet connection:
--8<---------------cut here---------------start------------->8---
(build-machines
 (list
  #~(build-machine
     (name "remote")
     (systems (list "x86_64-linux" "i686-linux"))
     (host-key %remote-host-key
     (private-key %local-key))))
--8<---------------cut here---------------end--------------->8---

With this configuration `guix offload test` will timeout after 30
seconds, as you describe. But this other command will hang indefinitely:
--8<---------------cut here---------------start------------->8---
$ timeout 1m guix build imhex -M 0
The following derivation will be built:
  /gnu/store/9absqzdd4ak3pms2jw6rkhlmjvm8zzyv-imhex-1.35.1.drv
process 12199 acquired build slot '/var/guix/offload/bordercollie:22/0'
guix offload: error: failed to connect to 'bordercollie': No route to host
waiting for locks or build slots...
process 12199 acquired build slot '/var/guix/offload/bordercollie:22/0'
guix offload: error: failed to connect to 'bordercollie': No route to host
process 12199 acquired build slot '/var/guix/offload/bordercollie:22/0'
guix offload: error: failed to connect to 'bordercollie': No route to host
process 12199 acquired build slot '/var/guix/offload/bordercollie:22/0'
guix offload: error: failed to connect to 'bordercollie': No route to host
process 12199 acquired build slot '/var/guix/offload/bordercollie:22/0'
guix offload: error: failed to connect to 'bordercollie': No route to host
process 12199 acquired build slot '/var/guix/offload/bordercollie:22/0'
guix offload: error: failed to connect to 'bordercollie': No route to host
process 12199 acquired build slot '/var/guix/offload/bordercollie:22/0'
guix offload: error: failed to connect to 'bordercollie': No route to host
process 12199 acquired build slot '/var/guix/offload/bordercollie:22/0'
guix offload: error: failed to connect to 'bordercollie': No route to host
process 12199 acquired build slot '/var/guix/offload/bordercollie:22/0'
guix offload: error: failed to connect to 'bordercollie': No route to host
process 12199 acquired build slot '/var/guix/offload/bordercollie:22/0'
guix offload: error: failed to connect to 'bordercollie': No route to host
process 12199 acquired build slot '/var/guix/offload/bordercollie:22/0'
guix offload: error: failed to connect to 'bordercollie': No route to host
process 12199 acquired build slot '/var/guix/offload/bordercollie:22/0'
--8<---------------cut here---------------end--------------->8---

`imhex` is just a package that is not yet merged upstream so no
substitutes are available and the offload happens.

> Right now, it sets an initial connection timeout of 30s, which is quite
> long but turned out to be necessary (see ‘open-ssh-session’ in (guix
> scripts offload)).

If that long timeout is required, I think the snippet I propose to
document will be useful for other users.


Have a good night!
Sergio.


  reply	other threads:[~2024-07-11 20:24 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-04 15:45 Should we document how to detect if build machines are reachable before trying to offload? Sergio Pastor Pérez
2024-07-11  9:48 ` Ludovic Courtès
2024-07-11 20:23   ` Sergio Pastor Pérez [this message]
2024-07-21 12:56     ` Ludovic Courtès
2024-07-21 15:59       ` Sergio Pastor Pérez
2024-07-21 16:26       ` Vincent Legoll
2024-07-21 17:25         ` Tomas Volf
2024-07-22 14:59       ` Simon Tournier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=PAXP251MB0348D24F884757DC4A004500F3A52@PAXP251MB0348.EURP251.PROD.OUTLOOK.COM \
    --to=sergio.pastorperez@outlook.es \
    --cc=guix-devel@gnu.org \
    --cc=ludo@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.