V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
my3157
V2EX  ›  Docker

docker-compose 遇到一个很奇怪的问题, 执行任何 sub command 报错

  •  
  •   my3157 · 2018-06-08 16:23:26 +08:00 · 4892 次点击
    这是一个创建于 2351 天前的主题,其中的信息可能已经有所发展或是发生改变。

    mkdir("/tmp/_MEI6XJ3iU", 0700) = 0 说明能创建目录, 而且确实目录创建成功了

    但是无法写文件, /tmp/_MEI6XJ3iU/_bisect.so 这个文件也创建成功了, 但是 empty

    # strace docker-compose
    execve("/usr/local/bin/docker-compose", ["docker-compose"], [/* 25 vars */]) = 0
    brk(0)                                  = 0xfd5000
    mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8148074000
    access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
    open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
    fstat(3, {st_mode=S_IFREG|0644, st_size=30395, ...}) = 0
    mmap(NULL, 30395, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f814806c000
    close(3)                                = 0
    open("/lib64/libdl.so.2", 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\16\0\0\0\0\0\0"..., 832) = 832
    fstat(3, {st_mode=S_IFREG|0755, st_size=19520, ...}) = 0
    mmap(NULL, 2109744, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f8147c50000
    mprotect(0x7f8147c53000, 2093056, PROT_NONE) = 0
    mmap(0x7f8147e52000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) =                                                                                                                                                                                                 0x7f8147e52000
    close(3)                                = 0
    open("/lib64/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\0p!\0\0\0\0\0\0"..., 832) = 832
    fstat(3, {st_mode=S_IFREG|0755, st_size=90632, ...}) = 0
    mmap(NULL, 2183688, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f8147a3a000
    mprotect(0x7f8147a4f000, 2093056, PROT_NONE) = 0
    mmap(0x7f8147c4e000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x14000) =                                                                                                                                                                                                 0x7f8147c4e000
    close(3)                                = 0
    open("/lib64/libc.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 \34\2\0\0\0\0\0"..., 832) = 832
    fstat(3, {st_mode=S_IFREG|0755, st_size=2107816, ...}) = 0
    mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f814806b000
    mmap(NULL, 3932736, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f8147679000
    mprotect(0x7f814782f000, 2097152, PROT_NONE) = 0
    mmap(0x7f8147a2f000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1b6000)                                                                                                                                                                                                 = 0x7f8147a2f000
    mmap(0x7f8147a35000, 16960, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7                                                                                                                                                                                                f8147a35000
    close(3)                                = 0
    mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8148069000
    arch_prctl(ARCH_SET_FS, 0x7f8148069740) = 0
    mprotect(0x7f8147a2f000, 16384, PROT_READ) = 0
    mprotect(0x7f8147c4e000, 4096, PROT_READ) = 0
    mprotect(0x7f8147e52000, 4096, PROT_READ) = 0
    mprotect(0x7f8148075000, 4096, PROT_READ) = 0
    munmap(0x7f814806c000, 30395)           = 0
    brk(0)                                  = 0xfd5000
    brk(0xffa000)                           = 0xffa000
    brk(0)                                  = 0xffa000
    readlink("/proc/self/exe", "/usr/local/bin/docker-compose", 4096) = 29
    open("/usr/local/bin/docker-compose", O_RDONLY) = 3
    fstat(3, {st_mode=S_IFREG|0755, st_size=8277880, ...}) = 0
    mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8148073000
    fstat(3, {st_mode=S_IFREG|0755, st_size=8277880, ...}) = 0
    lseek(3, 8273920, SEEK_SET)             = 8273920
    read(3, "\0\0\0 \0\21\351\234\0\1\241\223\0\4a:\1b_ssl.so\0\0\0\0\0\0\0"..., 3960) = 3960
    lseek(3, 8269824, SEEK_SET)             = 8269824
    read(3, "\0\0\0iVP\26\0i\375/\0\0(\2\0\0\0t\5\0\0\0shlex(\3\0\0"..., 4096) = 4096
    read(3, "\0\0\0 \0\21\351\234\0\1\241\223\0\4a:\1b_ssl.so\0\0\0\0\0\0\0"..., 4096) = 3960
    lseek(3, 8269824, SEEK_SET)             = 8269824
    read(3, "\0\0\0iVP\26\0i\375/\0\0(\2\0\0\0t\5\0\0\0shlex(\3\0\0"..., 4096) = 4096
    read(3, "\0\0\0 \0\21\351\234\0\1\241\223\0\4a:\1b_ssl.so\0\0\0\0\0\0\0"..., 4096) = 3960
    close(3)                                = 0
    munmap(0x7f8148073000, 4096)            = 0
    open("/usr/local/bin/docker-compose", O_RDONLY) = 3
    fstat(3, {st_mode=S_IFREG|0755, st_size=8277880, ...}) = 0
    mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8148073000
    lseek(3, 40960, SEEK_SET)               = 40960
    read(3, "\267\240\17\324\342\244\334\304\364v6\315?\17#O~\260W\365\2005\325\362\344\220\30\264\310\                                                                                                                                                                                                216\250\\"..., 1883) = 1883
    read(3, "8;\330\25\21M)\327t\2171\233\31\205[q\223\3739\1\32>\307WA\24\264\376\\!]\22"..., 8192) =                                                                                                                                                                                                 8192
    read(3, "\31k\377Tka\6\227\206\325Hg\262\v\243\317\374\227\341\205]<\35\215\235\307\242\233\331\364                                                                                                                                                                                                \323\347"..., 4096) = 4096
    write(2, "Error -3 from inflate: incorrect"..., 46Error -3 from inflate: incorrect header check
    ) = 46
    write(2, "Error decompressing _bisect.so\n", 31Error decompressing _bisect.so
    ) = 31
    getpid()                                = 1408
    mkdir("/tmp/_MEI6XJ3iU", 0700)          = 0
    stat("/tmp/_MEI6XJ3iU/_bisect.so", 0x7ffe460f6080) = -1 ENOENT (No such file or directory)
    open("/tmp/_MEI6XJ3iU/_bisect.so", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 4
    fstat(4, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
    mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8148072000
    write(4, NULL, 32768)                   = -1 EFAULT (Bad address)
    write(2, "Failed to write all bytes for _b"..., 41Failed to write all bytes for _bisect.so
    ) = 41
    exit_group(-1)                          = ?
    +++ exited with 255 +++
    
    
    # cat /etc/redhat-release
    CentOS Linux release 7.2.1511 (Core)
    
    # df -Th
    Filesystem     Type      Size  Used Avail Use% Mounted on
    /dev/vda1      ext4       50G   15G   33G  31% /
    devtmpfs       devtmpfs  3.9G     0  3.9G   0% /dev
    tmpfs          tmpfs     3.9G   20K  3.9G   1% /dev/shm
    tmpfs          tmpfs     3.9G   89M  3.8G   3% /run
    tmpfs          tmpfs     3.9G     0  3.9G   0% /sys/fs/cgroup
    tmpfs          tmpfs     783M     0  783M   0% /run/user/0
    
    
    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5286 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 03:46 · PVG 11:46 · LAX 19:46 · JFK 22:46
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.