From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: offload daemon Date: Wed, 24 May 2017 12:10:21 +0200 Message-ID: <87h90a4lbm.fsf@gnu.org> References: <8737bv601k.fsf@jamestechnotes.com> <871srf9utp.fsf@gnu.org> <87h90bujbe.fsf@jamestechnotes.com> <87fufvuhlh.fsf@jamestechnotes.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33214) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dDTFM-0003dl-Kc for help-guix@gnu.org; Wed, 24 May 2017 06:10:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dDTFI-0007Ak-Kx for help-guix@gnu.org; Wed, 24 May 2017 06:10:28 -0400 In-Reply-To: <87fufvuhlh.fsf@jamestechnotes.com> (James Richardson's message of "Tue, 23 May 2017 22:14:02 -0400") List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: James Richardson Cc: help-guix James Richardson skribis: > James Richardson writes: > >> Ludovic Court=C3=A8s writes: >> >>> Hello, >>> >>> James Richardson skribis: >>> >>>> I am trying to setup an offload daemon. >>>> >>>> I have everything setup correctly (I think ;) >>>> >>>> $ guix offload test completes successfully. >>>> >>>> The offload daemon is actually guix on a foreign distro (Debian sid in >>>> this case). >>>> >>>> Neither guix running on top of a Debian (sid and jessie) nor guixsd se= em >>>> to even call out to the offload daemon. All boxen are 64. >>>> >>>> My /etc/guix/machines.scm is here >>>> >>>> (list (build-machine >>>> (name "thor.lab01.jamestechnotes.com") >>>> (system "x86_64-linux") >>>> (host-key "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJf0ezYgeVFit40V= JwaBEW1dGm2Xz+SHzVmib8IbN58y root@thor") >>>> (user "guix") >>>> (speed 1.) >>>> (private-key >>>> (string-append (getenv "HOME") >>>> "/.ssh/identity-for-guix")))) >>>> >>>> Is x86_64-linux the proper system type? >>> >>> Yes. >>> >>> There are several things to consider here. By default, guix-daemon >>> creates a single job, so that single job will end up being built >>> locally, unless you spawn, say, two =E2=80=9Cguix build=E2=80=9D comman= ds in parallel >>> (the number of jobs is per client.) >>> >>> Running =E2=80=9Cguix-daemon --max-jobs=3D0=E2=80=9D should force all b= uilds to be >>> offloaded: >>> >>> https://www.gnu.org/software/guix/manual/html_node/Invoking-guix_002d= daemon.html >>> >>> I *think* =E2=80=9Cguix build --max-jobs=3D0=E2=80=9D should give the s= ame result. >>> >>> Alternately, if you run =E2=80=9Cguix build --max-jobs=3D2=E2=80=9D, pr= esumably half of >>> the builds will be offloaded. >>> >>> Let us know if that works for you. >>> >>> Ludo=E2=80=99. >> >> I have a permission problem somewhere, I think. If I run as root offload >> works, otherwise it doesn't. Don't really know here to look from here. > > Hmm, I move the key pair to /tmp and set the perms to 644 and offloading > works for my regular user... Not quite sure I understand why. The =E2=80=98guix offload=E2=80=99 command is invoked by guix-daemon as roo= t. So when it is invoked, (getenv "HOME") returns "/root" or similar. Could that be the problem? HTH, Ludo=E2=80=99.