{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/18948","labels_url":"https://api.github.com/repos/docker/docker/issues/18948/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/18948/comments","events_url":"https://api.github.com/repos/docker/docker/issues/18948/events","html_url":"https://github.com/docker/docker/issues/18948","id":124161416,"number":18948,"title":"Docker exec fails with status 129 and no message","user":{"login":"lox","id":15758,"avatar_url":"https://avatars.githubusercontent.com/u/15758?v=3","gravatar_id":"","url":"https://api.github.com/users/lox","html_url":"https://github.com/lox","followers_url":"https://api.github.com/users/lox/followers","following_url":"https://api.github.com/users/lox/following{/other_user}","gists_url":"https://api.github.com/users/lox/gists{/gist_id}","starred_url":"https://api.github.com/users/lox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lox/subscriptions","organizations_url":"https://api.github.com/users/lox/orgs","repos_url":"https://api.github.com/users/lox/repos","events_url":"https://api.github.com/users/lox/events{/privacy}","received_events_url":"https://api.github.com/users/lox/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels/kind/bug","name":"kind/bug","color":"FF8C94"}],"state":"open","locked":false,"assignee":{"login":"jfrazelle","id":1445228,"avatar_url":"https://avatars.githubusercontent.com/u/1445228?v=3","gravatar_id":"","url":"https://api.github.com/users/jfrazelle","html_url":"https://github.com/jfrazelle","followers_url":"https://api.github.com/users/jfrazelle/followers","following_url":"https://api.github.com/users/jfrazelle/following{/other_user}","gists_url":"https://api.github.com/users/jfrazelle/gists{/gist_id}","starred_url":"https://api.github.com/users/jfrazelle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfrazelle/subscriptions","organizations_url":"https://api.github.com/users/jfrazelle/orgs","repos_url":"https://api.github.com/users/jfrazelle/repos","events_url":"https://api.github.com/users/jfrazelle/events{/privacy}","received_events_url":"https://api.github.com/users/jfrazelle/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/docker/docker/milestones/44","html_url":"https://github.com/docker/docker/milestones/1.10.0","labels_url":"https://api.github.com/repos/docker/docker/milestones/44/labels","id":1351533,"number":44,"title":"1.10.0","description":"Code freeze / feature freeze January 14th 2016\r\nPlanned release: February 4th, 2016\r\nhttps://github.com/docker/docker/wiki","creator":{"login":"thaJeztah","id":1804568,"avatar_url":"https://avatars.githubusercontent.com/u/1804568?v=3","gravatar_id":"","url":"https://api.github.com/users/thaJeztah","html_url":"https://github.com/thaJeztah","followers_url":"https://api.github.com/users/thaJeztah/followers","following_url":"https://api.github.com/users/thaJeztah/following{/other_user}","gists_url":"https://api.github.com/users/thaJeztah/gists{/gist_id}","starred_url":"https://api.github.com/users/thaJeztah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thaJeztah/subscriptions","organizations_url":"https://api.github.com/users/thaJeztah/orgs","repos_url":"https://api.github.com/users/thaJeztah/repos","events_url":"https://api.github.com/users/thaJeztah/events{/privacy}","received_events_url":"https://api.github.com/users/thaJeztah/received_events","type":"User","site_admin":false},"open_issues":12,"closed_issues":211,"state":"open","created_at":"2015-10-12T18:21:55Z","updated_at":"2016-01-16T08:33:34Z","due_on":"2016-01-14T08:00:00Z","closed_at":null},"comments":20,"created_at":"2015-12-29T04:23:08Z","updated_at":"2016-01-16T16:48:21Z","closed_at":null,"body":"I'm trying to debug an issue where exec seems to be broken on the latest experimental build. The symptoms are any command seems to fail when exec'd in any container. This works under 1.9. \r\n\r\nI'm currently using devicemapper, but the same issue occurred under AUFS and overlayfs.\r\n\r\nThis is a clean install of Ubuntu 14.04.3 on AWS, with docker experimental freshly installed via `curl -sSL https://experimental.docker.com/ | sh`.\r\n\r\n```bash\r\nubuntu@ip-10-0-0-54:~$ docker exec -it lox_s3ql_1 bash\r\nDEBU[0019] Calling POST /v1.22/containers/lox_s3ql_1/exec \r\nDEBU[0019] POST /v1.22/containers/lox_s3ql_1/exec   \r\nDEBU[0019] form data: {\"AttachStderr\":true,\"AttachStdin\":true,\"AttachStdout\":true,\"Cmd\":[\"bash\"],\"Container\":\"lox_s3ql_1\",\"Detach\":false,\"Privileged\":false,\"Tty\":true,\"User\":\"\"} \r\nDEBU[0019] Calling POST /v1.22/exec/19d9a03caa657a5bce605323e3aed764b071023c2ce59f27e37ad4aa8d7f2c1a/start \r\nDEBU[0019] POST /v1.22/exec/19d9a03caa657a5bce605323e3aed764b071023c2ce59f27e37ad4aa8d7f2c1a/start \r\nDEBU[0019] form data: {\"AttachStderr\":true,\"AttachStdin\":true,\"AttachStdout\":true,\"Cmd\":[\"bash\"],\"Container\":\"lox_s3ql_1\",\"Detach\":false,\"Privileged\":false,\"Tty\":true,\"User\":\"\"} \r\nDEBU[0019] starting exec command 19d9a03caa657a5bce605323e3aed764b071023c2ce59f27e37ad4aa8d7f2c1a in container 1de7586cbd51dd2b78120d6318eeba2e64852cdd8b658124789f62cef0723634 \r\nDEBU[0019] attach: stdin: begin                         \r\nDEBU[0019] attach: stdout: begin                        \r\nDEBU[0019] Calling POST /v1.22/exec/19d9a03caa657a5bce605323e3aed764b071023c2ce59f27e37ad4aa8d7f2c1a/resize \r\nDEBU[0019] POST /v1.22/exec/19d9a03caa657a5bce605323e3aed764b071023c2ce59f27e37ad4aa8d7f2c1a/resize?h=57&w=206 \r\nDEBU[0020] Exec task in container 1de7586cbd51dd2b78120d6318eeba2e64852cdd8b658124789f62cef0723634 exited with code 129 \r\nDEBU[0020] attach: stdout: end                          \r\nDEBU[0020] attach: stdin: end                           \r\nDEBU[0020] Calling GET /v1.22/exec/19d9a03caa657a5bce605323e3aed764b071023c2ce59f27e37ad4aa8d7f2c1a/json \r\nDEBU[0020] GET /v1.22/exec/19d9a03caa657a5bce605323e3aed764b071023c2ce59f27e37ad4aa8d7f2c1a/json \r\nDEBU[0020] Closing buffered stdin pipe  \r\nExited with 129\r\n```\r\n\r\n```bash\r\nubuntu@ip-10-0-0-54:~$ uname -a\r\nLinux ip-10-0-0-54 3.13.0-48-generic #80-Ubuntu SMP Thu Mar 12 11:16:15 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux\r\n\r\nbuntu@ip-10-0-0-54:~$ docker info\r\nDEBU[0089] Calling GET /v1.22/info                      \r\nDEBU[0089] GET /v1.22/info                              \r\nContainers: 6\r\nImages: 30\r\nServer Version: 1.10.0-dev\r\nStorage Driver: devicemapper\r\n Pool Name: docker-202:1-152966-pool\r\n Pool Blocksize: 65.54 kB\r\n Base Device Size: 107.4 GB\r\n Backing Filesystem: ext4\r\n Data file: /dev/loop0\r\n Metadata file: /dev/loop1\r\n Data Space Used: 4.52 GB\r\n Data Space Total: 107.4 GB\r\n Data Space Available: 1.827 GB\r\n Metadata Space Used: 6.308 MB\r\n Metadata Space Total: 2.147 GB\r\n Metadata Space Available: 1.827 GB\r\n Udev Sync Supported: true\r\n Deferred Removal Enabled: false\r\n Deferred Deletion Enabled: false\r\n Deferred Deleted Device Count: 0\r\n Data loop file: /var/lib/docker/0.0/devicemapper/devicemapper/data\r\n WARNING: Usage of loopback devices is strongly discouraged for production use. Either use `--storage-opt dm.thinpooldev` or use `--storage-opt dm.no_warn_on_loop_devices=true` to suppress this warning.\r\n Metadata loop file: /var/lib/docker/0.0/devicemapper/devicemapper/metadata\r\n Library Version: 1.02.77 (2012-10-15)\r\nExecution Driver: native-0.2\r\nLogging Driver: json-file\r\nPlugins: \r\n Volume: local\r\n Network: host bridge null\r\nKernel Version: 3.13.0-48-generic\r\nOperating System: Ubuntu 14.04.2 LTS\r\nOSType: linux\r\nArchitecture: x86_64\r\nCPUs: 1\r\nTotal Memory: 3.661 GiB\r\nName: ip-10-0-0-54\r\nID: 5BJK:K5XT:TU3Z:SEYM:TLRT:7WV6:G3V4:P4Z7:GAOG:H4VK:SAP4:YEAI\r\nDebug mode (server): true\r\n File Descriptors: 45\r\n Goroutines: 66\r\n System Time: 2015-12-29T04:18:26.982207505Z\r\n EventsListeners: 0\r\n Init SHA1: 63f95985c4c8aa697c678e4fcd7aba9a7c2de4de\r\n Init Path: /usr/lib/docker/dockerinit\r\n Docker Root Dir: /var/lib/docker/0.0\r\nWARNING: No swap limit support\r\nExperimental: true\r\nubuntu@ip-10-0-0-54:~$ uname -a\r\nLinux ip-10-0-0-54 3.13.0-48-generic #80-Ubuntu SMP Thu Mar 12 11:16:15 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux\r\n```\r\n\r\n "},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/172226287","html_url":"https://github.com/docker/docker/issues/18948#issuecomment-172226287","issue_url":"https://api.github.com/repos/docker/docker/issues/18948","id":172226287,"user":{"login":"jfrazelle","id":1445228,"avatar_url":"https://avatars.githubusercontent.com/u/1445228?v=3","gravatar_id":"","url":"https://api.github.com/users/jfrazelle","html_url":"https://github.com/jfrazelle","followers_url":"https://api.github.com/users/jfrazelle/followers","following_url":"https://api.github.com/users/jfrazelle/following{/other_user}","gists_url":"https://api.github.com/users/jfrazelle/gists{/gist_id}","starred_url":"https://api.github.com/users/jfrazelle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfrazelle/subscriptions","organizations_url":"https://api.github.com/users/jfrazelle/orgs","repos_url":"https://api.github.com/users/jfrazelle/repos","events_url":"https://api.github.com/users/jfrazelle/events{/privacy}","received_events_url":"https://api.github.com/users/jfrazelle/received_events","type":"User","site_admin":false},"created_at":"2016-01-16T16:48:20Z","updated_at":"2016-01-16T16:48:20Z","body":"Also you aren't getting anything in dmesg from what I can tell that shows\nthe policy is blocking it. I think just rebooting your server worked :P\n\nOn Saturday, January 16, 2016, Joan <notifications@github.com> wrote:\n\n> @skairali <https://github.com/skairali>\n>\n> in /etc/apparmor.d I have 2 profiles:\n>\n> /etc/apparmor.d/docker\n> /etc/apparmor.d/docker-engine\n>\n> @skairali <https://github.com/skairali> The new, docker-engine docker\n> policy has entry for `/dev/pts/[0-9]* rw.\n>\n> Test:\n>\n>    - remove the docker-engine\n>    - reboot THEN: Docker exec Works!\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/docker/docker/issues/18948#issuecomment-172206020>.\n>\n"}}