From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#32183: New =?UTF-8?Q?=E2=80=98guix_?= =?UTF-8?Q?pull=E2=80=99?= /root/.config/current/bin/guix: Permission denied Date: Thu, 26 Jul 2018 15:50:57 +0200 Message-ID: <87tvomxfzy.fsf@gnu.org> References: <20180717085541.g6nuycopf5kxoin7@thebird.nl> <20180723222855.osvahab6uo677nfd@thebird.nl> 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]:55770) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1figgX-0007sR-Hi for bug-guix@gnu.org; Thu, 26 Jul 2018 09:52:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1figgU-0000ty-Jq for bug-guix@gnu.org; Thu, 26 Jul 2018 09:52:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:53592) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1figgU-0000tu-Es for bug-guix@gnu.org; Thu, 26 Jul 2018 09:52:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1figgU-0005VU-7W for bug-guix@gnu.org; Thu, 26 Jul 2018 09:52:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <20180723222855.osvahab6uo677nfd@thebird.nl> (Pjotr Prins's message of "Tue, 24 Jul 2018 00:28:55 +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: Pjotr Prins Cc: 32183@debbugs.gnu.org Hi Pjotr, Pjotr Prins skribis: > Not completely sorted. Not sure what is going wrong but now starting > with guix 0.14 daemon and client and running guix pull a few times > successfully, running guix-daemon from $HOME/.config/guix/current/bin > and guix from a fresh git checkout using ./pre-inst-env guix I get > > substitute: /gnu/store/x02v3j0h5q1d9bl3lwxavp8m9rpm3b7m-guix-daemon-0.15.= 0-2.8bbb79c/libexec/guix/substitute: line 8: /root/.config/guix/current/bin= /guix: No such file or directory > > which is funny for two reasons - 1st this is a guix-daemon that > appears to be older (it is the same) referring to a directory that > does not exist - guix pull is in my $HOME/.config. Since =E2=80=98guix-daemon=E2=80=99 runs as root, the =E2=80=98guix-daemon= =E2=80=99 package=C2=B9 assumes that ~root/.config/guix/current/bin/guix exists. In fact, the only way you can install the =E2=80=98guix-daemon=E2=80=99 package is by running =E2= =80=98guix pull=E2=80=99, and if you run =E2=80=98guix-daemon=E2=80=99 you run it as root, so ~root/.conf= ig/guix necessarily exists. Or could it be that you=E2=80=99re running =E2=80=98guix-daemon=E2=80=99 fr= om ~/.config/guix/current as non-root? That would indeed fail. In fact it may be enough to do: exec ~/.config/guix/current/bin/guix =E2=80=A6 instead of: exec ~root/.config/guix/current/bin/guix =E2=80=A6 in that =E2=80=98install=E2=80=99 phase of =E2=80=98guix-daemon=E2=80=99. Thanks, Ludo=E2=80=99. =C2=B9 https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/package= -management.scm#n301