From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#27386: offloading documentation and env Date: Mon, 26 Jun 2017 21:56:57 +0200 Message-ID: <87podq7cae.fsf@gnu.org> References: <20170615170552.n7y5cxquqozpnesj@abyayala> <20170615211132.clkaslffc4a3l5bw@abyayala> <20170615221902.5ubbhriynb7wozrz@abyayala> <20170615223456.z5w2oaxifbah2ak2@abyayala> 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]:47821) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dPa98-0006VQ-Tp for bug-guix@gnu.org; Mon, 26 Jun 2017 15:58:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dPa94-0005Xv-3l for bug-guix@gnu.org; Mon, 26 Jun 2017 15:58:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:36837) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dPa94-0005Xn-13 for bug-guix@gnu.org; Mon, 26 Jun 2017 15:58:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dPa93-0000YT-O0 for bug-guix@gnu.org; Mon, 26 Jun 2017 15:58:01 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <20170615223456.z5w2oaxifbah2ak2@abyayala> (ng0@infotropique.org's message of "Thu, 15 Jun 2017 22:34:56 +0000") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 27386@debbugs.gnu.org ng0 skribis: > And this is from master running an offloading test as it is right now. > Both ends have GuixSD. > > user@abyayala ~$ guix offload test > guix offload: testing 1 build machines defined in '/usr/local/etc/guix/ma= chines.scm'... > guix offload: '192.168.1.179' is running guile (GNU Guile) 2.2.2 > Backtrace: > 7 (primitive-load "/gnu/store/js4ml3w20ysh4znp9wl0da0ljji=E2= =80=A6") > In guix/ui.scm: > 1321:8 6 (run-guix-command _ . _) > In ice-9/boot-9.scm: > 837:9 5 (catch srfi-34 # =E2=80=A6) > 837:9 4 (catch system-error # =E2=80=A6) > In guix/scripts/offload.scm: > 611:6 3 (check-machine-availability _ _) > In srfi/srfi-1.scm: > 656:11 2 (for-each # =E2= =80=A6) > In guix/scripts/offload.scm: > 543:2 1 (assert-node-has-guix # =E2=80=A6) > In ssh/dist/node.scm: > 397:8 0 (node-eval # =E2=80=A6) > > ssh/dist/node.scm:397:8: In procedure node-eval: > ssh/dist/node.scm:397:8: Throw to key `node-repl-error' with args `("Eval= uation failed" "scheme@(guile-user)> While compiling expression:\nERROR: no= code for module (guix)" ())'. This means that you need to make sure that the target machine has (guix) in its load path. The test is to run something like: $ ssh localhost env |grep GUILE_ GUILE_LOAD_COMPILED_PATH=3D/home/ludo/.guix-profile/lib/guile/2.2/site-cc= ache:/home/ludo/.guix-profile/share/guile/site/2.2:/run/current-system/prof= ile/lib/guile/2.2/site-ccache:/run/current-system/profile/share/guile/site/= 2.2 GUILE_LOAD_PATH=3D/home/ludo/.guix-profile/share/guile/site/2.2:/run/curr= ent-system/profile/share/guile/site/2.2 and you should see /run/current-system/profile/share/guile/site/2.2. If not, you=E2=80=99ll have to add it somehow. (It=E2=80=99s unfortunate that setting up offloading remains error-prone, b= ut that=E2=80=99s a different story!). HTH, Ludo=E2=80=99.