unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: Les Harris <les@lesharris.com>
Cc: guix-devel@gnu.org
Subject: Re: Offloading acquired build slot loop
Date: Wed, 22 Apr 2015 23:18:55 +0200	[thread overview]
Message-ID: <87mw1zyi80.fsf@gnu.org> (raw)
In-Reply-To: <mh6rhb$nb1$1@ger.gmane.org> (Les Harris's message of "Tue, 21 Apr 2015 17:55:04 -0700")

Les Harris <les@lesharris.com> skribis:

> In addition I believe I have done all the documented steps like
> generating and authorizing the keys for both the local machine and build
> server and have added the build server to the local machine's
> machines.scm.

Sounds good.  This build server is the only machine listed in
machines.scm, and it really points to a different machine, right?
(Sorry for the dumb L1-support-style question, just to be sure.  ;-))

> When Guix recognizes a build to be performed it appears to start the
> offload. But that process then seems to end up in an endless loop where
> it keeps saying it has acquired a build slot:
>
> ,----
> | process 20852 acquired build slot
> | '/usr/local/var/guix/offload/build.server.com/0'
> | waiting for locks or build slots...
> | process 20852 acquired build slot
> | '/usr/local/var/guix/offload/build.server.com/0'
> | process 20852 acquired build slot
> | '/usr/local/var/guix/offload/build.server.com/0'
> | process 20852 acquired build slot
> | '/usr/local/var/guix/offload/build.server.com/0'
> | process 20852 acquired build slot
> | '/usr/local/var/guix/offload/build.server.com/0'
> `----

The offload hook can reply in 3 different ways when asked for a build
machine: reject (for instance when building for MIPS but machines.scm
doesn’t list any MIPS machine), accept, or postpone (for instance when
there’s one of more matching machine, but it’s currently unreachable or
overloaded.)

The loop here seems to indicate that you’re in the “postpone” situation:
build.server.com matches, but maybe it does not respond when the offload
hook runs “lsh build.server.com cat /proc/loadavg” to estimate its
current load (see ‘machine-load’ in offload.scm.)

Could you double-check whether this command succeeds as root and
non-interactively (no passphrase prompt):

  lsh -l USER build.server.com cat /proc/loadavg

?

TIA!

Ludo’.

  reply	other threads:[~2015-04-22 21:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-22  0:55 Offloading acquired build slot loop Les Harris
2015-04-22 21:18 ` Ludovic Courtès [this message]
2015-05-03  8:00   ` Les Harris
2015-05-06 20:38     ` Ludovic Courtès

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

  List information: https://guix.gnu.org/

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

  git send-email \
    --in-reply-to=87mw1zyi80.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=guix-devel@gnu.org \
    --cc=les@lesharris.com \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).