unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#27990: Offloading repeatedly prints a message of the form "process ... acquired build slot '/var/guix/offload/.../0"
@ 2017-08-06 19:07 Christopher Baines
  2017-08-31 17:32 ` bug#27990: Offloading is now working! Christopher Baines
  0 siblings, 1 reply; 3+ messages in thread
From: Christopher Baines @ 2017-08-06 19:07 UTC (permalink / raw)
  To: 27990

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

Hey,

I gave setting up offloading another go, I'm testing with 3 machines,
two running GuixSD, and one Debian. I've tried setting up offloading
from both GuixSD machines to the Debian machine, and from one GuixSD
machine to the other.

Running `guix offload test` works, and reports success. However, when
it actually comes to building something, guix repeatedly prints a
message like:

  "process ... acquired build slot '/var/guix/offload/.../0"

I've left it for a while, and nothing happened.

My usual approach at sticking more logging in to the code doesn't
really work, as it appears that it's not the offload script from the
Guix git repository that I have locally that is being used.

I'm happy to do some more investigation, but I haven't worked out how
to yet.

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 963 bytes --]

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

* bug#27990: Offloading is now working!
  2017-08-06 19:07 bug#27990: Offloading repeatedly prints a message of the form "process ... acquired build slot '/var/guix/offload/.../0" Christopher Baines
@ 2017-08-31 17:32 ` Christopher Baines
  2017-09-01 23:01   ` Ludovic Courtès
  0 siblings, 1 reply; 3+ messages in thread
From: Christopher Baines @ 2017-08-31 17:32 UTC (permalink / raw)
  To: 27990-done

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

I tried again, and after one small change, things are now working!

Firstly, I was getting messages like:

process 1011 acquired build slot '/var/guix/offload/capella.local/0'
;;; [2017/08/31 18:16:40.455763, 0] private-key-from-file: [GSSH ERROR]
The file does not exist or permission denied: "/root/.ssh/id_rsa"


This was coming up over and over again, maybe I was hitting the same
problem, but this GSSH ERROR is something that I haven't seen before.

I had a look at the Guix source, and noticed that the private key to
use is a function of the current user. But as this is the offloader
script, I'm pretty sure that relates to the user of the guix-daemon,
which in my case is root. In my case, I want to offload as my user, so
I set private-key explicitly in /etc/guix/machines.scm, and now it just
works!

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 963 bytes --]

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

* bug#27990: Offloading is now working!
  2017-08-31 17:32 ` bug#27990: Offloading is now working! Christopher Baines
@ 2017-09-01 23:01   ` Ludovic Courtès
  0 siblings, 0 replies; 3+ messages in thread
From: Ludovic Courtès @ 2017-09-01 23:01 UTC (permalink / raw)
  To: 27990

Christopher Baines <mail@cbaines.net> skribis:

> I had a look at the Guix source, and noticed that the private key to
> use is a function of the current user. But as this is the offloader
> script, I'm pretty sure that relates to the user of the guix-daemon,
> which in my case is root. In my case, I want to offload as my user, so
> I set private-key explicitly in /etc/guix/machines.scm, and now it just
> works!

Good news!  This private-key thing is a common gotcha.

Ludo’.

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

end of thread, other threads:[~2017-09-01 23:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-06 19:07 bug#27990: Offloading repeatedly prints a message of the form "process ... acquired build slot '/var/guix/offload/.../0" Christopher Baines
2017-08-31 17:32 ` bug#27990: Offloading is now working! Christopher Baines
2017-09-01 23:01   ` Ludovic Courtès

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).