GNU bug report logs - #31825
guix offload fails with guix-authenticate error

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Reported by: Maxim Cournoyer <maxim.cournoyer@HIDDEN>; dated Thu, 14 Jun 2018 03:55:02 UTC; Maintainer for guix is bug-guix@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 14 Jun 2018 03:54:29 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jun 13 23:54:29 2018
Received: from localhost ([127.0.0.1]:47192 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fTJLB-0005T9-5p
	for submit <at> debbugs.gnu.org; Wed, 13 Jun 2018 23:54:29 -0400
Received: from eggs.gnu.org ([208.118.235.92]:56942)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <maxim.cournoyer@HIDDEN>) id 1fTJLA-0005Sy-4x
 for submit <at> debbugs.gnu.org; Wed, 13 Jun 2018 23:54:28 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <maxim.cournoyer@HIDDEN>) id 1fTJL4-0007vk-6h
 for submit <at> debbugs.gnu.org; Wed, 13 Jun 2018 23:54:23 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_40,FREEMAIL_FROM,
 T_DKIM_INVALID autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:46868)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <maxim.cournoyer@HIDDEN>)
 id 1fTJL4-0007vf-2u
 for submit <at> debbugs.gnu.org; Wed, 13 Jun 2018 23:54:22 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:47900)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <maxim.cournoyer@HIDDEN>) id 1fTJL2-0001SR-Pk
 for bug-guix@HIDDEN; Wed, 13 Jun 2018 23:54:21 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <maxim.cournoyer@HIDDEN>) id 1fTJKz-0007ux-MY
 for bug-guix@HIDDEN; Wed, 13 Jun 2018 23:54:20 -0400
Received: from mail-io0-x236.google.com ([2607:f8b0:4001:c06::236]:43451)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <maxim.cournoyer@HIDDEN>)
 id 1fTJKz-0007us-HJ
 for bug-guix@HIDDEN; Wed, 13 Jun 2018 23:54:17 -0400
Received: by mail-io0-x236.google.com with SMTP id t6-v6so5737697iob.10
 for <bug-guix@HIDDEN>; Wed, 13 Jun 2018 20:54:17 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:subject:date:message-id:mime-version;
 bh=4P4X9N6U4/Tl/eakSQLLhngms+qFLqbH2id7jkMQqb4=;
 b=s7nPBEcCG1Nr8p1OQSvd/8KAqd1RalHeR1eJOctuotNS0AjdU6q+YquA/hckgOoXQs
 PFrzh1vv1ujL6FS0bjjr+wh22RKz+FyWKBo2w/Mfze64YeZq28Qv3HNQjeQlDqWUK5vS
 fmD+vGRf9tblLhiejbafe9i3OVIMQQMfx4T5m/uoy/gBH6kj9fPVgn0Fy1rWyQ05C2rn
 rry3FmiqrpHP6pRweO1INgeV+Es2z0XbuQeUb/lcQ5NuaDliheCSfCbdg/aBYuI09KDZ
 Ftz0G4KpG3lZUxSK8MbxcGCYGTbySnSDWoRjeKc211O7wyhydiWNEkRKWyIeMoiO26Gj
 uxuA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:subject:date:message-id:mime-version;
 bh=4P4X9N6U4/Tl/eakSQLLhngms+qFLqbH2id7jkMQqb4=;
 b=dHzLTnjLqD4w+V/dU8yZZYvEUmydD5ruUoqkF6pJ7UuDKSi+fR3bJ7TksQHoGMOuKu
 waaXrlHTOVtJIQnbhEs/PSTxfCxx3THXLEoUNPGoEbV9urCvePSnBGtazYfi4hxEBdy7
 VHQGBweqfq/2oIOhdX5QJrTdD2VUDZu4M7WJ6F6xnCb51f0/ZDsOXLWZnO4nUFb7AvJg
 1QLxYFeW9nyEQGjsyxO/f9n29HjCcTBoPIkRaOh5KjsLt+Ee/ROgJQFepKwJT04gxiFG
 kNPw89YDvw8C/m++hE6hz0CnsA2G5B6poNP1yLqqxvOiaQ5++9K/9Q+MM56FaC7qsXuT
 Mhuw==
X-Gm-Message-State: APt69E32xnuSsANuCb+sCgoGMtdsF0bllzYIDP0RIbdSx5HcsosK4OSg
 zhmbKtuX+0EphOZscfJvubNEVw==
X-Google-Smtp-Source: ADUXVKLjy41cBlEZYf6GbSg8+p03kSBiY33x8v7sy1aLf8JQ3EfRdIalfbePSCbMXjHxCbtYF3tdOQ==
X-Received: by 2002:a6b:882a:: with SMTP id
 k42-v6mr757862iod.137.1528948456481; 
 Wed, 13 Jun 2018 20:54:16 -0700 (PDT)
Received: from apteryx ([45.72.197.2])
 by smtp.gmail.com with ESMTPSA id i189-v6sm2209177itf.22.2018.06.13.20.54.15
 for <bug-guix@HIDDEN>
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Wed, 13 Jun 2018 20:54:16 -0700 (PDT)
From: Maxim Cournoyer <maxim.cournoyer@HIDDEN>
To: bug-guix <bug-guix@HIDDEN>
Subject: guix offload fails with guix-authenticate error
Date: Wed, 13 Jun 2018 23:54:15 -0400
Message-ID: <87y3firpjs.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

Hello!

I've read the documentation carefully many times, but I still can't make
`guix offload' work. It always fails like so:

--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/wrv01knf5xa76j73afscj066pbqq1na3-export-test'
guix offload: error: build failed: program `guix-authenticate' failed with exit code 1
--8<---------------cut here---------------end--------------->8---

In GDB, I've attempted to follow the forks but without success. The
most useful hint I've got was the following message about
guix-authenticate not being found:

--8<---------------cut here---------------start------------->8---
sudo gdb --args guix-daemon --build-users-group=guixbuild
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1
[...]
(gdb) r
Starting program: /home/mcournoyer/src/guix/guix-daemon --build-users-group=guixbuild
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/gnu/store/4sqaib7c2dfjv62ivrg9b8wa7bh226la-glibc-2.26.105-g0890d5379c/lib/libthread_db.so.1".
accepted connection from pid 2241, user mcournoyer
accepted connection from pid 29024, user mcournoyer
accepted connection from pid 2241, user mcournoyer
accepted connection from pid 29068, user mcournoyer
error: executing `guix-authenticate': No such file or directory
--8<---------------cut here---------------end--------------->8---

Things I've tried without success:

1. Installing guix into my user's profile and then this to the ~/.bashrc
on the remote machine:

--8<---------------cut here---------------start------------->8---
GUIX_PROFILE=$HOME/.guix-profile
source $GUIX_PROFILE/etc/profile

# Hack to make guix-authenticate available
export PATH=$PATH:$GUIX_PROFILE/libexec
--8<---------------cut here---------------end--------------->8---

2. Noticing that the guix-daemon I was debugging (the one at
~/src/guix/guix-daemon) was using nixLibexecDir = "/usr/local/libexec"
and that the guix-daemon has code doing this in guix-daemon.cc:469:

--8<---------------cut here---------------start------------->8---
      /* Hackily help 'local-store.cc' find our 'guix-authenticate' program, which
	 is known as 'OPENSSL_PATH' here.  */
      std::string search_path;
      search_path = settings.nixLibexecDir;
      if (getenv ("PATH") != NULL)
	{
	  search_path += ":";
	  search_path += getenv ("PATH");
	}

      setenv ("PATH", search_path.c_str (), 1);
--8<---------------cut here---------------end--------------->8---

I tried:

--8<---------------cut here---------------start------------->8---
sudo ln -s /var/guix/profiles/per-user/mcournoyer/guix-profile/libexec /usr/local/libexec
--8<---------------cut here---------------end--------------->8---

I'm motivated to get this working; would be pleased to debug further
given fresh ideas.

Thanks,

Maxim




Acknowledgement sent to Maxim Cournoyer <maxim.cournoyer@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#31825; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Thu, 14 Jun 2018 04:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.