unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Divan Santana <divan@santanas.co.za>
To: ludo@gnu.org
Cc: 27386@debbugs.gnu.org
Subject: bug#27386: offloading documentation and env
Date: Thu, 28 Sep 2017 21:44:17 +0200	[thread overview]
Message-ID: <87vak2ehgu.fsf@santanas.co.za> (raw)
In-Reply-To: <87wp4iehmm.fsf@santanas.co.za>

Divan Santana <divan@santanas.co.za> writes:

> So I'm trying to set up the same offloading and followed the
> documentation and seem to have resulted in the same issue as ng0.
>
> Ludovic Courtès <ludo@gnu.org> writes:
>
>> ng0 <ng0@infotropique.org> skribis:
>>
>>> Ludovic Courtès transcribed 2.1K bytes:
>>>> ng0 <ng0@infotropique.org> 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/machines.scm'...
>>>> > guix offload: '192.168.1.179' is running guile (GNU Guile) 2.2.2
>>>> > Backtrace:
>>>> >            7 (primitive-load "/gnu/store/js4ml3w20ysh4znp9wl0da0ljji…")
>>>> > In guix/ui.scm:
>>>> >    1321:8  6 (run-guix-command _ . _)
>>>> > In ice-9/boot-9.scm:
>>>> >     837:9  5 (catch srfi-34 #<procedure 1cc6cc0 at guix/ui.scm:450:…> …)
>>>> >     837:9  4 (catch system-error #<procedure 1cc6ce0 at guix/script…> …)
>>>> > In guix/scripts/offload.scm:
>>>> >     611:6  3 (check-machine-availability _ _)
>>>> > In srfi/srfi-1.scm:
>>>> >    656:11  2 (for-each #<procedure assert-node-has-guix (node name)> …)
>>>> > In guix/scripts/offload.scm:
>>>> >     543:2  1 (assert-node-has-guix #<node user@192.168.1.179:22555/…> …)
>>>> > In ssh/dist/node.scm:
>>>> >     397:8  0 (node-eval #<node user@192.168.1.179:22555/37146 1ceaa…> …)
>>>> >
>>>> > 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:\nERROR: no code for module (guix)" ())'.
>>>>
>>>> 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:
>>>>
>>>>   $ ssh localhost env |grep GUILE_
>>>>   GUILE_LOAD_COMPILED_PATH=/home/ludo/.guix-profile/lib/guile/2.2/site-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=/home/ludo/.guix-profile/share/guile/site/2.2:/run/current-system/profile/share/guile/site/2.2
>>>>
>>>> and you should see /run/current-system/profile/share/guile/site/2.2.  If
>>>> not, you’ll have to add it somehow.
>>
>> What does the above give for you?
>
> So guixsd.santanas.co.za is my build system VM.
> Laptop, is a guixsd system I want to not compile code, and rather offload.
>
> root@laptop ~# ssh admin@guixsd.santanas.co.za env |grep GUILE_
>
> Returns nothing.
>
> However, an interactive session has the correct environment variables.
> So I suppose one could set this via the .zshenv or .bash_profile .
>
> Though I'm wondering what others do? Secondly, should the official docs
> be updated?
>
> root@guixsd ~# su - admin
> admin@guixsd ~$ env|grep GUILE_
> GUILE_LOAD_COMPILED_PATH=/run/current-system/profile/lib/guile/2.2/site-ccache:/run/current-system/profile/share/guile/site/2.2
> GUILE_LOAD_PATH=/run/current-system/profile/share/guile/site/2.2
> admin@guixsd ~$

I'm wondering if for others, by default does ssh a-guixsd-system env
|grep GUILE_ return something?

If so, why on my system, and ng0 is it not set.
--
Divan

  reply	other threads:[~2017-09-29  7:07 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-15 17:05 bug#27386: offloading documentation and env ng0
2017-06-15 21:11 ` ng0
2017-06-15 22:19   ` ng0
2017-06-15 22:34     ` ng0
2017-06-26 19:56       ` Ludovic Courtès
2017-06-26 21:15         ` ng0
2017-06-27 13:39           ` Ludovic Courtès
2017-06-27 14:54             ` ng0
2017-06-27 19:38               ` Ludovic Courtès
2017-06-27 20:31                 ` ng0
2017-06-28  8:31                   ` Ludovic Courtès
2017-06-28 11:45                     ` ng0
2017-06-28 21:46                       ` Ludovic Courtès
2017-06-28 22:36                         ` ng0
2017-06-29 11:50                           ` Ludovic Courtès
2017-07-04 13:51                             ` Oleg Pykhalov
2017-07-04 15:43                               ` Oleg Pykhalov
2017-07-04 16:02                                 ` Oleg Pykhalov
2017-07-04 21:36                               ` Ludovic Courtès
2017-07-05 17:06                                 ` Oleg Pykhalov
2017-07-06  7:33                                   ` Ludovic Courtès
2017-07-06 13:15                                     ` Oleg Pykhalov
2017-07-07 10:00                                       ` Ludovic Courtès
     [not found]                                         ` <871spsginl.fsf@clover.i-did-not-set--mail-host-address--so-tickle-me>
2017-07-08 16:33                                           ` bug#27386: [SOLVED] " Ludovic Courtès
2017-09-28 19:40             ` Divan Santana
2017-09-28 19:44               ` Divan Santana [this message]
2017-09-29  7:49               ` Ludovic Courtès
2017-09-29 17:02                 ` Ricardo Wurmus
2017-09-29 19:35                   ` Divan Santana
2017-09-29 19:33                 ` Divan Santana

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87vak2ehgu.fsf@santanas.co.za \
    --to=divan@santanas.co.za \
    --cc=27386@debbugs.gnu.org \
    --cc=ludo@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).