From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Enge Subject: Re: Integration of the Nix daemon Date: Sun, 16 Dec 2012 12:16:51 +0100 Message-ID: <201212161216.51858.andreas@enge.fr> References: <87zk1u3htq.fsf@gnu.org> <201212152125.45416.andreas@enge.fr> <87boduorar.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="Boundary-01=_j2azQX+yCrfWqLt" Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:50803) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TkCDQ-0000Wk-Bv for bug-guix@gnu.org; Sun, 16 Dec 2012 06:17:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TkCDN-00070E-T7 for bug-guix@gnu.org; Sun, 16 Dec 2012 06:17:04 -0500 In-Reply-To: <87boduorar.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-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: Ludovic =?utf-8?q?Court=C3=A8s?= Cc: bug-guix@gnu.org --Boundary-01=_j2azQX+yCrfWqLt Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Am Samstag, 15. Dezember 2012 schrieb Ludovic Court=C3=A8s: > First, guix-daemon is running as root, right? Yes, in a separate terminal as NIX_SUBSTITUTERS=3D"" guix-daemon --build-users-group=3Dnixbld > That seems to suggest that there=E2=80=99s a lock on each of these. What= does > =E2=80=98ls -l /nix/var/nix/userpool/=E2=80=99 report? =2Drw------- 1 root root 0 Dez 10 23:30 30001 /etc/group contains a line nixbld:!:30000:nixbld1,nixbld2,nixbld3,nixbld4,nixbld5,nixbld6,nixbld7,nixb= ld8,nixbld9,nixbld10 and /etc/passwd: nixbld1:x:30001:65534:Nix build user 1:/var/empty:/noshell =2E.. nixbld10:x:30001:65534:Nix build user 10:/var/empty:/noshell > Can you also try running guix-daemon in strace, and then check then > fcntl(fd, F_SETLKW, _) calls for user locks? I find none of these: strace ./pre-inst-env guix-build hello 2>&1 | grep fcntl | grep F_SETLKW returns nothing. Andreas --Boundary-01=_j2azQX+yCrfWqLt Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable

Am Samstag,= 15. Dezember 2012 schrieb Ludovic Court=C3=A8s:

> First,= guix-daemon is running as root, right?

&nb= sp;

Yes, in a s= eparate terminal as

NIX_SUBS= TITUTERS=3D"" guix-daemon --build-users-group=3Dnixbld

&nb= sp;

> That s= eems to suggest that there=E2=80=99s a lock on each of these. What does

> =E2=80= =98ls -l /nix/var/nix/userpool/=E2=80=99 report?

&nb= sp;

-rw------- = 1 root root 0 Dez 10 23:30 30001

&nb= sp;

/etc/group = contains a line

nixbld:!:30= 000:nixbld1,nixbld2,nixbld3,nixbld4,nixbld5,nixbld6,nixbld7,nixbld8,nixbld9= ,nixbld10

&nb= sp;

and /etc/pa= sswd:

nixbld1:x:3= 0001:65534:Nix build user 1:/var/empty:/noshell

...

nixbld10:x:= 30001:65534:Nix build user 10:/var/empty:/noshell

&nb= sp;

> Can yo= u also try running guix-daemon in strace, and then check then

> fcntl(= fd, F_SETLKW, _) calls for user locks?

&nb= sp;

I find none= of these:

strace .= /pre-inst-env guix-build hello 2>&1 | grep fcntl | grep F_SETLKW

returns not= hing.

&nb= sp;

Andreas

&nb= sp;

--Boundary-01=_j2azQX+yCrfWqLt--