From mboxrd@z Thu Jan  1 00:00:00 1970
From: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@gnu.org>
Subject: bug#39925: `guix pull` failure in multi-machine setup
Date: Mon, 09 Mar 2020 11:46:24 +0100
Message-ID: <87fteh3iwv.fsf@gnu.org>
References: <20200305133318.GB2909@zpidnp36> <87ftem7m6d.fsf@gnu.org>
 <20200306074018.GC2909@zpidnp36> <87wo7xoiuj.fsf@gnu.org>
 <20200306114548.GD2909@zpidnp36> <87zhcraxce.fsf@gnu.org>
 <20200309082253.GA2917@zpidnp36>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Return-path: <bug-guix-bounces+gcggb-bug-guix=m.gmane-mx.org@gnu.org>
Received: from eggs.gnu.org ([2001:470:142:3::10]:41566)
 by lists.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1jBFw7-0001Jx-OX
 for bug-guix@gnu.org; Mon, 09 Mar 2020 06:47:04 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1jBFw6-0000yu-Pd
 for bug-guix@gnu.org; Mon, 09 Mar 2020 06:47:03 -0400
Received: from debbugs.gnu.org ([209.51.188.43]:43893)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
 id 1jBFw6-0000y4-Lt
 for bug-guix@gnu.org; Mon, 09 Mar 2020 06:47:02 -0400
Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1jBFw6-0003xC-KL
 for bug-guix@gnu.org; Mon, 09 Mar 2020 06:47:02 -0400
Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
Resent-Message-ID: <handler.39925.B39925.158375079315143@debbugs.gnu.org>
In-Reply-To: <20200309082253.GA2917@zpidnp36> (Lars-Dominik Braun's message of
 "Mon, 9 Mar 2020 09:22:53 +0100")
List-Id: Bug reports for GNU Guix <bug-guix.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-guix>,
 <mailto:bug-guix-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/bug-guix>
List-Post: <mailto:bug-guix@gnu.org>
List-Help: <mailto:bug-guix-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-guix>,
 <mailto:bug-guix-request@gnu.org?subject=subscribe>
Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane-mx.org@gnu.org
Sender: "bug-Guix" <bug-guix-bounces+gcggb-bug-guix=m.gmane-mx.org@gnu.org>
To: Lars-Dominik Braun <ldb@leibniz-psychology.org>
Cc: 39925@debbugs.gnu.org

Hi!

Lars-Dominik Braun <ldb@leibniz-psychology.org> skribis:

>> In fact, the former would probably not work because =E2=80=98guix pull=
=E2=80=99 modifies
>> the local /var/guix/profiles, not the one on the host that runs the
>> daemon.
> Yes, /var/guix is shared via NFS too. Otherwise roaming between machines
> wouldn=E2=80=99t work at all.
>
>> So maybe the problem is that =E2=80=98GUIX_DAEMON_SOCKET=3Dssh://=E2=80=
=99 isn=E2=80=99t quite as
>> powerful as you thought.  :-)
> It is, it=E2=80=99s just a bug we have to fix :) Can I help you debug thi=
s somehow,
> i.e. figure out where exactly the error message is coming from?

Well, I think you=E2=80=99re really asking for a new feature; we need more =
than
just talk to a remote daemon.

Updating profiles like =E2=80=98guix package=E2=80=99 and =E2=80=98guix pul=
l=E2=80=99 do involve two
things:

  1. building the profile=E2=80=94this is done by talking to the daemon;

  2. modifying things in /var/guix/profiles & co.

GUIX_DAEMON_SOCKET addresses #1 but not #2.

For #2, we would need to do something like Jakub did in (guix scripts
system reconfigure), where the effectul bits can be transparently
evaluated either locally or remotely.

But really, that=E2=80=99d be a brand new feature, so I=E2=80=99m marking i=
t as a
wishlist if you don=E2=80=99t mind.  :-)

Thanks,
Ludo=E2=80=99.