help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Need help to make 'guix offload' work


From: Maxim Cournoyer
Subject: Need help to make 'guix offload' work
Date: Wed, 16 May 2018 22:12:21 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux)

Hello Guix!

I've invested a couple nights this week attempting to make 'guix
offload' work on a second machine I have, but have so far failed.

Here are the different issues I've encountered.

1. It was very difficult to understand what I had to do in order to
alter the PATH and GUILE_LOAD_PATH of the non-login, non-interactive
shell of remote target. Others had gotten it to work by use of
~/.bashrc, but I had no luck with it until I manually commented this in
it (comes with Ubuntu 16.04 out of the box):

--8<---------------cut here---------------start------------->8---
# If not running interactively, don't do anything
#case $- in
#    *i*) ;;
#      *) return;;
#esac
--8<---------------cut here---------------end--------------->8---

This was returning early without doing anything when running
non-interactively.

2. With this settled, the 'guix offload test' command
processed a bit further, now failing on the authentication.

guix-daemon logs looked like that:

--8<---------------cut here---------------start------------->8---
mai 16 21:58:12 my-pc guix-daemon[21051]: accepted connection from pid 24083, 
user mcournoyer
mai 16 21:58:13 my-pc guix-daemon[21051]: accepted connection from pid 21171, 
user mcournoyer
mai 16 21:58:13 my-pc guix-daemon[21051]: accepted connection from pid 24083, 
user mcournoyer
mai 16 21:58:13 my-pc guix-daemon[21051]: accepted connection from pid 21215, 
user mcournoyer
mai 16 21:58:14 my-pc guix-daemon[21051]: guix authenticate: error: error: 
unauthorized public key: (public-key
mai 16 21:58:14 my-pc guix-daemon[21051]:  (ecc
mai 16 21:58:14 my-pc guix-daemon[21051]:   (curve Ed25519)
mai 16 21:58:14 my-pc guix-daemon[21051]:   (q 
#EEA139318243D36EB4C728DB96856AB15C47AB64C765FA134CCFB12444B82A7
mai 16 21:58:14 my-pc guix-daemon[21051]:   )
mai 16 21:58:14 my-pc guix-daemon[21051]:  )
--8<---------------cut here---------------end--------------->8---

On the guix client side:
--8<---------------cut here---------------start------------->8---
guix offload test
guix offload: testing 1 build machines defined in '/etc/guix/machines.scm'...
guix offload: '192.168.1.105' is running guile (GNU Guile) 2.2.3
guix offload: Guix is usable on '192.168.1.105' (test returned 
"/gnu/store/883yjkl46dxw9mzykykmbs0yzwyxm17z-test")
sending 1 store item to '192.168.1.105'...
exporting path `/gnu/store/snv8s2kwgymv1kvl19blfh7dqrjfyya5-export-test'
guix offload: error: build failed: program `guix-authenticate' failed with exit 
code 1
--8<---------------cut here---------------end--------------->8---

For some strange reason, when I start the guix-daemon using the same
command the service is using:

$ systemctl stop guix-daemon

$ /var/guix/profiles/per-user/root/guix-profile/bin/guix-daemon 
--build-users-group=guixbuild

there is no more error on the guix-daemon side.

On the client side though, we see the following output:
--8<---------------cut here---------------start------------->8---
guix offload test
guix offload: testing 1 build machines defined in '/etc/guix/machines.scm'...
guix offload: '192.168.1.105' is running guile (GNU Guile) 2.2.3
guix offload: Guix is usable on '192.168.1.105' (test returned 
"/gnu/store/883yjkl46dxw9mzykykmbs0yzwyxm17z-test")
sending 1 store item to '192.168.1.105'...
exporting path `/gnu/store/snv8s2kwgymv1kvl19blfh7dqrjfyya5-export-test'
guix offload: error: build failed: program `guix-authenticate' failed with exit 
code 1
--8<---------------cut here---------------end--------------->8---

Hopefully someone has an idea about what is going on? :)

Maxim



reply via email to

[Prev in Thread] Current Thread [Next in Thread]