all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* guix offload
@ 2023-12-20 11:02 Aleksandr Vityazev
  2023-12-20 12:29 ` Reza Housseini
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Aleksandr Vityazev @ 2023-12-20 11:02 UTC (permalink / raw)
  To: help-guix

[-- Attachment #1: Type: text/plain, Size: 465 bytes --]

Hello.

I have a configured build machine. From time to time it is not available
and guix build gets stuck in an endless loop of:

guix offload: error: failed to connect to : No route to host
process 13902 acquired build slot 
guix offload: error: failed to connect to : No route to host
process 13902 acquired build slot 

Is it possible to make the build continue locally after several
unsuccessful attempts?

-- 
Best regards,
Aleksandr Vityazev

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: guix offload
  2023-12-20 11:02 guix offload Aleksandr Vityazev
@ 2023-12-20 12:29 ` Reza Housseini
  2023-12-20 13:08   ` Aleksandr Vityazev
  2023-12-20 15:19 ` Saku Laesvuori
  2024-02-15 16:23 ` Simon Tournier
  2 siblings, 1 reply; 6+ messages in thread
From: Reza Housseini @ 2023-12-20 12:29 UTC (permalink / raw)
  To: help-guix

On 12/20/23 12:02, Aleksandr Vityazev wrote:
> Hello.
> 
> I have a configured build machine. From time to time it is not available
> and guix build gets stuck in an endless loop of:
> 
> guix offload: error: failed to connect to : No route to host
> process 13902 acquired build slot
> guix offload: error: failed to connect to : No route to host
> process 13902 acquired build slot
> 
> Is it possible to make the build continue locally after several
> unsuccessful attempts?

I stumbled over the same problem and there is even an issue for this [1] 
(which looks stale). I thought maybe adding localhost as a build 
machine, but did not try it yet.

Best,
Reza

[1] https://issues.guix.gnu.org/issue/24496


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: guix offload
  2023-12-20 12:29 ` Reza Housseini
@ 2023-12-20 13:08   ` Aleksandr Vityazev
  0 siblings, 0 replies; 6+ messages in thread
From: Aleksandr Vityazev @ 2023-12-20 13:08 UTC (permalink / raw)
  To: Reza Housseini; +Cc: help-guix

On 2023-12-20 13:29, Reza Housseini wrote:

> On 12/20/23 12:02, Aleksandr Vityazev wrote:
>> Hello.
>> I have a configured build machine. From time to time it is not
>> available
>> and guix build gets stuck in an endless loop of:
>> guix offload: error: failed to connect to : No route to host
>> process 13902 acquired build slot
>> guix offload: error: failed to connect to : No route to host
>> process 13902 acquired build slot
>> Is it possible to make the build continue locally after several
>> unsuccessful attempts?
>
> I stumbled over the same problem and there is even an issue for this
> [1] (which looks stale). I thought maybe adding localhost as a build
> machine, but did not try it yet.

I tried the option of adding a local machine to the list, about a year
ago, the build process stuck with
/gnu/store/...compute-guix-derivation.drv

>
> Best,
> Reza
>
> [1] https://issues.guix.gnu.org/issue/24496

Thanks, didn't see that issue

-- 
Best regards,
Aleksandr Vityazev


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: guix offload
  2023-12-20 11:02 guix offload Aleksandr Vityazev
  2023-12-20 12:29 ` Reza Housseini
@ 2023-12-20 15:19 ` Saku Laesvuori
  2023-12-20 16:29   ` Aleksandr Vityazev
  2024-02-15 16:23 ` Simon Tournier
  2 siblings, 1 reply; 6+ messages in thread
From: Saku Laesvuori @ 2023-12-20 15:19 UTC (permalink / raw)
  To: Aleksandr Vityazev; +Cc: help-guix

[-- Attachment #1: Type: text/plain, Size: 1369 bytes --]

> Hello.
> 
> I have a configured build machine. From time to time it is not available
> and guix build gets stuck in an endless loop of:
> 
> guix offload: error: failed to connect to : No route to host
> process 13902 acquired build slot 
> guix offload: error: failed to connect to : No route to host
> process 13902 acquired build slot 
> 
> Is it possible to make the build continue locally after several
> unsuccessful attempts?

I don't think that is currently possible. You can, however, filter your
build machines with a snippet like this in the operating system
declaration[1]. This filters away hosts that are not resolvable, but you
could adapt it to use some other predicate if needed.

```
(build-machines
 (list #~(let* ((resolvable? (lambda (machine)
                               (false-if-exception
                                 (gethost (build-machine-name machine))))))
           (filter resolvable?
                   (list (build-machine
                     (name "example.com")
                     (systems '("x86_64-linux"))
                     (host-key "xxxx")
                     (user "offload")))))))
```

If you don't use guix system you can implement the filter logic in
/etc/guix/machines.scm.

[1]: https://guix.gnu.org/manual/devel/en/guix.html#guix_002dconfiguration_002dbuild_002dmachines

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: guix offload
  2023-12-20 15:19 ` Saku Laesvuori
@ 2023-12-20 16:29   ` Aleksandr Vityazev
  0 siblings, 0 replies; 6+ messages in thread
From: Aleksandr Vityazev @ 2023-12-20 16:29 UTC (permalink / raw)
  To: Saku Laesvuori; +Cc: help-guix

On 2023-12-20 17:19, Saku Laesvuori wrote:

>> Hello.
>> 
>> I have a configured build machine. From time to time it is not available
>> and guix build gets stuck in an endless loop of:
>> 
>> guix offload: error: failed to connect to : No route to host
>> process 13902 acquired build slot 
>> guix offload: error: failed to connect to : No route to host
>> process 13902 acquired build slot 
>> 
>> Is it possible to make the build continue locally after several
>> unsuccessful attempts?
>
> I don't think that is currently possible. You can, however, filter your
> build machines with a snippet like this in the operating system
> declaration[1]. This filters away hosts that are not resolvable, but you
> could adapt it to use some other predicate if needed.
>
> ```
> (build-machines
>  (list #~(let* ((resolvable? (lambda (machine)
>                                (false-if-exception
>                                  (gethost (build-machine-name machine))))))
>            (filter resolvable?
>                    (list (build-machine
>                      (name "example.com")
>                      (systems '("x86_64-linux"))
>                      (host-key "xxxx")
>                      (user "offload")))))))
> ```
Thanks, it works well.

-- 
Best regards,
Aleksandr Vityazev


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: guix offload
  2023-12-20 11:02 guix offload Aleksandr Vityazev
  2023-12-20 12:29 ` Reza Housseini
  2023-12-20 15:19 ` Saku Laesvuori
@ 2024-02-15 16:23 ` Simon Tournier
  2 siblings, 0 replies; 6+ messages in thread
From: Simon Tournier @ 2024-02-15 16:23 UTC (permalink / raw)
  To: Aleksandr Vityazev, help-guix

Hi,

Sorry for the late reply.

On mer., 20 déc. 2023 at 14:02, Aleksandr Vityazev <avityazew@gmail.com> wrote:

> Is it possible to make the build continue locally after several
> unsuccessful attempts?

That’s a feature I also would like. :-)  Some pointers for the
interested reader:

    bug#24496: offloading should fall back to local build after n tries
    ng0 <ngillmann@runbox.com>
    Wed, 21 Sep 2016 09:39:48 +0000
    id:8760ppr3q3.fsf@we.make.ritual.n0.is
    https://issues.guix.gnu.org/24496
    https://issues.guix.gnu.org/msgid/8760ppr3q3.fsf@we.make.ritual.n0.is
    https://yhetil.org/guix/8760ppr3q3.fsf@we.make.ritual.n0.is

    offload configuration dependant on context
    zimoun <zimon.toutoune@gmail.com>
    Thu, 16 Dec 2021 14:24:57 +0100
    id:86zgp0hec6.fsf@gmail.com
    https://lists.gnu.org/archive/html/help-guix/2021-12
    https://yhetil.org/guix/86zgp0hec6.fsf@gmail.com

Cheers,
simon


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-02-15 17:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-20 11:02 guix offload Aleksandr Vityazev
2023-12-20 12:29 ` Reza Housseini
2023-12-20 13:08   ` Aleksandr Vityazev
2023-12-20 15:19 ` Saku Laesvuori
2023-12-20 16:29   ` Aleksandr Vityazev
2024-02-15 16:23 ` Simon Tournier

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.