Offloading repeatedly prints a message of the form "process ... acquired build slot '/var/guix/offload/.../0"

  • Done
  • quality assurance status badge
Details
2 participants
  • Ludovic Courtès
  • Christopher Baines
Owner
unassigned
Submitted by
Christopher Baines
Severity
normal

Debbugs page

Christopher Baines wrote 8 years ago
(address . bug-guix@gnu.org)
20170806200703.792cc4b4@cbaines.net
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.
-----BEGIN PGP SIGNATURE-----

iQKTBAEBCgB9FiEEPonu50WOcg2XVOCyXiijOwuE9XcFAlmHaNdfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF
ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcACgkQXiijOwuE
9XfQhg/9G3IWznkVtZEh9VOOssOWCy/CalUWQZ8Vh9rENG+qGbjsTihj34A3TLxy
2wKMxPxNu26n+L0Gzpv/I2iyyxFEtMD7Rw8I3hLDm+BVWISiHTHbQPyigTLhyXKH
QwiYwe5RtC7C95iqfuDYwyGl/1peV3b37vY0xiRkPtxTrhX1/ueca686IZ+/CrKA
W0lB0CPcIvUfbIopltcIaHX2/oeeBxZBP6rftku4qjegxLZ2I7kcsrPAoaGZp1w8
ZyijrmqL7xdjbSaaMwSdR2OiSwRQ9Kl/UM6K9XgEqwAG7i7BxCrKnkr4cvWg6IZg
1XsgFQ/eK8RB37ckSaPfyjeeL9pgo/diyBwIo46vHK6MGO/Zz9z/9L87JqZvmYXG
ELqieI0aCC+lZFgqdWQ/M5jn+YG3dzSThy+CP9E7uMafx0muRJeGHV4KyHVk1Gmv
ou3aK6+88hpSby6XmsUFB5lBjnAieYJAwSz7RnheWZ3mvZry3T2mrGADwgpO8iDJ
9Z1yeBIuCS2H/Je4h2M/1gpdIzEafTYt9uNIio35/hj6cJSda2QydoQpN5J9ZZ0/
vJaWTqg/s7GDcVFn2pmXzw89v+AeKc8ReZCgBaVXlpyJBK6kNreRzhdVRG/Y1T2s
t7LysZqUigsnHKnFduD08um4mSZAiV59p2okWh4CPj/eUgBuXzw=
=oMTs
-----END PGP SIGNATURE-----


Christopher Baines wrote 8 years ago
Offloading is now working!
(address . 27990-done@debbugs.gnu.org)
20170831183257.3135660b@cbaines.net
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!
-----BEGIN PGP SIGNATURE-----

iQKTBAEBCgB9FiEEPonu50WOcg2XVOCyXiijOwuE9XcFAlmoSElfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF
ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcACgkQXiijOwuE
9XeGBw/+Lr6jLe/Y62uNgYylnKEF+KH+e7nC3zaj5bwlX/0Jm8ryQzVcEA7j2IDO
aia4kHU1JjXylgsPm1tzKdlc0meGAwT6u0H1MBYE5TEevMtkyh+7VWgL2KhI440Q
tp6SfgitfJkNR4S3pVZmixpNGuTPZ3JpDF49qK313gEXppZezL68T3GGef/PYWCf
nJ7ClnJ9sxGD2zwKA8w9vu+N60U2QjkQzeBywfnCeValV9s38GQUOopW/KNp5iAh
a8vUUXXXW6qZULh23ROb6dJbGePrPoxl+ClKlXAeccPM7QYRAxkb5VZdVS3IW5na
7Mp+dyBJ+UtYTHQx+BpT/0w55FHE3iTL/PrOhctG3fvv+gNG8OsbOvWpuRRv5r0c
6cwyOvmgsfMG4gO4RK/go5lrHch9CN2Ww/qO8+kE6J/vxC2g/9rhNIUTUtAaS68H
dPZifTsakVr+B9VPW7w51HTwO/Q+iZDsrpuN1hBttsW9MXPNck0T/nbq/Ht9xMAW
LEelzH1TM68tI3x7sIskYt285zlMmccPYDDaNMadAMse+RtpvNEjZZz8WWIOwZ22
phXkxLMMJfX6U7/UN+blRLve4yOY7jyvDAgAL2pnH2zWN+d1ScNS86c3pA9FNaCf
SEE5WsEOJgc3JHgPF4FplCiKTmJ3fc1qwR7SaYL01cgciwjfzDs=
=/U74
-----END PGP SIGNATURE-----


Closed
Ludovic Courtès wrote 8 years ago
(address . 27990@debbugs.gnu.org)(address . mail@cbaines.net)
87inh2xbtp.fsf@gnu.org
Christopher Baines <mail@cbaines.net> skribis:

Toggle quote (7 lines)
> 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’.
?
Your comment

This issue is archived.

To comment on this conversation send an email to 27990@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 27990
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch
You may also tag this issue. See list of standard tags. For example, to set the confirmed and easy tags
mumi command -t +confirmed -t +easy
Or, remove the moreinfo tag and set the help tag
mumi command -t -moreinfo -t +help