Skip to content

Docker exec fails with status 129 and no message #18948

@lox

Description

@lox

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.

I'm currently using devicemapper, but the same issue occurred under AUFS and overlayfs.

This is a clean install of Ubuntu 14.04.3 on AWS, with docker experimental freshly installed via curl -sSL https://experimental.docker.com/ | sh.

ubuntu@ip-10-0-0-54:~$ docker exec -it lox_s3ql_1 bash
DEBU[0019] Calling POST /v1.22/containers/lox_s3ql_1/exec 
DEBU[0019] POST /v1.22/containers/lox_s3ql_1/exec   
DEBU[0019] form data: {"AttachStderr":true,"AttachStdin":true,"AttachStdout":true,"Cmd":["bash"],"Container":"lox_s3ql_1","Detach":false,"Privileged":false,"Tty":true,"User":""} 
DEBU[0019] Calling POST /v1.22/exec/19d9a03caa657a5bce605323e3aed764b071023c2ce59f27e37ad4aa8d7f2c1a/start 
DEBU[0019] POST /v1.22/exec/19d9a03caa657a5bce605323e3aed764b071023c2ce59f27e37ad4aa8d7f2c1a/start 
DEBU[0019] form data: {"AttachStderr":true,"AttachStdin":true,"AttachStdout":true,"Cmd":["bash"],"Container":"lox_s3ql_1","Detach":false,"Privileged":false,"Tty":true,"User":""} 
DEBU[0019] starting exec command 19d9a03caa657a5bce605323e3aed764b071023c2ce59f27e37ad4aa8d7f2c1a in container 1de7586cbd51dd2b78120d6318eeba2e64852cdd8b658124789f62cef0723634 
DEBU[0019] attach: stdin: begin                         
DEBU[0019] attach: stdout: begin                        
DEBU[0019] Calling POST /v1.22/exec/19d9a03caa657a5bce605323e3aed764b071023c2ce59f27e37ad4aa8d7f2c1a/resize 
DEBU[0019] POST /v1.22/exec/19d9a03caa657a5bce605323e3aed764b071023c2ce59f27e37ad4aa8d7f2c1a/resize?h=57&w=206 
DEBU[0020] Exec task in container 1de7586cbd51dd2b78120d6318eeba2e64852cdd8b658124789f62cef0723634 exited with code 129 
DEBU[0020] attach: stdout: end                          
DEBU[0020] attach: stdin: end                           
DEBU[0020] Calling GET /v1.22/exec/19d9a03caa657a5bce605323e3aed764b071023c2ce59f27e37ad4aa8d7f2c1a/json 
DEBU[0020] GET /v1.22/exec/19d9a03caa657a5bce605323e3aed764b071023c2ce59f27e37ad4aa8d7f2c1a/json 
DEBU[0020] Closing buffered stdin pipe  
Exited with 129
ubuntu@ip-10-0-0-54:~$ uname -a
Linux 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

buntu@ip-10-0-0-54:~$ docker info
DEBU[0089] Calling GET /v1.22/info                      
DEBU[0089] GET /v1.22/info                              
Containers: 6
Images: 30
Server Version: 1.10.0-dev
Storage Driver: devicemapper
 Pool Name: docker-202:1-152966-pool
 Pool Blocksize: 65.54 kB
 Base Device Size: 107.4 GB
 Backing Filesystem: ext4
 Data file: /dev/loop0
 Metadata file: /dev/loop1
 Data Space Used: 4.52 GB
 Data Space Total: 107.4 GB
 Data Space Available: 1.827 GB
 Metadata Space Used: 6.308 MB
 Metadata Space Total: 2.147 GB
 Metadata Space Available: 1.827 GB
 Udev Sync Supported: true
 Deferred Removal Enabled: false
 Deferred Deletion Enabled: false
 Deferred Deleted Device Count: 0
 Data loop file: /var/lib/docker/0.0/devicemapper/devicemapper/data
 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.
 Metadata loop file: /var/lib/docker/0.0/devicemapper/devicemapper/metadata
 Library Version: 1.02.77 (2012-10-15)
Execution Driver: native-0.2
Logging Driver: json-file
Plugins: 
 Volume: local
 Network: host bridge null
Kernel Version: 3.13.0-48-generic
Operating System: Ubuntu 14.04.2 LTS
OSType: linux
Architecture: x86_64
CPUs: 1
Total Memory: 3.661 GiB
Name: ip-10-0-0-54
ID: 5BJK:K5XT:TU3Z:SEYM:TLRT:7WV6:G3V4:P4Z7:GAOG:H4VK:SAP4:YEAI
Debug mode (server): true
 File Descriptors: 45
 Goroutines: 66
 System Time: 2015-12-29T04:18:26.982207505Z
 EventsListeners: 0
 Init SHA1: 63f95985c4c8aa697c678e4fcd7aba9a7c2de4de
 Init Path: /usr/lib/docker/dockerinit
 Docker Root Dir: /var/lib/docker/0.0
WARNING: No swap limit support
Experimental: true
ubuntu@ip-10-0-0-54:~$ uname -a
Linux 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

Metadata

Metadata

Assignees

Labels

area/security/apparmorkind/bugBugs are bugs. The cause may or may not be known at triage time so debugging may be needed.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions