* qemu-nbd: Failed to bind socket: No such file or directory
@ 2015-03-25 4:26 白い熊@相撲道
2015-03-26 21:24 ` Ludovic Courtès
0 siblings, 1 reply; 6+ messages in thread
From: 白い熊@相撲道 @ 2015-03-25 4:26 UTC (permalink / raw)
To: guix-devel
I'm completely baffled...
Using qemu, I'm trying to mount a qcow2 image to manipulate its files. I
insmoded the nbd kernel module. The block devices exist:
~$ ls -l /dev/nbd*
brw-rw---- 1 root disk 43, 0 Mar 24 18:09 /dev/nbd0
brw-rw---- 1 root disk 43, 1 Mar 24 18:09 /dev/nbd1
brw-rw---- 1 root disk 43, 10 Mar 24 18:09 /dev/nbd10
brw-rw---- 1 root disk 43, 11 Mar 24 18:09 /dev/nbd11
brw-rw---- 1 root disk 43, 12 Mar 24 18:09 /dev/nbd12
brw-rw---- 1 root disk 43, 13 Mar 24 18:09 /dev/nbd13
brw-rw---- 1 root disk 43, 14 Mar 24 18:09 /dev/nbd14
brw-rw---- 1 root disk 43, 15 Mar 24 18:09 /dev/nbd15
brw-rw---- 1 root disk 43, 2 Mar 24 18:09 /dev/nbd2
brw-rw---- 1 root disk 43, 3 Mar 24 18:09 /dev/nbd3
brw-rw---- 1 root disk 43, 4 Mar 24 18:09 /dev/nbd4
brw-rw---- 1 root disk 43, 5 Mar 24 18:09 /dev/nbd5
brw-rw---- 1 root disk 43, 6 Mar 24 18:09 /dev/nbd6
brw-rw---- 1 root disk 43, 7 Mar 24 18:09 /dev/nbd7
brw-rw---- 1 root disk 43, 8 Mar 24 18:09 /dev/nbd8
brw-rw---- 1 root disk 43, 9 Mar 24 18:09 /dev/nbd9
But:
~$ sudo qemu-nbd -c /dev/nbd0 disk.qcow2
Failed to bind socket: No such file or directory
What is going on? I've searched the web, but have no idea what the
problem could be.
Does anyone have an idea what is the issue?
--
白い熊@相撲道
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: qemu-nbd: Failed to bind socket: No such file or directory
2015-03-25 4:26 qemu-nbd: Failed to bind socket: No such file or directory 白い熊@相撲道
@ 2015-03-26 21:24 ` Ludovic Courtès
2015-03-28 0:29 ` 白い熊@相撲道
0 siblings, 1 reply; 6+ messages in thread
From: Ludovic Courtès @ 2015-03-26 21:24 UTC (permalink / raw)
To: 白い熊@相撲道; +Cc: guix-devel
白い熊@相撲道 <guix-devel_gnu.org@sumou.com> skribis:
> Using qemu, I'm trying to mount a qcow2 image to manipulate its
> files. I insmoded the nbd kernel module. The block devices exist:
>
> ~$ ls -l /dev/nbd*
> brw-rw---- 1 root disk 43, 0 Mar 24 18:09 /dev/nbd0
> brw-rw---- 1 root disk 43, 1 Mar 24 18:09 /dev/nbd1
> brw-rw---- 1 root disk 43, 10 Mar 24 18:09 /dev/nbd10
> brw-rw---- 1 root disk 43, 11 Mar 24 18:09 /dev/nbd11
> brw-rw---- 1 root disk 43, 12 Mar 24 18:09 /dev/nbd12
> brw-rw---- 1 root disk 43, 13 Mar 24 18:09 /dev/nbd13
> brw-rw---- 1 root disk 43, 14 Mar 24 18:09 /dev/nbd14
> brw-rw---- 1 root disk 43, 15 Mar 24 18:09 /dev/nbd15
> brw-rw---- 1 root disk 43, 2 Mar 24 18:09 /dev/nbd2
> brw-rw---- 1 root disk 43, 3 Mar 24 18:09 /dev/nbd3
> brw-rw---- 1 root disk 43, 4 Mar 24 18:09 /dev/nbd4
> brw-rw---- 1 root disk 43, 5 Mar 24 18:09 /dev/nbd5
> brw-rw---- 1 root disk 43, 6 Mar 24 18:09 /dev/nbd6
> brw-rw---- 1 root disk 43, 7 Mar 24 18:09 /dev/nbd7
> brw-rw---- 1 root disk 43, 8 Mar 24 18:09 /dev/nbd8
> brw-rw---- 1 root disk 43, 9 Mar 24 18:09 /dev/nbd9
>
> But:
>
> ~$ sudo qemu-nbd -c /dev/nbd0 disk.qcow2
> Failed to bind socket: No such file or directory
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”.
HTH,
Ludo’.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: qemu-nbd: Failed to bind socket: No such file or directory
2015-03-26 21:24 ` Ludovic Courtès
@ 2015-03-28 0:29 ` 白い熊@相撲道
2015-03-28 14:41 ` Ludovic Courtès
0 siblings, 1 reply; 6+ messages in thread
From: 白い熊@相撲道 @ 2015-03-28 0:29 UTC (permalink / raw)
To: ludo; +Cc: guix-devel
[-- Attachment #1: Type: text/plain, Size: 374 bytes --]
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 ‘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?
--
白い熊@相撲道
[-- Attachment #2: log.txt --]
[-- Type: text/plain, Size: 16615 bytes --]
execve("/home/shiroikuma/.guix-profile/bin/qemu-nbd", ["qemu-nbd", "-c", "/dev/nbd0", "/home/shiroikuma/qemu/disk.qcow2"], [/* 18 vars */]) = 0
brk(0) = 0x7f4f2a15e000
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4f28f19000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/gnu/store/wiqbxcvzj3r35hd55yxzz919b1dv1hnv-glibc-2.21/lib/tls/x86_64/librt.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/gnu/store/wiqbxcvzj3r35hd55yxzz919b1dv1hnv-glibc-2.21/lib/tls/x86_64", 0x7ffe44a79fd0) = -1 ENOENT (No such file or directory)
open("/gnu/store/wiqbxcvzj3r35hd55yxzz919b1dv1hnv-glibc-2.21/lib/tls/librt.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/gnu/store/wiqbxcvzj3r35hd55yxzz919b1dv1hnv-glibc-2.21/lib/tls", 0x7ffe44a79fd0) = -1 ENOENT (No such file or directory)
open("/gnu/store/wiqbxcvzj3r35hd55yxzz919b1dv1hnv-glibc-2.21/lib/x86_64/librt.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/gnu/store/wiqbxcvzj3r35hd55yxzz919b1dv1hnv-glibc-2.21/lib/x86_64", 0x7ffe44a79fd0) = -1 ENOENT (No such file or directory)
open("/gnu/store/wiqbxcvzj3r35hd55yxzz919b1dv1hnv-glibc-2.21/lib/librt.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0@!\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0555, st_size=42200, ...}) = 0
mmap(NULL, 2128864, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f4f28af4000
mprotect(0x7f4f28afb000, 2093056, PROT_NONE) = 0
mmap(0x7f4f28cfa000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6000) = 0x7f4f28cfa000
close(3) = 0
open("/gnu/store/wiqbxcvzj3r35hd55yxzz919b1dv1hnv-glibc-2.21/lib/libz.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/gnu/store/h132igxl2lkj3sbfcbknn2rd493j7d1l-gcc-4.8.4-lib/lib64/tls/x86_64/libz.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/gnu/store/h132igxl2lkj3sbfcbknn2rd493j7d1l-gcc-4.8.4-lib/lib64/tls/x86_64", 0x7ffe44a79fa0) = -1 ENOENT (No such file or directory)
open("/gnu/store/h132igxl2lkj3sbfcbknn2rd493j7d1l-gcc-4.8.4-lib/lib64/tls/libz.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/gnu/store/h132igxl2lkj3sbfcbknn2rd493j7d1l-gcc-4.8.4-lib/lib64/tls", 0x7ffe44a79fa0) = -1 ENOENT (No such file or directory)
open("/gnu/store/h132igxl2lkj3sbfcbknn2rd493j7d1l-gcc-4.8.4-lib/lib64/x86_64/libz.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/gnu/store/h132igxl2lkj3sbfcbknn2rd493j7d1l-gcc-4.8.4-lib/lib64/x86_64", 0x7ffe44a79fa0) = -1 ENOENT (No such file or directory)
open("/gnu/store/h132igxl2lkj3sbfcbknn2rd493j7d1l-gcc-4.8.4-lib/lib64/libz.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/gnu/store/h132igxl2lkj3sbfcbknn2rd493j7d1l-gcc-4.8.4-lib/lib64", 0x7ffe44a79fa0) = -1 ENOENT (No such file or directory)
open("/gnu/store/h132igxl2lkj3sbfcbknn2rd493j7d1l-gcc-4.8.4-lib/lib/tls/x86_64/libz.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/gnu/store/h132igxl2lkj3sbfcbknn2rd493j7d1l-gcc-4.8.4-lib/lib/tls/x86_64", 0x7ffe44a79fa0) = -1 ENOENT (No such file or directory)
open("/gnu/store/h132igxl2lkj3sbfcbknn2rd493j7d1l-gcc-4.8.4-lib/lib/tls/libz.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/gnu/store/h132igxl2lkj3sbfcbknn2rd493j7d1l-gcc-4.8.4-lib/lib/tls", 0x7ffe44a79fa0) = -1 ENOENT (No such file or directory)
open("/gnu/store/h132igxl2lkj3sbfcbknn2rd493j7d1l-gcc-4.8.4-lib/lib/x86_64/libz.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/gnu/store/h132igxl2lkj3sbfcbknn2rd493j7d1l-gcc-4.8.4-lib/lib/x86_64", 0x7ffe44a79fa0) = -1 ENOENT (No such file or directory)
open("/gnu/store/h132igxl2lkj3sbfcbknn2rd493j7d1l-gcc-4.8.4-lib/lib/libz.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/gnu/store/h132igxl2lkj3sbfcbknn2rd493j7d1l-gcc-4.8.4-lib/lib", {st_mode=S_IFDIR|0555, st_size=4096, ...}) = 0
open("/gnu/store/axy7yrl5npyfj880f9z65mw5pwg2hb6f-zlib-1.2.7/lib/tls/x86_64/libz.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/gnu/store/axy7yrl5npyfj880f9z65mw5pwg2hb6f-zlib-1.2.7/lib/tls/x86_64", 0x7ffe44a79fa0) = -1 ENOENT (No such file or directory)
open("/gnu/store/axy7yrl5npyfj880f9z65mw5pwg2hb6f-zlib-1.2.7/lib/tls/libz.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/gnu/store/axy7yrl5npyfj880f9z65mw5pwg2hb6f-zlib-1.2.7/lib/tls", 0x7ffe44a79fa0) = -1 ENOENT (No such file or directory)
open("/gnu/store/axy7yrl5npyfj880f9z65mw5pwg2hb6f-zlib-1.2.7/lib/x86_64/libz.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/gnu/store/axy7yrl5npyfj880f9z65mw5pwg2hb6f-zlib-1.2.7/lib/x86_64", 0x7ffe44a79fa0) = -1 ENOENT (No such file or directory)
open("/gnu/store/axy7yrl5npyfj880f9z65mw5pwg2hb6f-zlib-1.2.7/lib/libz.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\"\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0555, st_size=107056, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4f28f18000
mmap(NULL, 2194632, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f4f288dc000
mprotect(0x7f4f288f4000, 2093056, PROT_NONE) = 0
mmap(0x7f4f28af3000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x17000) = 0x7f4f28af3000
close(3) = 0
open("/gnu/store/wiqbxcvzj3r35hd55yxzz919b1dv1hnv-glibc-2.21/lib/libgthread-2.0.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/gnu/store/h132igxl2lkj3sbfcbknn2rd493j7d1l-gcc-4.8.4-lib/lib/libgthread-2.0.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/gnu/store/axy7yrl5npyfj880f9z65mw5pwg2hb6f-zlib-1.2.7/lib/libgthread-2.0.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/gnu/store/y5ldcz6ddag8lpiibpfgi64ydj16lhaw-glib-2.42.1/lib/tls/x86_64/libgthread-2.0.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/gnu/store/y5ldcz6ddag8lpiibpfgi64ydj16lhaw-glib-2.42.1/lib/tls/x86_64", 0x7ffe44a79f70) = -1 ENOENT (No such file or directory)
open("/gnu/store/y5ldcz6ddag8lpiibpfgi64ydj16lhaw-glib-2.42.1/lib/tls/libgthread-2.0.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/gnu/store/y5ldcz6ddag8lpiibpfgi64ydj16lhaw-glib-2.42.1/lib/tls", 0x7ffe44a79f70) = -1 ENOENT (No such file or directory)
open("/gnu/store/y5ldcz6ddag8lpiibpfgi64ydj16lhaw-glib-2.42.1/lib/x86_64/libgthread-2.0.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/gnu/store/y5ldcz6ddag8lpiibpfgi64ydj16lhaw-glib-2.42.1/lib/x86_64", 0x7ffe44a79f70) = -1 ENOENT (No such file or directory)
open("/gnu/store/y5ldcz6ddag8lpiibpfgi64ydj16lhaw-glib-2.42.1/lib/libgthread-2.0.so.0", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\240\7\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0555, st_size=7136, ...}) = 0
mmap(NULL, 2100544, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f4f286db000
mprotect(0x7f4f286dc000, 2093056, PROT_NONE) = 0
mmap(0x7f4f288db000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0) = 0x7f4f288db000
close(3) = 0
open("/gnu/store/wiqbxcvzj3r35hd55yxzz919b1dv1hnv-glibc-2.21/lib/libglib-2.0.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/gnu/store/h132igxl2lkj3sbfcbknn2rd493j7d1l-gcc-4.8.4-lib/lib/libglib-2.0.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/gnu/store/axy7yrl5npyfj880f9z65mw5pwg2hb6f-zlib-1.2.7/lib/libglib-2.0.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/gnu/store/y5ldcz6ddag8lpiibpfgi64ydj16lhaw-glib-2.42.1/lib/libglib-2.0.so.0", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\320\236\1\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0555, st_size=1423104, ...}) = 0
mmap(NULL, 3358608, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f4f283a7000
mprotect(0x7f4f284da000, 2093056, PROT_NONE) = 0
mmap(0x7f4f286d9000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x132000) = 0x7f4f286d9000
close(3) = 0
open("/gnu/store/wiqbxcvzj3r35hd55yxzz919b1dv1hnv-glibc-2.21/lib/libuuid.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/gnu/store/h132igxl2lkj3sbfcbknn2rd493j7d1l-gcc-4.8.4-lib/lib/libuuid.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/gnu/store/axy7yrl5npyfj880f9z65mw5pwg2hb6f-zlib-1.2.7/lib/libuuid.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/gnu/store/y5ldcz6ddag8lpiibpfgi64ydj16lhaw-glib-2.42.1/lib/libuuid.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/gnu/store/scfxipjjbn7kkiiaim81cdk1i587pknw-util-linux-2.25.2/lib/tls/x86_64/libuuid.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/gnu/store/scfxipjjbn7kkiiaim81cdk1i587pknw-util-linux-2.25.2/lib/tls/x86_64", 0x7ffe44a79f10) = -1 ENOENT (No such file or directory)
open("/gnu/store/scfxipjjbn7kkiiaim81cdk1i587pknw-util-linux-2.25.2/lib/tls/libuuid.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/gnu/store/scfxipjjbn7kkiiaim81cdk1i587pknw-util-linux-2.25.2/lib/tls", 0x7ffe44a79f10) = -1 ENOENT (No such file or directory)
open("/gnu/store/scfxipjjbn7kkiiaim81cdk1i587pknw-util-linux-2.25.2/lib/x86_64/libuuid.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/gnu/store/scfxipjjbn7kkiiaim81cdk1i587pknw-util-linux-2.25.2/lib/x86_64", 0x7ffe44a79f10) = -1 ENOENT (No such file or directory)
open("/gnu/store/scfxipjjbn7kkiiaim81cdk1i587pknw-util-linux-2.25.2/lib/libuuid.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\20\27\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0555, st_size=21248, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4f28f17000
mmap(NULL, 2111184, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f4f281a3000
mprotect(0x7f4f281a7000, 2093056, PROT_NONE) = 0
mmap(0x7f4f283a6000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x7f4f283a6000
close(3) = 0
open("/gnu/store/wiqbxcvzj3r35hd55yxzz919b1dv1hnv-glibc-2.21/lib/libutil.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P\16\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0555, st_size=14176, ...}) = 0
mmap(NULL, 2105632, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f4f27fa0000
mprotect(0x7f4f27fa2000, 2093056, PROT_NONE) = 0
mmap(0x7f4f281a1000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1000) = 0x7f4f281a1000
close(3) = 0
open("/gnu/store/wiqbxcvzj3r35hd55yxzz919b1dv1hnv-glibc-2.21/lib/libstdc++.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/gnu/store/h132igxl2lkj3sbfcbknn2rd493j7d1l-gcc-4.8.4-lib/lib/libstdc++.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\240\246\5\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0555, st_size=970760, ...}) = 0
mmap(NULL, 3150848, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f4f27c9e000
mprotect(0x7f4f27d82000, 2093056, PROT_NONE) = 0
mmap(0x7f4f27f81000, 40960, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xe3000) = 0x7f4f27f81000
mmap(0x7f4f27f8b000, 82944, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f4f27f8b000
close(3) = 0
open("/gnu/store/wiqbxcvzj3r35hd55yxzz919b1dv1hnv-glibc-2.21/lib/libm.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\300T\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0555, st_size=1123242, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4f28f16000
mmap(NULL, 3150168, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f4f2799c000
mprotect(0x7f4f27a9d000, 2093056, PROT_NONE) = 0
mmap(0x7f4f27c9c000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x100000) = 0x7f4f27c9c000
close(3) = 0
open("/gnu/store/wiqbxcvzj3r35hd55yxzz919b1dv1hnv-glibc-2.21/lib/libgcc_s.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/gnu/store/h132igxl2lkj3sbfcbknn2rd493j7d1l-gcc-4.8.4-lib/lib/libgcc_s.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0000*\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0444, st_size=99744, ...}) = 0
mmap(NULL, 2184800, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f4f27786000
mprotect(0x7f4f2779b000, 2097152, PROT_NONE) = 0
mmap(0x7f4f2799b000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x15000) = 0x7f4f2799b000
close(3) = 0
open("/gnu/store/wiqbxcvzj3r35hd55yxzz919b1dv1hnv-glibc-2.21/lib/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0q\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0555, st_size=135107, ...}) = 0
mmap(NULL, 2213072, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f4f27569000
mprotect(0x7f4f27580000, 2097152, PROT_NONE) = 0
mmap(0x7f4f27780000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x17000) = 0x7f4f27780000
mmap(0x7f4f27782000, 13520, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f4f27782000
close(3) = 0
open("/gnu/store/wiqbxcvzj3r35hd55yxzz919b1dv1hnv-glibc-2.21/lib/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\360\t\2\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0555, st_size=1928625, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4f28f15000
mmap(NULL, 3799584, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f4f271c9000
mprotect(0x7f4f2735f000, 2097152, PROT_NONE) = 0
mmap(0x7f4f2755f000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x196000) = 0x7f4f2755f000
mmap(0x7f4f27565000, 14880, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f4f27565000
close(3) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4f28f14000
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4f28f12000
arch_prctl(ARCH_SET_FS, 0x7f4f28f12780) = 0
mprotect(0x7f4f2755f000, 16384, PROT_READ) = 0
mprotect(0x7f4f27780000, 4096, PROT_READ) = 0
mprotect(0x7f4f27c9c000, 4096, PROT_READ) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4f28f11000
mprotect(0x7f4f27f81000, 32768, PROT_READ) = 0
mprotect(0x7f4f281a1000, 4096, PROT_READ) = 0
mprotect(0x7f4f28cfa000, 4096, PROT_READ) = 0
mprotect(0x7f4f291f1000, 8192, PROT_READ) = 0
mprotect(0x7f4f28f1b000, 4096, PROT_READ) = 0
set_tid_address(0x7f4f28f12a50) = 2062
set_robust_list(0x7f4f28f12a60, 24) = 0
rt_sigaction(SIGRTMIN, {0x7f4f2756fbd0, [], SA_RESTORER|SA_SIGINFO, 0x7f4f275793c0}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {0x7f4f2756fc60, [], SA_RESTORER|SA_RESTART|SA_SIGINFO, 0x7f4f275793c0}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0
brk(0) = 0x7f4f2a15e000
brk(0x7f4f2a17f000) = 0x7f4f2a17f000
rt_sigaction(SIGTERM, {0x7f4f28f2d510, [], SA_RESTORER, 0x7f4f275793c0}, NULL, 8) = 0
readlink("/proc/self/exe", "/gnu/store/4bwhvml62dfi2hbbvsv4l"..., 4095) = 67
pipe2([3, 4], O_CLOEXEC) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f4f28f12a50) = 2063
close(4) = 0
read(3, 0x7f4f2a15e930, 1024) = ? ERESTARTSYS (To be restarted if SA_RESTART is set)
--- 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
read(3, "", 1024) = 0
exit_group(1) = ?
+++ exited with 1 +++
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: qemu-nbd: Failed to bind socket: No such file or directory
2015-03-28 0:29 ` 白い熊@相撲道
@ 2015-03-28 14:41 ` Ludovic Courtès
2015-04-26 4:07 ` 宋文武
0 siblings, 1 reply; 6+ messages in thread
From: Ludovic Courtès @ 2015-03-28 14:41 UTC (permalink / raw)
To: 白い熊@相撲道; +Cc: guix-devel
白い熊@相撲道 <guix-devel_gnu.org@sumou.com> 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 ‘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?
TIA,
Ludo’.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: qemu-nbd: Failed to bind socket: No such file or directory
2015-03-28 14:41 ` Ludovic Courtès
@ 2015-04-26 4:07 ` 宋文武
2015-04-29 20:28 ` Ludovic Courtès
0 siblings, 1 reply; 6+ messages in thread
From: 宋文武 @ 2015-04-26 4:07 UTC (permalink / raw)
To: Ludovic Courtès,
白い熊@相撲道
Cc: guix-devel
Ludovic Courtès <ludo@gnu.org> writes:
> 白い熊@相撲道 <guix-devel_gnu.org@sumou.com> 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 ‘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.
>
> TIA,
> Ludo’.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: qemu-nbd: Failed to bind socket: No such file or directory
2015-04-26 4:07 ` 宋文武
@ 2015-04-29 20:28 ` Ludovic Courtès
0 siblings, 0 replies; 6+ messages in thread
From: Ludovic Courtès @ 2015-04-29 20:28 UTC (permalink / raw)
To: 宋文武; +Cc: guix-devel
[-- Attachment #1: Type: text/plain, Size: 1124 bytes --]
宋文武 <iyzsong@gmail.com> skribis:
> Ludovic Courtès <ludo@gnu.org> writes:
>
>> 白い熊@相撲道 <guix-devel_gnu.org@sumou.com> 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 ‘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:
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 319 bytes --]
--- 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
[-- Attachment #3: Type: text/plain, Size: 12 bytes --]
Ludo’.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2015-04-29 20:28 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-25 4:26 qemu-nbd: Failed to bind socket: No such file or directory 白い熊@相撲道
2015-03-26 21:24 ` Ludovic Courtès
2015-03-28 0:29 ` 白い熊@相撲道
2015-03-28 14:41 ` Ludovic Courtès
2015-04-26 4:07 ` 宋文武
2015-04-29 20:28 ` Ludovic Courtès
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.