From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Daemon: nix-connection-error Date: Sat, 22 Jun 2013 22:01:31 +0200 Message-ID: <87vc55gbj8.fsf@gnu.org> References: <8738saswuk.fsf@karetnikov.org> <87obaygpf8.fsf@gnu.org> <874ncq15fs.fsf@karetnikov.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]:59876) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UqU50-0000JT-CZ for bug-guix@gnu.org; Sat, 22 Jun 2013 16:06:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UqU4z-0007be-G8 for bug-guix@gnu.org; Sat, 22 Jun 2013 16:06:38 -0400 Received: from hera.aquilenet.fr ([141.255.128.1]:53777) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UqU4z-0007ba-9b for bug-guix@gnu.org; Sat, 22 Jun 2013 16:06:37 -0400 In-Reply-To: <874ncq15fs.fsf@karetnikov.org> (Nikita Karetnikov's message of "Sat, 22 Jun 2013 20:22:15 +0400") 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: Nikita Karetnikov Cc: bug-guix@gnu.org Nikita Karetnikov skribis: >> Also why do this as root? It=E2=80=99s a Bad Idea.) > > Because I use Guix in a chroot. Can it still be harmful? Usually one never logs in as root. You should only escalate as root when needed, typically via sudo. >> Any hints in test-suite.log or tests/*.log? > > No. There=E2=80=99s probably an error message in test-suite.log in such cases. >> Could you check the permissions on /nix/var/nix/daemon-socket/socket? > > srw-rw-rw- 1 root root 0 2013-06-22 01:34 socket > > I've found out that the following works: > > # ./pre-inst-env guix-daemon --build-users-group=3Dnixbld & > # ./pre-inst-env guix build -K hello > > But 'make check' fails for some reason. =E2=80=98make check=E2=80=99 uses a different store (see the =E2=80=98test-= env=E2=80=99 script.) It may be that $top_builddir/test-tmp/var/XXX/daemon-socket/socket is created with the wrong user or permissions. Could you check whether this works: ./test-env guile -c '(use-modules (guix store)) (pk (open-connection))' If it fails, can you prefix that command line with =E2=80=98strace -f -o lo= g=E2=80=99, and post the output of =E2=80=98grep daemon-socket log=E2=80=99? TIA, Ludo=E2=80=99.