From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: bug#27386: offloading documentation and env Date: Mon, 26 Jun 2017 21:15:11 +0000 Message-ID: <20170626211511.ox5smekycmqz2vc3@abyayala> References: <20170615170552.n7y5cxquqozpnesj@abyayala> <20170615211132.clkaslffc4a3l5bw@abyayala> <20170615221902.5ubbhriynb7wozrz@abyayala> <20170615223456.z5w2oaxifbah2ak2@abyayala> <87podq7cae.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="qmqbccyrcjo7k4dp" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40463) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dPbMb-0005rl-Q7 for bug-guix@gnu.org; Mon, 26 Jun 2017 17:16:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dPbMY-0003JI-Eu for bug-guix@gnu.org; Mon, 26 Jun 2017 17:16:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:36879) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dPbMY-0003J4-5W for bug-guix@gnu.org; Mon, 26 Jun 2017 17:16:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dPbMX-0004B5-P4 for bug-guix@gnu.org; Mon, 26 Jun 2017 17:16:01 -0400 Sender: "Debbugs-submit" Resent-Message-ID: Content-Disposition: inline In-Reply-To: <87podq7cae.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 --qmqbccyrcjo7k4dp Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 `("Ev= aluation 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. It can be in my users loadpath, but the ssh environment is different. Comparable to how you only get scp when you put openssh into the global (packages) and this is also mentioned nowhere. In other words: What you get in the loadpath when you are a local user, logged in, differs from what you get in the loadpath when you want to get the loadpath directly from an command run through ssh connection. 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 > 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/pr= ofile/lib/guile/2.2/site-ccache:/run/current-system/profile/share/guile/sit= e/2.2 > GUILE_LOAD_PATH=3D/home/ludo/.guix-profile/share/guile/site/2.2:/run/cu= rrent-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 > (It=E2=80=99s unfortunate that setting up offloading remains error-prone,= but > that=E2=80=99s a different story!). >=20 > HTH, > Ludo=E2=80=99. --=20 ng0 OpenPG: A88C8ADD129828D7EAC02E52E22F9BBFEE348588 infotropique: https://www.infotropique.org personal: https://ng-0.github.io https://krosos.org/ --qmqbccyrcjo7k4dp Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEqIyK3RKYKNfqwC5S4i+bv+40hYgFAllReV8ACgkQ4i+bv+40 hYiKlw/+Kf3cOLDVl0vVUFgt5LZRJRc4Hn8JJ6WtzPG0xY76ru8AB1YL0cWj6h7U yOJSpa0p6o+hs1zzG6BDYnXAg1+LKrLrPUn9cb4mxJoECPdSS7+SfEn1YB+W4sv8 ZpA2y5CTMpMEGGkvvJ2NW+JKih5f35MbUVTFluhlzBImH1uWjecs0GvQ8YxYPb7M Dbqzu+C3o79IAIeHx8hUsznta/3ZfMBl4SB4yAa1NNd/VfQlkc1YxtNh+FeR5FIT kWQgWDAoAyskKaGnSB8mafT68+VwuqpPFtCQ/+if/D+IshpWNNqkb76hL6gVI/qX jHMV1yGOdiZ6EK2iCqi4K3YUbUr66hnXGyhAheL97Wy3uy1q9+doGWgOXeLrshyF uNKynwaVXWSphzpE1oqtcJkIfHIz+b5TOhsx3dMYVtMSGJlRI6YNrc32xvziL7BM Km4aLOfZQSaK6/i92X9VcoOWnIi9Sd85cefXwRkiidKaH9ms4pJirOfNYcEyXL8S U13/T0HzUA5ycHiLbYaKmdEOPTm1UdlO7P1Z6E/W+zAm02pIhKtdB4QUI60K7wcF uHll4apbBoSAbbqhJWRAQyD9Llara8AueTiEHuf9Ms4AafvMh2D4pGfZ98Cya16u BsfxoixEtNVlQdPrf9S2w/fE069vw+mhy4hfDJOtUBEPqRPmtf8= =ctjI -----END PGP SIGNATURE----- --qmqbccyrcjo7k4dp--