From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Using a shared Guix store (was RE: [Bio-packaging] testing out guix) Date: Sat, 18 Jul 2015 17:13:03 +0200 Message-ID: <87fv4lo5xc.fsf@gnu.org> References: <877fr0i0kl.fsf@mdc-berlin.de> <3784bfce22f4406f8ee2d3affda0474c@exchsrv2.sgc.loc> <87oak4zxo8.fsf@gnu.org> <1436378615368.30302@stowers.org> <87h9pce79t.fsf@gnu.org> <87si8pfmqg.fsf@elephly.net> 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]:46962) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZGTnr-0003CZ-JC for guix-devel@gnu.org; Sat, 18 Jul 2015 11:13:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZGTnl-0001vl-VP for guix-devel@gnu.org; Sat, 18 Jul 2015 11:13:27 -0400 In-Reply-To: (Malcolm Cook's message of "Sat, 18 Jul 2015 09:26:59 +0000") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: "Cook, Malcolm" Cc: 'Guix-devel' , "'bio-packaging@mailman.open-bio.org'" , 'Pjotr Prins' "Cook, Malcolm" skribis: > However > > ./pre-inst-env guix package -i hello > > Gives me > > guix package: error: build failed: the build users group `guix-builder' = has no members > > But, but, I do have a group `guix-builder` > > I think the problem may be that my guix-builder group was defined in NIS = whereas its members are not in NIS. What does =E2=80=98getenv group guix-builder=E2=80=99 return? It should sh= ow something like: guixbuild:x:30000:guixbuilder01,guixbuilder02,guixbuilder03,guixbuilder04= ,guixbuilder05,guixbuilder06,guixbuilder07,guixbuilder08,guixbuilder09,guix= builder10 Each build account must have =E2=80=98guix-builder=E2=80=99 in its suppleme= ntary group list. > The daemon is running as user `guix` on host ${GUIXHOST} The daemon really needs to run as root, if possible: http://www.gnu.org/software/guix/manual/html_node/Build-Environment-Setup= .html > However trying to --install is not successful > > /gnu/bin/guix package --install hello > accepted connection from pid 26597, uid 1232 > error: while creating directory `/gnu/var/guix/profiles/per-user/mec': P= ermission denied > Please create the `/gnu/var/guix/profiles/per-user/mec' directory, with = you as the owner. > Try "info '(guix) Invoking guix package'" for more information. > > Which leads me to think the documentation is in error where it says "The = per-user directory is created when guix-daemon is started".=20=20 Well, /var/guix/profiles/per-user is created by the daemon, but .../mec is created by =E2=80=98guix package=E2=80=99. > Creating it by hand (owned by guix, with write access to all) : > > mkdir /gnu/var/guix/profiles/per-user ## the doc says this should happen= by the daemon but not! FIXME! BUG? > chmod a+rwx /gnu/var/guix/profiles/per-user Perfect. The daemon really does create /gnu/var/guix/profiles/per-user, making it world-writable (see nix/libstore/local-store.cc:254.) However, you mentioned guix-daemon was *not* running as root, in which case it does not attempt to create this directory. That could be the reason. Thanks for your report, Ludo=E2=80=99.