compose icon indicating copy to clipboard operation
compose copied to clipboard

Cannot find child for

Open gastonmorixe opened this issue 11 years ago • 35 comments

Guys,

After upgrading to v1.2 and docker v1.6 I am getting "Cannot find child for XXX" manually forced to fire the up command twice and in the second time it goes up ok.

Any idea?

Thanks

gastonmorixe avatar Apr 17 '15 02:04 gastonmorixe

Hi all,

I had the same problem. The same solution worked for me, too. Any official fix in sight?

Thx

thomsch98 avatar Apr 20 '15 09:04 thomsch98

Can you provide a reproducible case?

aanand avatar Apr 21 '15 11:04 aanand

@aanand not yet, totally random

gastonmorixe avatar Apr 21 '15 19:04 gastonmorixe

I'm also seeing this issue. Seems fairly random, and running a second time works fine.

gchp avatar Apr 24 '15 10:04 gchp

I'm experiencing the same issue. Unable do it repeatably though.

robwithhair avatar May 20 '15 10:05 robwithhair

I have the same issue. I need to consistently type any docker-compose command twice, and second time always works. This started with an update from Ubuntu 14.10 to 15.04 and happens with Compose 1.1 as well as 1.2 on Docker 1.5 as well as 1.6.2 while working on a Rails project.

Tuuleh avatar May 21 '15 11:05 Tuuleh

Same problem here. It started after switching over to the overlayfs storage driver. It happens when starting single containers with docker run, too. So it doesn't seem to be related to docker-compose. (EDIT: Using Docker 1.6.2 w/ Compose 1.2.0.)

djmaze avatar May 23 '15 09:05 djmaze

Same here and similarly it happens kind of randomly.

Docker version 1.6.2, build 7c8fca2

fikovnik avatar Jun 02 '15 23:06 fikovnik

Happens with docker/docker using 1.6.2, AUFS, so this isn't necessarily a compose issue.

vagrant@docker:~$ docker info
Containers: 1
Images: 25
Storage Driver: aufs
 Root Dir: /var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 27
 Dirperm1 Supported: false
Execution Driver: native-0.2
Kernel Version: 3.13.0-36-generic
Operating System: Ubuntu 14.04.2 LTS
CPUs: 1
Total Memory: 3.861 GiB
Name: docker.local
ID: TRTV:DEPM:FXLY:EXRJ:NIAT:IA4W:73YW:HLN2:KZ2N:2LRW:FLUY:QU5I
Username: tonyhb
Registry: [https://index.docker.io/v1/]
WARNING: No swap limit support

Looking in the codebase now and it seems as though it's a transient GraphDB error. Will edit with any more info I can find, and any solutions.

Edit: This also happened after a fresh install — that is, no images were downloaded locally, so executing docker run downloaded the image then attempted to spawn a new container. It seems as though this might be part of the trigger... if the image is downloaded it runs fine. Will test.

tonyhb avatar Jun 03 '15 00:06 tonyhb

Ran into this with a fresh install of 1.6.2 and AUFS. First container failed with Cannot find child for /blah. Second time worked fine.

$ docker info
Containers: 0
Images: 5
Storage Driver: aufs
 Root Dir: /var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 5
 Dirperm1 Supported: true
Execution Driver: native-0.2
Kernel Version: 3.19.0-18-generic
Operating System: Ubuntu 14.04.1 LTS
CPUs: 2
Total Memory: 3.858 GiB
Name: ip-10-0-0-76
ID: U2K3:JGPN:POVH:ZERB:C26E:VFXC:ZNFX:T7XM:JMRJ:WT4M:7WDN:OIS3
WARNING: No swap limit support

Out with devicemapper issues in with aufs issues I guess...

MrMMorris avatar Jun 03 '15 04:06 MrMMorris

Seems to be doing it for ever 2nd or 3rd container. No compose so this may need to be moved to docker/docker.

ugh.

I'm using Ansible which I think would just run as opposed to pull then run which might fit the trigger @tonyhb mentioned

MrMMorris avatar Jun 03 '15 05:06 MrMMorris

I'm finding for compose 1.3.0RC1 & docker 1.6.2 that instead of working the 2nd time after a Cannot find child, compose crashes:

Traceback (most recent call last):
  File "<string>", line 3, in <module>
  File "/code/build/docker-compose/out00-PYZ.pyz/compose.cli.main", line 32, in main
  File "/code/build/docker-compose/out00-PYZ.pyz/compose.cli.docopt_command", line 21, in sys_dispatch
  File "/code/build/docker-compose/out00-PYZ.pyz/compose.cli.command", line 34, in dispatch
  File "/code/build/docker-compose/out00-PYZ.pyz/compose.cli.docopt_command", line 24, in dispatch
  File "/code/build/docker-compose/out00-PYZ.pyz/compose.cli.command", line 66, in perform_command
  File "/code/build/docker-compose/out00-PYZ.pyz/compose.cli.main", line 470, in up
  File "/code/build/docker-compose/out00-PYZ.pyz/compose.project", line 221, in up
  File "/code/build/docker-compose/out00-PYZ.pyz/compose.project", line 261, in _get_convergence_plans
  File "/code/build/docker-compose/out00-PYZ.pyz/compose.service", line 279, in convergence_plan
  File "/code/build/docker-compose/out00-PYZ.pyz/compose.service", line 105, in containers
  File "/code/build/docker-compose/out00-PYZ.pyz/compose.container", line 28, in from_ps
TypeError: coercing to Unicode: need string or buffer, NoneType found

1.2 is working for me 2nd time around.

ajnisbet avatar Jun 08 '15 04:06 ajnisbet

Gonna investigate this some more with a debug build. Seems to be an issue with Docker's graph database.

tonyhb avatar Jun 09 '15 22:06 tonyhb

I had the same problem. Happens with docker/docker using 1.6.2, AUFS.

anarcher avatar Jun 18 '15 12:06 anarcher

I'm getting the same stack trace as ajnisbet; I'm usually have to restart the docker service as a temporary solution on 1.3rc2.

brendangibat avatar Jun 18 '15 13:06 brendangibat

Seems to be to do with the upgrade paths from docker engine ~1.2 to ~1.6. Need more info to find out what's going on.

tonyhb avatar Jun 18 '15 18:06 tonyhb

I am finding this happening using -s devicemapper, so I don't think this is AUFS related.

tarragon avatar Jun 19 '15 01:06 tarragon

Also seeing this issue, not using compose, but there doesn't seem to be an issue in docker/docker for this.

Details:

  • happened after upgrading from 1.6.2 to 1.7.0
  • blew away /var/lib/docker/devicemapper after shutting down 1.6 but before starting 1.7
  • switched --storage-driver from devicemapper to aufs
  • re-pulled all images
  • this happens on the first start of each uniquely named container, the second start of that container name works fine

Error from docker daemon: ERRO[0371] Handler for POST /containers/{name:.*}/start returned error: Cannot start container f11a456adda4799ed211e1fa25bc7e84a45ee843335cadc19c613d1da6487e73: Cannot find child for /<container-name>

drags avatar Jun 23 '15 02:06 drags

I'm having this problem with AUFS docker 1.7.0 and docker-compose 1.3.1

Traceback (most recent call last):
  File "<string>", line 3, in <module>
  File "/code/build/docker-compose/out00-PYZ.pyz/compose.cli.main", line 32, in main
  File "/code/build/docker-compose/out00-PYZ.pyz/compose.cli.docopt_command", line 21, in sys_dispatch
  File "/code/build/docker-compose/out00-PYZ.pyz/compose.cli.command", line 34, in dispatch
  File "/code/build/docker-compose/out00-PYZ.pyz/compose.cli.docopt_command", line 24, in dispatch
  File "/code/build/docker-compose/out00-PYZ.pyz/compose.cli.command", line 66, in perform_command
  File "/code/build/docker-compose/out00-PYZ.pyz/compose.cli.main", line 470, in up
  File "/code/build/docker-compose/out00-PYZ.pyz/compose.project", line 221, in up
  File "/code/build/docker-compose/out00-PYZ.pyz/compose.project", line 261, in _get_convergence_plans
  File "/code/build/docker-compose/out00-PYZ.pyz/compose.service", line 279, in convergence_plan
  File "/code/build/docker-compose/out00-PYZ.pyz/compose.service", line 105, in containers
  File "/code/build/docker-compose/out00-PYZ.pyz/compose.container", line 28, in from_ps
TypeError: coercing to Unicode: need string or buffer, NoneType found
Containers: 12
Images: 154
Storage Driver: aufs
 Root Dir: /var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 178
 Dirperm1 Supported: false
Execution Driver: native-0.2
Logging Driver: json-file
Kernel Version: 3.13.0-53-generic
Operating System: Ubuntu 14.04.2 LTS
CPUs: 2
Total Memory: 3.859 GiB
Name: ip-10-0-10-113
ID: 5MNJ:Z4BD:F65D:MFJR:I4KW:QCKA:UEFJ:3647:UMUH:4I7Y:ZIOF:BFXO
WARNING: No swap limit support

sstarcher avatar Jun 23 '15 23:06 sstarcher

Same problem on my side. Using RPi with kernel 4.0.7 + AUFS patches and storage driver aufs. First run creates container, but without name. Only second attempt to start it works correctly.

docker info
Containers: 6
Images: 3
Storage Driver: aufs
Root Dir: /var/lib/docker/aufs
Backing Filesystem: extfs
Dirs: 15
Dirperm1 Supported: true
Execution Driver: native-0.2
Kernel Version: 4.0.7-v7+
Operating System: Raspbian GNU/Linux 7 (wheezy)
CPUs: 4
Total Memory: 961.6 MiB
Name: malina
 ID: OFVF:OUPI:2WPA:J64C:N22F:NLOL:MUK4:ZFZC:KI4F:4HTD:QBBQ:43HQ
Debug mode (server): true
Debug mode (client): false
Fds: 25
Goroutines: 39
System Time: Wed Jul  1 21:50:55 CEST 2015
EventsListeners: 0
Init SHA1: 9183200cc532e132ff6eac70172636ccc5a33724
Init Path: /usr/lib/docker/dockerinit
Docker Root Dir: /var/lib/docker

zette avatar Jul 01 '15 19:07 zette