Lots o errors ECS AMI

Ultimately I’m trying to get my first rancheros instance to connect to ECS (0.5.0 ECS optimized AMI). The ECS agent log fails with the following:

[rancher@ip-10-52-35-135 ~]$ sudo ros service logs ecs-agent
WARN[0000] The ECS_AGENT_VERSION variable is not set. Substituting a blank string.
ecs-agent_1 | 2016-08-19T20:26:39Z [INFO] Starting Agent: Amazon ECS Agent - v1.12.0 (895f3c1)
ecs-agent_1 | 2016-08-19T20:26:39Z [INFO] Loading configuration
ecs-agent_1 | 2016-08-19T20:26:39Z [WARN] Invalid value for task cleanup duration, will be overridden to 3h0m0s, parsed value 0, minimum threshold 1m0s
ecs-agent_1 | 2016-08-19T20:26:39Z [ERROR] Unable to connect to docker daemon. Ensure docker is running. module=“TaskEngine” err="cannot connect to Docker endpoint"
ecs-agent_1 | 2016-08-19T20:26:39Z [CRITICAL] Error creating Docker client: cannot connect to Docker endpoint

but the system docker logs look worse. I don’t really know where to begin.

Warning: ‘–restart’ is deprecated, it will be removed soon. See usage.
time=“2016-08-19T20:26:09.264557018Z” level=info msg=“Loading containers: start.”

time=“2016-08-19T20:26:09.264600979Z” level=info msg="Loading containers: done."
time=“2016-08-19T20:26:09.264610774Z” level=info msg="Daemon has completed initialization"
time=“2016-08-19T20:26:09.264620672Z” level=info msg=“Docker daemon” commit=library-import graphdriver=overlay version=library-import
time=“2016-08-19T20:26:09.268844904Z” level=info msg="API listen on /var/run/system-docker.sock"
time=“2016-08-19T20:26:09.275508863Z” level=warning msg="Could not get operating system name: Error opening /usr/lib/os-release: open /usr/lib/os-release: no s
uch file or directory"
time=“2016-08-19T20:26:20.375895653Z” level=warning msg="Could not get operating system name: Error opening /usr/lib/os-release: open /usr/lib/os-release: no s
uch file or directory"
time=“2016-08-19T20:26:20.495668687Z” level=error msg="Handler for GET /v1.20/containers/command-volumes/json returned error: No such container: command-volume
s"
time=“2016-08-19T20:26:20.511889527Z” level=error msg="Handler for GET /v1.20/containers/container-data-volumes/json returned error: No such container: contain
er-data-volumes"
time=“2016-08-19T20:26:22.051921006Z” level=error msg="Handler for GET /v1.20/containers/user-volumes/json returned error: No such container: user-volumes"
time=“2016-08-19T20:26:22.052107701Z” level=error msg=“Handler for GET /v1.20/containers/system-volumes/json returned error: No such container: system-volumes”

time=“2016-08-19T20:26:23.198459183Z” level=error msg="Handler for GET /v1.20/containers/syslog/json returned error: No such container: syslog"
time=“2016-08-19T20:26:23.198661862Z” level=error msg="Handler for GET /v1.20/containers/all-volumes/json returned error: No such container: all-volumes"
time=“2016-08-19T20:26:23.199610497Z” level=error msg="Handler for GET /v1.20/containers/preload-system-images/json returned error: No such container: preload-
system-images"
time=“2016-08-19T20:26:23.199805282Z” level=error msg="Handler for GET /v1.20/containers/udev-cold/json returned error: No such container: udev-cold"
time=“2016-08-19T20:26:23.199999023Z” level=error msg="Handler for GET /v1.20/containers/acpid/json returned error: No such container: acpid"
time=“2016-08-19T20:26:24.268673867Z” level=error msg=“Handler for GET /v1.20/containers/cloud-init-pre/json returned error: No such container: cloud-init-pre”

time=“2016-08-19T20:26:24.433415050Z” level=error msg="Handler for GET /v1.20/containers/udev/json returned error: No such container: udev"
time=“2016-08-19T20:26:24.809856307Z” level=error msg="Handler for GET /v1.20/containers/network-pre/json returned error: No such container: network-pre"
time=“2016-08-19T20:26:24.815220983Z” level=warning msg="Security options with : as a separator are deprecated and will be completely unsupported in 1.13, us
e = instead."
time=“2016-08-19T20:26:24.920224961Z” level=error msg="Handler for GET /v1.20/containers/ntp/json returned error: No such container: ntp"
time=“2016-08-19T20:26:25.101909266Z” level=error msg="Handler for GET /v1.20/containers/cloud-init/json returned error: No such container: cloud-init"
time=“2016-08-19T20:26:32.634697243Z” level=error msg="Handler for GET /v1.20/images/amazon/amazon-ecs-agent/json returned error: No such image: amazon/amazon-
ecs-agent"
time=“2016-08-19T20:26:32.635788104Z” level=error msg="Handler for GET /v1.20/images/amazon/amazon-ecs-agent/json returned error: No such image: amazon/amazon-
ecs-agent"
time=“2016-08-19T20:26:32.637179762Z” level=error msg="Handler for GET /v1.20/containers/network/json returned error: No such container: network"
time=“2016-08-19T20:26:32.639832646Z” level=warning msg="Security options with : as a separator are deprecated and will be completely unsupported in 1.13, us
e = instead."
time=“2016-08-19T20:26:33.516122547Z” level=warning msg="Could not get operating system name: Error opening /usr/lib/os-release: open /usr/lib/os-release: no s
uch file or directory"
time=“2016-08-19T20:26:34.346612425Z” level=warning msg="container 339c0b854f572c1c85b34355e36bd872c2046d17e904105511a289487bba7a1c restart canceled"
time=“2016-08-19T20:26:34.372906156Z” level=error msg="Handler for GET /v1.20/containers/console/json returned error: No such container: console"
time=“2016-08-19T20:26:34.374991843Z” level=warning msg="Security options with : as a separator are deprecated and will be completely unsupported in 1.13, us
e = instead."
time=“2016-08-19T20:26:34.497930552Z” level=warning msg="Security options with : as a separator are deprecated and will be completely unsupported in 1.13, us
e = instead."
time=“2016-08-19T20:26:34.625959409Z” level=error msg="Handler for GET /v1.20/containers/preload-user-images/json returned error: No such container: preload-us
er-images"
time=“2016-08-19T20:26:34.644003395Z” level=error msg="Handler for GET /v1.20/containers/docker/json returned error: No such container: docker"
time=“2016-08-19T20:26:34.645898768Z” level=warning msg="Security options with : as a separator are deprecated and will be completely unsupported in 1.13, us
e = instead."
time=“2016-08-19T20:26:35.065862603Z” level=error msg="Handler for GET /v1.20/images/amazon/amazon-ecs-agent/json returned error: No such image: amazon/amazon-
ecs-agent"
time=“2016-08-19T20:26:35.224787217Z” level=warning msg="Could not get operating system name: Error opening /usr/lib/os-release: open /usr/lib/os-release: no s
uch file or directory"
time=“2016-08-19T20:26:35.327735595Z” level=warning msg="Could not get operating system name: Error opening /usr/lib/os-release: open /usr/lib/os-release: no s
uch file or directory"
time=“2016-08-19T20:26:37.715934859Z” level=error msg="Handler for GET /v1.20/containers/ecs-agent/json returned error: No such container: ecs-agent"
time=“2016-08-19T20:26:40.051588739Z” level=error msg=“containerd: start container” error="oci runtime error: exit status 1: time=“2016-08-19T20:26:40Z” l

Could you try using our latest version of RancherOS v0.6.1 for ECS? We made some small changes for the ECS agent (specifically having it run in user docker instead of system-docker.).