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: Sun, 28 May 2017 17:44:58 +0200 Message-ID: <87r2z9rnnp.fsf@gnu.org> References: <8737bv601k.fsf@jamestechnotes.com> <871srf9utp.fsf@gnu.org> <87h90bujbe.fsf@jamestechnotes.com> <87fufvuhlh.fsf@jamestechnotes.com> <87h90a4lbm.fsf@gnu.org> <87efvdspuq.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]:46768) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dF0NN-0005fP-Qm for help-guix@gnu.org; Sun, 28 May 2017 11:45:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dF0NK-00037j-OJ for help-guix@gnu.org; Sun, 28 May 2017 11:45:05 -0400 In-Reply-To: <87efvdspuq.fsf@jamestechnotes.com> (James Richardson's message of "Wed, 24 May 2017 21:10:53 -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: > Ludovic Court=C3=A8s writes: [...] >>> 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 = root. So when >> it is invoked, (getenv "HOME") returns "/root" or similar. Could that >> be the problem? >> >> HTH, >> Ludo=E2=80=99. > > Well, I think there is an issue with the offload. I don't (yet) know > guile well enough to understand the code to help :( OK. > Here is what I am finding: $ guix build blah seems to offload builds > properly. $ guix package -i blah, guix package -u blah, and $ guix > system reconfigure config.scm does not offload builds. Without more info, it=E2=80=99s hard to tell, but there are derivations tha= t are marked as =E2=80=9Cnon-offloadable=E2=80=9D, essentially because it=E2=80= =99d take more time to transfer them and build them remotely than to build them locally. Among those derivations are profiles (built by =E2=80=98guix package=E2=80=99) an= d many of the small items built by =E2=80=98guix system=E2=80=99. It could explain what = you=E2=80=99re seeing. Something like =E2=80=98guix build libreoffice --no-substitutes=E2=80=99 sh= ould be offloaded, provided --max-jobs is appropriate as discussed before. HTH, Ludo=E2=80=99.