From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: qemu-nbd: Failed to bind socket: No such file or directory Date: Wed, 29 Apr 2015 22:28:27 +0200 Message-ID: <877fsufzmc.fsf@gnu.org> References: <87h9t7qwoz.fsf@gnu.org> <9e22916c65c4356f3c037983f777a110@hcoop.net> <87iodl5gmk.fsf@gnu.org> <87pp6rwn0y.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53395) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YnYaw-0008O2-G6 for guix-devel@gnu.org; Wed, 29 Apr 2015 16:28:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YnYas-0006Jt-Fm for guix-devel@gnu.org; Wed, 29 Apr 2015 16:28:34 -0400 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:53812) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YnYas-0006Jp-CE for guix-devel@gnu.org; Wed, 29 Apr 2015 16:28:30 -0400 In-Reply-To: <87pp6rwn0y.fsf@gmail.com> (=?utf-8?B?IuWui+aWh+atpiIncw==?= message of "Sun, 26 Apr 2015 12:07:09 +0800") 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: =?utf-8?B?5a6L5paH5q2m?= Cc: guix-devel@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable =E5=AE=8B=E6=96=87=E6=AD=A6 skribis: > Ludovic Court=C3=A8s writes: > >> =E7=99=BD=E3=81=84=E7=86=8A=EF=BC=A0=E7=9B=B8=E6=92=B2=E9=81=93 skribis: >> >>> On 2015-03-26 22:24, ludo@gnu.org wrote: >>>> I have no idea, but I would recommend running: >>>> >>>> sudo strace -o log qemu-nbd -c /dev/nbd0 disk.qcow2 >>>> >>>> and then find out the socket name in =E2=80=98log=E2=80=99 above =E2= =80=9CFailed to bind >>>> socket=E2=80=9D. >>> >>> Yeah, was exploring this... I'm attaching the strace log, I don't >>> understand what's causing it... Any ideas? >> >> [...] >> >>> --- SIGCHLD {si_signo=3DSIGCHLD, si_code=3DCLD_EXITED, si_pid=3D2063, s= i_status=3D0, si_utime=3D0, si_stime=3D0} --- >>> read(3, "Failed to bind socket: No such f"..., 1024) =3D 49 >>> write(2, "Failed to bind socket: No such f"..., 49) =3D 49 >> >> The problem seems to happen in a child process. Can you add the =E2=80= =98-f=E2=80=99 >> flag to the =E2=80=98strace=E2=80=99 command line so we have details abo= ut child >> processes? > I tried 'strace -f', then find out that qemu-nbd need access to "/var/loc= k". > After "mkdir /var/lock", it works. Thanks, I=E2=80=99ve committed this: --=-=-= Content-Type: text/x-patch Content-Disposition: inline --- a/gnu/build/install.scm +++ b/gnu/build/install.scm @@ -121,6 +121,7 @@ STORE." (directory "/bin") (directory "/tmp" 0 0 #o1777) ; sticky bit (directory "/var/tmp" 0 0 #o1777) + (directory "/var/lock" 0 0 #o1777) (directory "/root" 0 0) ; an exception --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: base64 DQpMdWRv4oCZLg0K --=-=-=--