From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#26972: ssh: =?UTF-8?Q?=E2=80=98send-files=E2=80=99?= silently fails if key is not authorized on remote target Date: Sun, 04 Jun 2017 23:04:13 +0200 Message-ID: <87wp8rh3ci.fsf@gnu.org> References: <87inkzt9zs.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60511) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dHchv-0007jN-8y for bug-guix@gnu.org; Sun, 04 Jun 2017 17:05:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dHchr-0007j2-Ht for bug-guix@gnu.org; Sun, 04 Jun 2017 17:05:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:53504) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dHchr-0007ig-FP for bug-guix@gnu.org; Sun, 04 Jun 2017 17:05:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dHchr-0000ns-8o for bug-guix@gnu.org; Sun, 04 Jun 2017 17:05:03 -0400 Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Message-ID: In-Reply-To: <87inkzt9zs.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Thu, 18 May 2017 00:05:27 +0200") 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: 26972-done@debbugs.gnu.org ludo@gnu.org (Ludovic Court=C3=A8s) skribis: > I just noticed that something like: > > guix copy --to=3DREMOTE /gnu/store/=E2=80=A6.drv > > seems to work (it actually sends data) but silently fails if the host=E2= =80=99s > nar signing key is not authorized on REMOTE (that is, the store items > are not added to REMOTE=E2=80=99s store but there=E2=80=99s no error mess= age). Same > problem with =E2=80=98guix offload=E2=80=99 since both use =E2=80=98send-= files=E2=80=99 in (guix ssh). > > This is on v0.12.0-3916-g411ba5118. Fixed in commit de9d8f0e295928d92e0e5ea43a4e594fa78c76fb. Now we get: --8<---------------cut here---------------start------------->8--- $ ./pre-inst-env guix copy --to=3Dlocalhost sed sending 1 store item to 'localhost'... guix copy: error: build failed: program `guix-authenticate' failed with exi= t code 1 --8<---------------cut here---------------end--------------->8--- Ludo=E2=80=99.