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: Sun, 02 Sep 2018 15:55:06 +0200 Message-ID: <871sacats5.fsf@gnu.org> References: <20180717085541.g6nuycopf5kxoin7@thebird.nl> <20180723222855.osvahab6uo677nfd@thebird.nl> <87tvomxfzy.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]:50105) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fwTY3-00087D-Qm for bug-guix@gnu.org; Sun, 02 Sep 2018 10:40:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fwTWV-0005SA-9A for bug-guix@gnu.org; Sun, 02 Sep 2018 10:38:44 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:38091) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fwTWV-0005Rq-5L for bug-guix@gnu.org; Sun, 02 Sep 2018 10:38:43 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fwSyv-0007fY-KZ for bug-guix@gnu.org; Sun, 02 Sep 2018 10:04:01 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87tvomxfzy.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Thu, 26 Jul 2018 15:50:57 +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, What was the outcome of this bug? https://bugs.gnu.org/32183 If it wasn=E2=80=99t resolved, could you answer the questions below? Thanks in advance! Ludo=E2=80=99. ludo@gnu.org (Ludovic Court=C3=A8s) skribis: > 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/bi= n/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-daemo= n=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/.co= nfig/guix > necessarily exists. > > Or could it be that you=E2=80=99re running =E2=80=98guix-daemon=E2=80=99 = from > ~/.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/packa= ge-management.scm#n301