{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/9605","labels_url":"https://api.github.com/repos/docker/docker/issues/9605/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/9605/comments","events_url":"https://api.github.com/repos/docker/docker/issues/9605/events","html_url":"https://github.com/docker/docker/issues/9605","id":51640100,"number":9605,"title":"docker API request hang  ","user":{"login":"wangzhipeng1984","id":10085585,"avatar_url":"https://avatars.githubusercontent.com/u/10085585?v=3","gravatar_id":"","url":"https://api.github.com/users/wangzhipeng1984","html_url":"https://github.com/wangzhipeng1984","followers_url":"https://api.github.com/users/wangzhipeng1984/followers","following_url":"https://api.github.com/users/wangzhipeng1984/following{/other_user}","gists_url":"https://api.github.com/users/wangzhipeng1984/gists{/gist_id}","starred_url":"https://api.github.com/users/wangzhipeng1984/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wangzhipeng1984/subscriptions","organizations_url":"https://api.github.com/users/wangzhipeng1984/orgs","repos_url":"https://api.github.com/users/wangzhipeng1984/repos","events_url":"https://api.github.com/users/wangzhipeng1984/events{/privacy}","received_events_url":"https://api.github.com/users/wangzhipeng1984/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2014-12-11T02:59:58Z","updated_at":"2015-02-23T10:25:42Z","closed_at":null,"body":"Anyone help?\r\nI`m running pressure test through unix socket(create/destroy container and other operations) . After several hours , error info for all docker cli commands:\r\n2014/12/11 10:50:56 Get http:///var/run/docker.sock/v1.13/containers/json: dial unix /var/run/docker.sock: resource temporarily unavailable\r\n\r\nstart command\r\n/usr/bin/docker -d -D -g /home/docker -H unix:///var/run/docker.sock -H tcp://0.0.0.0:61234\r\n\r\nClient version: 1.1.2\r\nClient API version: 1.13\r\nGo version (client): go1.3.3\r\nGit commit (client): d84a070/1.1.2\r\n\r\nlooking at /proc/pid/fd, I saw a lot of occupied socket like below:\r\nlrwx------ 1 root root 64 Dec 10 16:48 99 -> socket:[201660445]\r\nlrwx------ 1 root root 64 Dec 10 16:48 990 -> socket:[1093592034]\r\nlrwx------ 1 root root 64 Dec 10 16:48 991 -> socket:[1102948910]\r\nlrwx------ 1 root root 64 Dec 10 16:48 992 -> socket:[1086811537]\r\nlrwx------ 1 root root 64 Dec 10 16:48 993 -> socket:[1079178152]\r\nlrwx------ 1 root root 64 Dec 10 16:48 994 -> socket:[1093592036]\r\nlrwx------ 1 root root 64 Dec 10 16:48 995 -> socket:[1102935935]\r\nlrwx------ 1 root root 64 Dec 10 16:48 996 -> socket:[1068145904]\r\nlrwx------ 1 root root 64 Dec 10 16:48 997 -> socket:[1102935779]\r\nlrwx------ 1 root root 64 Dec 10 16:48 998 -> socket:[1104897454]"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/75518881","html_url":"https://github.com/docker/docker/issues/9605#issuecomment-75518881","issue_url":"https://api.github.com/repos/docker/docker/issues/9605","id":75518881,"user":{"login":"fxposter","id":109216,"avatar_url":"https://avatars.githubusercontent.com/u/109216?v=3","gravatar_id":"","url":"https://api.github.com/users/fxposter","html_url":"https://github.com/fxposter","followers_url":"https://api.github.com/users/fxposter/followers","following_url":"https://api.github.com/users/fxposter/following{/other_user}","gists_url":"https://api.github.com/users/fxposter/gists{/gist_id}","starred_url":"https://api.github.com/users/fxposter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fxposter/subscriptions","organizations_url":"https://api.github.com/users/fxposter/orgs","repos_url":"https://api.github.com/users/fxposter/repos","events_url":"https://api.github.com/users/fxposter/events{/privacy}","received_events_url":"https://api.github.com/users/fxposter/received_events","type":"User","site_admin":false},"created_at":"2015-02-23T10:25:42Z","updated_at":"2015-02-23T10:25:42Z","body":"I've also tried to do strace on docker daemon.\r\n\r\n```\r\n$ strace -tt -ff -o /tmp/docker.out -p3746\r\nProcess 3746 attached with 13 threads - interrupt to quit\r\n```\r\n\r\nI waited for about 10 seconds, and the stopped it. Here are the results from all files except one:\r\n\r\n```\r\n/tmp/docker.out.3746\r\n10:16:35.945611 futex(0x12a1110, FUTEX_WAIT, 0, NULL\r\n\r\n/tmp/docker.out.3764\r\n10:16:35.945500 futex(0xc2080ac9f0, FUTEX_WAIT, 0, NULL\r\n\r\n/tmp/docker.out.3766\r\n10:16:35.945457 futex(0x129fdc0, FUTEX_WAIT, 0, NULL\r\n\r\n/tmp/docker.out.3768\r\n10:16:35.945416 futex(0xc2080ad2f0, FUTEX_WAIT, 0, NULL\r\n\r\n/tmp/docker.out.3933\r\n10:16:35.945375 futex(0xc208015bf0, FUTEX_WAIT, 0, NULL\r\n\r\n/tmp/docker.out.3990\r\n10:16:35.945334 wait4(44480,\r\n\r\n/tmp/docker.out.6033\r\n10:16:35.945288 futex(0xc2080152f0, FUTEX_WAIT, 0, NULL\r\n\r\n/tmp/docker.out.6036\r\n10:16:35.945242 wait4(44628,\r\n\r\n/tmp/docker.out.6060\r\n10:16:35.945083 wait4(9696,\r\n\r\n/tmp/docker.out.6070\r\n10:16:35.944932 futex(0xc2082ae0f0, FUTEX_WAIT, 0, NULL\r\n\r\n/tmp/docker.out.6073\r\n10:16:35.944886 read(40,\r\n\r\n/tmp/docker.out.6102\r\n10:16:35.944738 wait4(44348,\r\n```\r\n\r\nThe last file looks a bit more interesting:\r\n```\r\n$ cat /tmp/docker.out.3749 | head -n 100\r\n10:16:35.945544 select(0, NULL, NULL, NULL, {0, 5699}) = 0 (Timeout)\r\n10:16:35.951675 epoll_wait(5, {}, 128, 0) = 0\r\n10:16:35.951974 select(0, NULL, NULL, NULL, {0, 10000}) = 0 (Timeout)\r\n10:16:35.962377 epoll_wait(5, {}, 128, 0) = 0\r\n10:16:35.962680 select(0, NULL, NULL, NULL, {0, 10000}) = 0 (Timeout)\r\n10:16:35.972980 epoll_wait(5, {}, 128, 0) = 0\r\n10:16:35.973099 select(0, NULL, NULL, NULL, {0, 10000}) = 0 (Timeout)\r\n10:16:35.983380 epoll_wait(5, {}, 128, 0) = 0\r\n10:16:35.983664 select(0, NULL, NULL, NULL, {0, 10000}) = 0 (Timeout)\r\n10:16:35.994023 epoll_wait(5, {}, 128, 0) = 0\r\n10:16:35.994304 select(0, NULL, NULL, NULL, {0, 10000}) = 0 (Timeout)\r\n10:16:36.004546 epoll_wait(5, {}, 128, 0) = 0\r\n10:16:36.004808 select(0, NULL, NULL, NULL, {0, 10000}) = 0 (Timeout)\r\n10:16:36.015036 epoll_wait(5, {}, 128, 0) = 0\r\n10:16:36.015298 select(0, NULL, NULL, NULL, {0, 10000}) = 0 (Timeout)\r\n10:16:36.025653 epoll_wait(5, {}, 128, 0) = 0\r\n10:16:36.025932 select(0, NULL, NULL, NULL, {0, 10000}) = 0 (Timeout)\r\n10:16:36.036292 epoll_wait(5, {}, 128, 0) = 0\r\n10:16:36.036440 select(0, NULL, NULL, NULL, {0, 10000}) = 0 (Timeout)\r\n10:16:36.046794 epoll_wait(5, {}, 128, 0) = 0\r\n10:16:36.047074 select(0, NULL, NULL, NULL, {0, 10000}) = 0 (Timeout)\r\n10:16:36.057436 epoll_wait(5, {}, 128, 0) = 0\r\n10:16:36.057734 select(0, NULL, NULL, NULL, {0, 10000}) = 0 (Timeout)\r\n10:16:36.067944 epoll_wait(5, {}, 128, 0) = 0\r\n10:16:36.068004 select(0, NULL, NULL, NULL, {0, 10000}) = 0 (Timeout)\r\n10:16:36.078274 epoll_wait(5, {}, 128, 0) = 0\r\n10:16:36.078549 select(0, NULL, NULL, NULL, {0, 10000}) = 0 (Timeout)\r\n10:16:36.088854 epoll_wait(5, {}, 128, 0) = 0\r\n10:16:36.089133 select(0, NULL, NULL, NULL, {0, 10000}) = 0 (Timeout)\r\n10:16:36.099358 epoll_wait(5, {}, 128, 0) = 0\r\n10:16:36.099513 select(0, NULL, NULL, NULL, {0, 10000}) = 0 (Timeout)\r\n10:16:36.109842 epoll_wait(5, {}, 128, 0) = 0\r\n10:16:36.110122 select(0, NULL, NULL, NULL, {0, 10000}) = 0 (Timeout)\r\n10:16:36.120482 epoll_wait(5, {}, 128, 0) = 0\r\n10:16:36.120765 select(0, NULL, NULL, NULL, {0, 10000}) = 0 (Timeout)\r\n10:16:36.130993 epoll_wait(5, {}, 128, 0) = 0\r\n10:16:36.131258 select(0, NULL, NULL, NULL, {0, 10000}) = 0 (Timeout)\r\n10:16:36.141617 epoll_wait(5, {}, 128, 0) = 0\r\n10:16:36.141895 select(0, NULL, NULL, NULL, {0, 10000}) = 0 (Timeout)\r\n10:16:36.152295 epoll_wait(5, {}, 128, 0) = 0\r\n10:16:36.152385 select(0, NULL, NULL, NULL, {0, 10000}) = 0 (Timeout)\r\n10:16:36.162717 epoll_wait(5, {}, 128, 0) = 0\r\n10:16:36.162997 select(0, NULL, NULL, NULL, {0, 10000}) = 0 (Timeout)\r\n10:16:36.173349 epoll_wait(5, {}, 128, 0) = 0\r\n10:16:36.173627 select(0, NULL, NULL, NULL, {0, 10000}) = 0 (Timeout)\r\n10:16:36.183982 epoll_wait(5, {}, 128, 0) = 0\r\n10:16:36.184255 select(0, NULL, NULL, NULL, {0, 10000}) = 0 (Timeout)\r\n10:16:36.194588 epoll_wait(5, {}, 128, 0) = 0\r\n10:16:36.194726 select(0, NULL, NULL, NULL, {0, 10000}) = 0 (Timeout)\r\n10:16:36.205031 epoll_wait(5, {}, 128, 0) = 0\r\n10:16:36.205310 select(0, NULL, NULL, NULL, {0, 10000}) = 0 (Timeout)\r\n10:16:36.215676 epoll_wait(5, {}, 128, 0) = 0\r\n10:16:36.215955 select(0, NULL, NULL, NULL, {0, 10000}) = 0 (Timeout)\r\n10:16:36.226308 epoll_wait(5, {}, 128, 0) = 0\r\n10:16:36.226586 select(0, NULL, NULL, NULL, {0, 10000}) = 0 (Timeout)\r\n10:16:36.236963 epoll_wait(5, {}, 128, 0) = 0\r\n10:16:36.237240 select(0, NULL, NULL, NULL, {0, 10000}) = 0 (Timeout)\r\n10:16:36.247563 epoll_wait(5, {}, 128, 0) = 0\r\n10:16:36.247829 select(0, NULL, NULL, NULL, {0, 10000}) = 0 (Timeout)\r\n10:16:36.258166 epoll_wait(5, {}, 128, 0) = 0\r\n10:16:36.258299 select(0, NULL, NULL, NULL, {0, 10000}) = 0 (Timeout)\r\n10:16:36.268550 epoll_wait(5, {}, 128, 0) = 0\r\n10:16:36.268625 select(0, NULL, NULL, NULL, {0, 10000}) = 0 (Timeout)\r\n10:16:36.278877 epoll_wait(5, {}, 128, 0) = 0\r\n10:16:36.278939 select(0, NULL, NULL, NULL, {0, 10000}) = 0 (Timeout)\r\n10:16:36.289247 epoll_wait(5, {}, 128, 0) = 0\r\n10:16:36.289537 select(0, NULL, NULL, NULL, {0, 10000}) = 0 (Timeout)\r\n10:16:36.299943 epoll_wait(5, {}, 128, 0) = 0\r\n10:16:36.300259 select(0, NULL, NULL, NULL, {0, 10000}) = 0 (Timeout)\r\n10:16:36.310494 epoll_wait(5, {}, 128, 0) = 0\r\n10:16:36.310789 select(0, NULL, NULL, NULL, {0, 10000}) = 0 (Timeout)\r\n10:16:36.321215 epoll_wait(5, {}, 128, 0) = 0\r\n10:16:36.321526 select(0, NULL, NULL, NULL, {0, 10000}) = 0 (Timeout)\r\n10:16:36.331926 epoll_wait(5, {}, 128, 0) = 0\r\n10:16:36.332096 select(0, NULL, NULL, NULL, {0, 10000}) = 0 (Timeout)\r\n10:16:36.342479 epoll_wait(5, {}, 128, 0) = 0\r\n10:16:36.342794 select(0, NULL, NULL, NULL, {0, 10000}) = 0 (Timeout)\r\n10:16:36.353198 epoll_wait(5, {}, 128, 0) = 0\r\n10:16:36.353514 select(0, NULL, NULL, NULL, {0, 10000}) = 0 (Timeout)\r\n10:16:36.363774 epoll_wait(5, {}, 128, 0) = 0\r\n10:16:36.363995 select(0, NULL, NULL, NULL, {0, 10000}) = 0 (Timeout)\r\n10:16:36.374248 epoll_wait(5, {}, 128, 0) = 0\r\n10:16:36.374333 select(0, NULL, NULL, NULL, {0, 10000}) = 0 (Timeout)\r\n10:16:36.384555 epoll_wait(5, {}, 128, 0) = 0\r\n10:16:36.384821 select(0, NULL, NULL, NULL, {0, 10000}) = 0 (Timeout)\r\n10:16:36.395174 epoll_wait(5, {}, 128, 0) = 0\r\n10:16:36.395524 select(0, NULL, NULL, NULL, {0, 10000}) = 0 (Timeout)\r\n10:16:36.405982 epoll_wait(5, {}, 128, 0) = 0\r\n10:16:36.406264 select(0, NULL, NULL, NULL, {0, 10000}) = 0 (Timeout)\r\n10:16:36.416545 epoll_wait(5, {}, 128, 0) = 0\r\n10:16:36.416846 select(0, NULL, NULL, NULL, {0, 10000}) = 0 (Timeout)\r\n10:16:36.427103 epoll_wait(5, {}, 128, 0) = 0\r\n10:16:36.427399 select(0, NULL, NULL, NULL, {0, 10000}) = 0 (Timeout)\r\n10:16:36.437814 epoll_wait(5, {}, 128, 0) = 0\r\n10:16:36.438004 select(0, NULL, NULL, NULL, {0, 10000}) = 0 (Timeout)\r\n10:16:36.448333 epoll_wait(5, {}, 128, 0) = 0\r\n10:16:36.448465 select(0, NULL, NULL, NULL, {0, 10000}) = 0 (Timeout)\r\n10:16:36.458683 epoll_wait(5, {}, 128, 0) = 0\r\n10:16:36.458749 select(0, NULL, NULL, NULL, {0, 10000}) = 0 (Timeout)\r\n10:16:36.469022 epoll_wait(5, {}, 128, 0) = 0\r\n```\r\n\r\nCan anyone dig into this stuff? The use case is - containers are working for some period of time, usually a couple of days and if I try to restart them - I get this behavior."}}