From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: bug#27386: offloading documentation and env Date: Tue, 27 Jun 2017 14:54:18 +0000 Message-ID: <20170627145418.iq54zrhfzbr7vdtn@abyayala> References: <20170615170552.n7y5cxquqozpnesj@abyayala> <20170615211132.clkaslffc4a3l5bw@abyayala> <20170615221902.5ubbhriynb7wozrz@abyayala> <20170615223456.z5w2oaxifbah2ak2@abyayala> <87podq7cae.fsf@gnu.org> <20170626211511.ox5smekycmqz2vc3@abyayala> <87injh5z3h.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="5ms3gdvwb7g4i5ix" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55147) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dPrtS-0008Cb-Cb for bug-guix@gnu.org; Tue, 27 Jun 2017 10:55:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dPrtO-0007VH-9Y for bug-guix@gnu.org; Tue, 27 Jun 2017 10:55:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:38304) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dPrtO-0007Ub-6f for bug-guix@gnu.org; Tue, 27 Jun 2017 10:55:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dPrtN-0000PI-W3 for bug-guix@gnu.org; Tue, 27 Jun 2017 10:55:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: Content-Disposition: inline In-Reply-To: <87injh5z3h.fsf@gnu.org> 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: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 27386@debbugs.gnu.org --5ms3gdvwb7g4i5ix Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s transcribed 2.8K bytes: > ng0 skribis: >=20 > > Ludovic Court=C3=A8s transcribed 2.1K bytes: > >> ng0 skribis: > >>=20 > >> > And this is from master running an offloading test as it is right no= w. > >> > Both ends have GuixSD. > >> > > >> > user@abyayala ~$ guix offload test > >> > guix offload: testing 1 build machines defined in '/usr/local/etc/gu= ix/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 `(= "Evaluation failed" "scheme@(guile-user)> While compiling expression:\nERRO= R: no code for module (guix)" ())'. > >>=20 > >> This means that you need to make sure that the target machine has (gui= x) > >> 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. >=20 > Right, this is why I suggested testing that *with a non-interactive > connection*, as in: >=20 > ssh HOST env | grep GUILE >=20 > > 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 >=20 > On GuixSD, Guix is always in the global profile. >=20 > >> 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/si= te-ccache:/home/ludo/.guix-profile/share/guile/site/2.2:/run/current-system= /profile/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= /current-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. >=20 > What does the above give for you? >=20 > HTH, > Ludo=E2=80=99. This is issued from computer A (abyayala) to computer B (shadownet). user@abyayala ~$ ssh shadownet env |grep GUILE_ GUILE_LOAD_COMPILED_PATH=3D/gnu/store/m91mxi586pi2qshzys9zfsmzij8nf547-prof= ile/lib/guile/2.2/site-ccache:/gnu/store/m91mxi586pi2qshzys9zfsmzij8nf547-p= rofile/share/guile/site/2.2 GUILE_LOAD_PATH=3D/gnu/store/m91mxi586pi2qshzys9zfsmzij8nf547-profile/share= /guile/site/2.2 I would have to put some ssh private keys on there or configure sshd in a different way to issue this locally on computer B. --=20 ng0 OpenPG: A88C8ADD129828D7EAC02E52E22F9BBFEE348588 infotropique: https://www.infotropique.org personal: https://ng-0.github.io https://krosos.org/ --5ms3gdvwb7g4i5ix Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEqIyK3RKYKNfqwC5S4i+bv+40hYgFAllScZoACgkQ4i+bv+40 hYjHrA/+NwYtxS9I8hZMXNkbcrr8fMMzBt6a1vjyfEi0XDfpzGqCV6X8BRCJCHjL NaxJtZDl543BNJEUv6/+A6i21zVMhkB6dWwo6uUvLfKhKg9YUkQ2sRbCWFpLaEFu jhOTgm9/vSRq5SZr4E7/xfBqKXciCRCUQjfdO281rz/llAhDs2AVET81B62vlj3g L5yhRHNdFPM7kmy9N3W7FFmnl29X0j1BzcW/Y19OsqHVBBnC+/69gQ098FXPZ/Ix 74SWsmmnP8l4q+vbqvT5/OT2UX+nGGWNCL9wGhMr79Q10xW+wEPFhAX3sfpecbXJ MSP3d2lGzBPru1I594jOnAj7xaHJGKl60JnNSXc4V3QwaTsFBKRyOmQT3desKlTq idl67o05r8aNcyIBCtvyWnq8W/taifrD0Zyrl7t8l8LmjpR0b0rRgUAXKla9RctW ouG4lKn6+Qe7ZFXDzYTll4dr2xOByZoxDUjuYCaxsc9gY4gh6x7Fc/BLk8fYGWuS YeMY2iV6RO/owA+9z2+Vdsj4i5dNe58piZUFd+PGH9kPpSJ7BEGmlJXmJsJ7oVQM CP/9wEMJeRqJRqKz79/knjmlMepcaa3npBQCT2ZE4kXrqMcrmy99JvdvoU/Cpb0t aqWLufRlu7Ug48XxIyYooOiYeWp0Zwx8XBNqzLToQjcFcskdVTU= =J4E+ -----END PGP SIGNATURE----- --5ms3gdvwb7g4i5ix--