guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: qemu-nbd: Failed to bind socket: No such file or directory


From: Ludovic Courtès
Subject: Re: qemu-nbd: Failed to bind socket: No such file or directory
Date: Wed, 29 Apr 2015 22:28:27 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

宋文武 <address@hidden> skribis:

> Ludovic Courtès <address@hidden> writes:
>
>> 白い熊@相撲道 <address@hidden> skribis:
>>
>>> On 2015-03-26 22:24, address@hidden 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 ‘log’ above “Failed to bind
>>>> socket”.
>>>
>>> Yeah, was exploring this... I'm attaching the strace log, I don't
>>> understand what's causing it... Any ideas?
>>
>> [...]
>>
>>> --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=2063, 
>>> si_status=0, si_utime=0, si_stime=0} ---
>>> read(3, "Failed to bind socket: No such f"..., 1024) = 49
>>> write(2, "Failed to bind socket: No such f"..., 49) = 49
>>
>> The problem seems to happen in a child process.  Can you add the ‘-f’
>> flag to the ‘strace’ command line so we have details about child
>> processes?
> I tried 'strace -f', then find out that qemu-nbd need access to "/var/lock".
> After "mkdir /var/lock", it works.

Thanks, I’ve committed this:

--- 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
Ludo’.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]