From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: bug#27386: offloading documentation and env Date: Thu, 15 Jun 2017 22:34:56 +0000 Message-ID: <20170615223456.z5w2oaxifbah2ak2@abyayala> References: <20170615170552.n7y5cxquqozpnesj@abyayala> <20170615211132.clkaslffc4a3l5bw@abyayala> <20170615221902.5ubbhriynb7wozrz@abyayala> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="7ynao37j424z6oqq" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33381) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dLdN1-0006bX-2t for bug-guix@gnu.org; Thu, 15 Jun 2017 18:36:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dLdMx-0000Lt-1I for bug-guix@gnu.org; Thu, 15 Jun 2017 18:36:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:47350) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dLdMw-0000Lh-TK for bug-guix@gnu.org; Thu, 15 Jun 2017 18:36:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dLdMw-0005Rw-KL for bug-guix@gnu.org; Thu, 15 Jun 2017 18:36:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: Content-Disposition: inline In-Reply-To: <20170615221902.5ubbhriynb7wozrz@abyayala> 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 --7ynao37j424z6oqq Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable ng0 transcribed 7.0K bytes: > ng0 transcribed 6.4K bytes: > > ng0 transcribed 1.6K bytes: > > > Hi, > > >=20 > > > I am setting up local offloading systems and I just ran > > > into the same issue like I did every time in the last year: > > >=20 > > > with guile in the remote 'user' PATH the guile test works *locally*. > > > Through ssh, the 'env' output is different than local. I'm now trying > > > to fix this the same way 'scp' is fixed which is by including the > > > application in the system profile. > > >=20 > > > This part is implicit in the documentation and not explained, I think > > > we should be more clear about this. > > > --=20 > > > ng0 > > > OpenPG: A88C8ADD129828D7EAC02E52E22F9BBFEE348588 > > > https://krosos.org/~/ng0/ https://www.infotropique.org > >=20 > > user@abyayala ~$ ssh -p 22555 192.168.1.179 -C "which guix"; ssh -p 225= 55 192.168.1.179 -C "which guile"; ssh -p 22555 192.168.1.179 guile -c "'(u= se-modules (guix config))'" > > /run/current-system/profile/bin/guix > > /gnu/store/m91mxi586pi2qshzys9zfsmzij8nf547-profile/bin/guile > > Backtrace: > > 13 (apply-smob/1 #) > > In ice-9/boot-9.scm: > > 713:2 12 (call-with-prompt ("prompt") # =E2=80=A6) > > In ice-9/eval.scm: > > 619:8 11 (_ #(#(#))) > > In ice-9/command-line.scm: > > 181:18 10 (_ #) > > In unknown file: > > 9 (eval (use-modules (guix config)) #) > > In ice-9/eval.scm: > > 721:20 8 (primitive-eval (use-modules (guix config))) > > In ice-9/psyntax.scm: > > 1234:36 7 (expand-top-sequence ((use-modules (guix config))) _ _ # = =E2=80=A6) > > 1181:24 6 (parse _ (("placeholder" placeholder)) ((top) #(# # =E2=80= =A6)) =E2=80=A6) > > 284:10 5 (parse _ (("placeholder" placeholder)) (()) _ c&e (eval) = =E2=80=A6) > > In ice-9/boot-9.scm: > > 3369:20 4 (process-use-modules _) > > 230:17 3 (map1 (((guix config)))) > > 3370:31 2 (_ ((guix config))) > > 2795:6 1 (resolve-interface _ #:select _ #:hide _ #:prefix _ # _ = =E2=80=A6) > > In unknown file: > > 0 (scm-error misc-error #f "~A ~S" ("no code for modu=E2=80= =A6" =E2=80=A6) =E2=80=A6) > >=20 > > ERROR: In procedure scm-error: > > ERROR: no code for module (guix config) > >=20 > >=20 > >=20 > > user@abyayala ~$ ssh -p 22555 192.168.1.179 env > > SSH_CONNECTION=3D192.168.1.146 35364 192.168.1.179 22555 > > LANG=3Den_US.utf8 > > TZ=3DUTC > > GTK_DATA_PREFIX=3D/run/current-system/profile > > C_INCLUDE_PATH=3D/gnu/store/m91mxi586pi2qshzys9zfsmzij8nf547-profile/in= clude > > GIT_SSL_CAINFO=3D/etc/ssl/certs/ca-certificates.crt > > LINUX_MODULE_DIRECTORY=3D/run/booted-system/kernel/lib/modules > > GUILE_LOAD_COMPILED_PATH=3D/gnu/store/m91mxi586pi2qshzys9zfsmzij8nf547-= profile/lib/guile/2.2/site-ccache:/gnu/store/m91mxi586pi2qshzys9zfsmzij8nf5= 47-profile/share/guile/site/2.2 > > USER=3Duser > > TZDIR=3D/gnu/store/2ky6yx0zdqqc4ashxa36gs9yis452mkd-tzdata-2017b/share/= zoneinfo > > GUIX_LOCPATH=3D/run/current-system/locale > > PWD=3D/home/user > > HOME=3D/home/user > > SSH_CLIENT=3D192.168.1.146 35364 22555 > > SSL_CERT_FILE=3D/etc/ssl/certs/ca-certificates.crt > > LIBRARY_PATH=3D/gnu/store/m91mxi586pi2qshzys9zfsmzij8nf547-profile/lib > > TERMINFO_DIRS=3D/gnu/store/m91mxi586pi2qshzys9zfsmzij8nf547-profile/sha= re/terminfo > > MAIL=3D/var/mail/user > > GIT_EXEC_PATH=3D/gnu/store/m91mxi586pi2qshzys9zfsmzij8nf547-profile/lib= exec/git-core > > SHELL=3D/gnu/store/nrrwyb21bn8cdc0k6pis3ggs2vayibin-bash-4.4.12/bin/bash > > SHLVL=3D1 > > ACLOCAL_PATH=3D/gnu/store/m91mxi586pi2qshzys9zfsmzij8nf547-profile/shar= e/aclocal > > SSL_CERT_DIR=3D/etc/ssl/certs > > LOGNAME=3Duser > > CPLUS_INCLUDE_PATH=3D/gnu/store/m91mxi586pi2qshzys9zfsmzij8nf547-profil= e/include > > GUILE_LOAD_PATH=3D/gnu/store/m91mxi586pi2qshzys9zfsmzij8nf547-profile/s= hare/guile/site/2.2 > > DBUS_FATAL_WARNINGS=3D0 > > PATH=3D/gnu/store/m91mxi586pi2qshzys9zfsmzij8nf547-profile/bin:/gnu/sto= re/m91mxi586pi2qshzys9zfsmzij8nf547-profile/sbin:/run/current-system/profil= e/bin > > PKG_CONFIG_PATH=3D/gnu/store/m91mxi586pi2qshzys9zfsmzij8nf547-profile/l= ib/pkgconfig > > _=3D/run/current-system/profile/bin/env > >=20 > >=20 > > locally (remote system): > > guix package -l > > =E2=80=A6 > >=20 > > Generation 16 Jun 15 2017 20:28:25 (current) > > + autoconf 2.69 out /gnu/store/mz6vcd5wbs597nvxi7l9al7c8v6b= zaq0-autoconf-2.69 > > + automake 1.15 out /gnu/store/rx2c62n3pxygnzy4mqnk9n832kjp= 6wrq-automake-1.15 > > + make 4.2.1 out /gnu/store/9py8s30bxjidqni68i0c2shl919qj2y0-mak= e-4.2.1 > > + guile 2.2.2 out /gnu/store/5zx29y44nrqj0s8h3jlvlj82k8hj= 4dxs-guile-2.2.2 > > + guile-ssh 0.11.0 out /gnu/store/7n4gcz5c0rl3aqv83g271n4f4rz5= lyij-guile-ssh-0.11.0 > > + pkg-config 0.29.1 out /gnu/store/2xm70k2vppjw5m4aqnh9ii3hiz66= 7dg2-pkg-config-0.29.1 > > + gcc-toolchain 7.1.0 out /gnu/store/yr9rk90jfpq7xcbh24ar= yrnsd2i3qvwa-gcc-toolchain-7.1.0 > > + libgcrypt 1.7.6 out /gnu/store/hag795ji8p9vqikwp8cibfibpsa3= 9s3n-libgcrypt-1.7.6 > > + gnutls 3.5.9 out /gnu/store/jsflzpi7pnc7m5p7cln8bjcma4ls= i6hd-gnutls-3.5.D > > + guile-json 0.6.0 out /gnu/store/l2paa4ka8lglar0b778qzl7a6h2v= 5dzn-guile-json-0.6.0 > > + zlib 1.2.11 out /gnu/store/jwkcd7siv6fcyl0qsg607bg9c8ap0gqr-zli= b-1.2.11 > > + bzip2 1.0.6 out /gnu/store/s3c442d075fc8a0q0nspc9jjsgjq= 613p-bzip2-1.0.6 > > + sqlite 3.17.0 out /gnu/store/dcc4b6r7npjmhdsah1g6nw1j9wdy= 635y-sqlite-3.17.0 > > + help2man 1.47.4 out /gnu/store/29gzpcqwj9x4lxpjl86wqy695dsr= 6xlm-help2man-1.47.4 > >=20 > > GUILE_LOAD_PATH just started appearing in the env when I installed guil= e modules. > >=20 > > Where is the mistake? > >=20 >=20 > It's probably not related, but the master (GuixSD running from git) assum= es that > the 'machines.scm' should be in /usr/local/etc/guix/ where also the gene= rated files > from guix archive --generate ended up. I changed nothing in the past, my = guix is > configured the 'normal' way with localstatedir=3D/var >=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/mach= ines.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 `("Evalua= tion failed" "scheme@(guile-user)> While compiling expression:\nERROR: no c= ode for module (guix)" ())'. --=20 ng0 OpenPG: A88C8ADD129828D7EAC02E52E22F9BBFEE348588 https://krosos.org/~/ng0/ https://www.infotropique.org --7ynao37j424z6oqq Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEqIyK3RKYKNfqwC5S4i+bv+40hYgFAllDC5AACgkQ4i+bv+40 hYjffw//UVDwKq12NQ+zkuRYguqcouZtv8/in6EV8AKjIjf6f6hUiNPgFCA4Ca6i 6rzaY9VnsHMtvjcDjZKXrdGRDLfeQxWT9JUMELrEKXyBJCGeJlfnhzNCo4d8CDML pZTmOETQH8eAVLMg16C9WeznuFntELcVtdgq1w0naowPGHjjgJ+spGKcdBiNRWmx b1VlkyLIrkaCooUstK3zT10BwhNYGq0CZmsQgEk7obWDnA4JuZ4g6C6CC67ouc8k sB+IA95rbQCQmTuUCPgebhUdVwMHaHSw8X/GcTzvWFl10WfOGsZq40CR6cuMPvNI v601fN2j6psdD1b9i8A/LeRPDdVLAEKq/xdJA7gZPWu+mgKvNFnUmb6nnDu+ZJvT /Ky92AcH6OvC94sbR+Va09/VV92cDCDvgDOLcgXweUQ/nEVQw/qsbfic4VYnu5ZL WKitBk+CnQmHGLpD8lSZkrr5JBQUt7jUbw2eaO3AHPw5qa2GXPTUHgakyCCh02db OIg0Ct8qaqF4afDoGz8wl4Xfs/6tya9OIsKXnCIkE56nAESoignQR3DQD+pqiRtA 6jL38iexLsTtzorIPZxcZSBfliwnz7VUZT1oHKSFl+lBldH57K1Q2b0db8WBi+eH sEb13s8i7uW9e7pfa97rDFYju53675aE9e6i9BijrdlhrrMyufA= =5Nty -----END PGP SIGNATURE----- --7ynao37j424z6oqq--