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: Tue, 27 Jun 2017 15:39:30 +0200 Message-ID: <87injh5z3h.fsf@gnu.org> References: <20170615170552.n7y5cxquqozpnesj@abyayala> <20170615211132.clkaslffc4a3l5bw@abyayala> <20170615221902.5ubbhriynb7wozrz@abyayala> <20170615223456.z5w2oaxifbah2ak2@abyayala> <87podq7cae.fsf@gnu.org> <20170626211511.ox5smekycmqz2vc3@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]:34229) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dPqir-0006cm-Iq for bug-guix@gnu.org; Tue, 27 Jun 2017 09:40:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dPqio-0001MY-DY for bug-guix@gnu.org; Tue, 27 Jun 2017 09:40:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:37493) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dPqio-0001MM-AS for bug-guix@gnu.org; Tue, 27 Jun 2017 09:40:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dPqio-0006sW-3i for bug-guix@gnu.org; Tue, 27 Jun 2017 09:40:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <20170626211511.ox5smekycmqz2vc3@abyayala> (ng0@infotropique.org's message of "Mon, 26 Jun 2017 21:15:11 +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: > Ludovic Court=C3=A8s transcribed 2.1K bytes: >> ng0 skribis: >>=20 >> > 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= /machines.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 `("E= valuation failed" "scheme@(guile-user)> While compiling expression:\nERROR:= no code for module (guix)" ())'. >>=20 >> This means that you need to make sure that the target machine has (guix) >> in its load path. > > I assume that you have read the rest of my messages and not just skipped > through them. I thought my messages were clear that (guix) is in the > loadpath, but only *locally* on the machine, not when connecting to it > via ssh. Right, this is why I suggested testing that *with a non-interactive connection*, as in: ssh HOST env | grep GUILE > So I'm guessing here: the not so obvious yet very obvious solution is to > put guix into the global (packages)? > Where global means the canonical /etc/config.scm On GuixSD, Guix is always in the global profile. >> The test is to run something like: >>=20 >> $ ssh localhost env |grep GUILE_ >> GUILE_LOAD_COMPILED_PATH=3D/home/ludo/.guix-profile/lib/guile/2.2/site= -ccache:/home/ludo/.guix-profile/share/guile/site/2.2:/run/current-system/p= rofile/lib/guile/2.2/site-ccache:/run/current-system/profile/share/guile/si= te/2.2 >> GUILE_LOAD_PATH=3D/home/ludo/.guix-profile/share/guile/site/2.2:/run/c= urrent-system/profile/share/guile/site/2.2 >>=20 >> and you should see /run/current-system/profile/share/guile/site/2.2. If >> not, you=E2=80=99ll have to add it somehow. What does the above give for you? HTH, Ludo=E2=80=99.