From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pjotr Prins 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, 2 Sep 2018 16:28:55 +0200 Message-ID: <20180902142855.llzongao3kraunys@thebird.nl> References: <20180717085541.g6nuycopf5kxoin7@thebird.nl> <20180723222855.osvahab6uo677nfd@thebird.nl> <87tvomxfzy.fsf@gnu.org> <871sacats5.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50151) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fwTYs-00088S-Dt for bug-guix@gnu.org; Sun, 02 Sep 2018 10:41:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fwTOA-0006QF-FO for bug-guix@gnu.org; Sun, 02 Sep 2018 10:30:10 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:38090) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fwTOA-0006QA-Bh for bug-guix@gnu.org; Sun, 02 Sep 2018 10:30:06 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fwTO6-0001qz-7C for bug-guix@gnu.org; Sun, 02 Sep 2018 10:30:06 -0400 Sender: "Debbugs-submit" Resent-Message-ID: Content-Disposition: inline In-Reply-To: <871sacats5.fsf@gnu.org> 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: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 32183@debbugs.gnu.org On Sun, Sep 02, 2018 at 03:55:06PM +0200, Ludovic Courtès wrote: > Hi Pjotr, > > What was the outcome of this bug? > > https://bugs.gnu.org/32183 > > If it wasn’t resolved, could you answer the questions below? I still face this problem on one or two machines. I am running a standard setup. Not sure what it is. But since no one else is reporting I think it must be because I am running some earlier tree checkout too for deployment. Something got messed up. You can close this issue for now. I'll simply reinstall Guix on these machines and start building a recent tree. > Thanks in advance! > > Ludo’. > > ludo@gnu.org (Ludovic Courtès) 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/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 ‘guix-daemon’ runs as root, the ‘guix-daemon’ package¹ assumes > > that ~root/.config/guix/current/bin/guix exists. In fact, the only way > > you can install the ‘guix-daemon’ package is by running ‘guix pull’, and > > if you run ‘guix-daemon’ you run it as root, so ~root/.config/guix > > necessarily exists. > > > > Or could it be that you’re running ‘guix-daemon’ 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 … > > > > instead of: > > > > exec ~root/.config/guix/current/bin/guix … > > > > in that ‘install’ phase of ‘guix-daemon’. > > > > Thanks, > > Ludo’. > > > > ¹ https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/package-management.scm#n301 >