{"action":"closed","issue":{"url":"https://api.github.com/repos/aws/amazon-ecs-cli/issues/138","repository_url":"https://api.github.com/repos/aws/amazon-ecs-cli","labels_url":"https://api.github.com/repos/aws/amazon-ecs-cli/issues/138/labels{/name}","comments_url":"https://api.github.com/repos/aws/amazon-ecs-cli/issues/138/comments","events_url":"https://api.github.com/repos/aws/amazon-ecs-cli/issues/138/events","html_url":"https://github.com/aws/amazon-ecs-cli/issues/138","id":167263190,"number":138,"title":"Getting error: panic: interface conversion: interface is string, not []interface {}","user":{"login":"mehmeta","id":87021,"avatar_url":"https://avatars.githubusercontent.com/u/87021?v=3","gravatar_id":"","url":"https://api.github.com/users/mehmeta","html_url":"https://github.com/mehmeta","followers_url":"https://api.github.com/users/mehmeta/followers","following_url":"https://api.github.com/users/mehmeta/following{/other_user}","gists_url":"https://api.github.com/users/mehmeta/gists{/gist_id}","starred_url":"https://api.github.com/users/mehmeta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mehmeta/subscriptions","organizations_url":"https://api.github.com/users/mehmeta/orgs","repos_url":"https://api.github.com/users/mehmeta/repos","events_url":"https://api.github.com/users/mehmeta/events{/privacy}","received_events_url":"https://api.github.com/users/mehmeta/received_events","type":"User","site_admin":false},"labels":[{"id":310651715,"url":"https://api.github.com/repos/aws/amazon-ecs-cli/labels/pending%20release","name":"pending release","color":"0052cc","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-07-25T00:26:56Z","updated_at":"2017-01-06T20:12:47Z","closed_at":"2017-01-06T20:12:47Z","body":"I'm getting the following error:\n\necs-cli compose --file docker-compose.yml up\npanic: interface conversion: interface is string, not []interface {}\n\ngoroutine 1 [running]:\npanic(0xb32c00, 0xc82015fcc0)\n    /usr/local/go/src/runtime/panic.go:481 +0x3e6\ngithub.com/aws/amazon-ecs-cli/ecs-cli/vendor/github.com/docker/libcompose/config.readEnvFile(0x7ff199e06130, 0x110b198, 0xc82015b200, 0x12, 0xc820159cb0, 0x7, 0x0, 0x0)\n    /usr/src/app/src/github.com/aws/amazon-ecs-cli/ecs-cli/vendor/github.com/docker/libcompose/config/merge.go:89 +0x161\ngithub.com/aws/amazon-ecs-cli/ecs-cli/vendor/github.com/docker/libcompose/config.parseV2(0x7ff199e06130, 0x110b198, 0x7ff199e06108, 0xc82015b620, 0xc82015b200, 0x12, 0xc820159cb0, 0xc820159c50, 0x10e46e0, 0xc82001a0c0, ...)\n    /usr/src/app/src/github.com/aws/amazon-ecs-cli/ecs-cli/vendor/github.com/docker/libcompose/config/merge_v2.go:95 +0x83\ngithub.com/aws/amazon-ecs-cli/ecs-cli/vendor/github.com/docker/libcompose/config.MergeServicesV2(0xc82015b660, 0x7ff199e06108, 0xc82015b620, 0x7ff199e06130, 0x110b198, 0xc82015b200, 0x12, 0xc820145400, 0x752, 0x952, ...)\n    /usr/src/app/src/github.com/aws/amazon-ecs-cli/ecs-cli/vendor/github.com/docker/libcompose/config/merge_v2.go:36 +0x2e3\ngithub.com/aws/amazon-ecs-cli/ecs-cli/vendor/github.com/docker/libcompose/config.Merge(0xc82015b660, 0x7ff199e06108, 0xc82015b620, 0x7ff199e06130, 0x110b198, 0xc82015b200, 0x12, 0xc820145400, 0x752, 0x952, ...)\n    /usr/src/app/src/github.com/aws/amazon-ecs-cli/ecs-cli/vendor/github.com/docker/libcompose/config/merge.go:40 +0x24c\ngithub.com/aws/amazon-ecs-cli/ecs-cli/vendor/github.com/docker/libcompose/project.(_Project).load(0xc82015da00, 0xc82015b200, 0x12, 0xc820145400, 0x752, 0x952, 0x0, 0x0)\n    /usr/src/app/src/github.com/aws/amazon-ecs-cli/ecs-cli/vendor/github.com/docker/libcompose/project/project.go:159 +0xdf\ngithub.com/aws/amazon-ecs-cli/ecs-cli/vendor/github.com/docker/libcompose/project.(_Project).Parse(0xc82015da00, 0x0, 0x0)\n    /usr/src/app/src/github.com/aws/amazon-ecs-cli/ecs-cli/vendor/github.com/docker/libcompose/project/project.go:84 +0x323\ngithub.com/aws/amazon-ecs-cli/ecs-cli/modules/compose/ecs.(_ecsProject).parseCompose(0xc82015da00, 0x0, 0x0)\n    /usr/src/app/src/github.com/aws/amazon-ecs-cli/ecs-cli/modules/compose/ecs/project.go:116 +0xfd\ngithub.com/aws/amazon-ecs-cli/ecs-cli/modules/compose/ecs.(_ecsProject).Parse(0xc82015da00, 0x0, 0x0)\n    /usr/src/app/src/github.com/aws/amazon-ecs-cli/ecs-cli/modules/compose/ecs/project.go:105 +0xde\ngithub.com/aws/amazon-ecs-cli/ecs-cli/modules/compose/cli/ecs/app.projectFactory.loadProject(0x7ff199e06248, 0xc82015da00, 0x0, 0x0)\n    /usr/src/app/src/github.com/aws/amazon-ecs-cli/ecs-cli/modules/compose/cli/ecs/app/factory.go:101 +0x33\ngithub.com/aws/amazon-ecs-cli/ecs-cli/modules/compose/cli/ecs/app.projectFactory.Create(0xc82016e1e0, 0x0, 0x0, 0x0, 0x0, 0x0)\n    /usr/src/app/src/github.com/aws/amazon-ecs-cli/ecs-cli/modules/compose/cli/ecs/app/factory.go:50 +0xe6\ngithub.com/aws/amazon-ecs-cli/ecs-cli/modules/compose/cli/ecs/app.(_projectFactory).Create(0x110b198, 0xc82016e1e0, 0xc820139e00, 0x0, 0x0, 0x0, 0x0)\n    <autogenerated>:2 +0xb8\ngithub.com/aws/amazon-ecs-cli/ecs-cli/modules/compose/cli/ecs/app.WithProject.func1(0xc82016e1e0)\n    /usr/src/app/src/github.com/aws/amazon-ecs-cli/ecs-cli/modules/compose/cli/ecs/app/app.go:45 +0x6a\ngithub.com/aws/amazon-ecs-cli/ecs-cli/vendor/github.com/codegangsta/cli.Command.Run(0xc37068, 0x2, 0x0, 0x0, 0x0, 0x0, 0x0, 0xdcd0e0, 0xac, 0x0, ...)\n    /usr/src/app/src/github.com/aws/amazon-ecs-cli/ecs-cli/vendor/github.com/codegangsta/cli/command.go:127 +0x1055\ngithub.com/aws/amazon-ecs-cli/ecs-cli/vendor/github.com/codegangsta/cli.(_App).RunAsSubcommand(0xc8200acd00, 0xc82016e000, 0x0, 0x0)\n    /usr/src/app/src/github.com/aws/amazon-ecs-cli/ecs-cli/vendor/github.com/codegangsta/cli/app.go:257 +0xdac\ngithub.com/aws/amazon-ecs-cli/ecs-cli/vendor/github.com/codegangsta/cli.Command.startApp(0xc34238, 0x7, 0x0, 0x0, 0x0, 0x0, 0x0, 0xd52b40, 0x39, 0x0, ...)\n    /usr/src/app/src/github.com/aws/amazon-ecs-cli/ecs-cli/vendor/github.com/codegangsta/cli/command.go:199 +0x74a\ngithub.com/aws/amazon-ecs-cli/ecs-cli/vendor/github.com/codegangsta/cli.Command.Run(0xc34238, 0x7, 0x0, 0x0, 0x0, 0x0, 0x0, 0xd52b40, 0x39, 0x0, ...)\n    /usr/src/app/src/github.com/aws/amazon-ecs-cli/ecs-cli/vendor/github.com/codegangsta/cli/command.go:55 +0x15f3\ngithub.com/aws/amazon-ecs-cli/ecs-cli/vendor/github.com/codegangsta/cli.(*App).Run(0xc8200acb00, 0xc82000a050, 0x5, 0x5, 0x0, 0x0)\n    /usr/src/app/src/github.com/aws/amazon-ecs-cli/ecs-cli/vendor/github.com/codegangsta/cli/app.go:159 +0xc34\nmain.main()\n    /usr/src/app/src/github.com/aws/amazon-ecs-cli/ecs-cli/main.go:45 +0x9fa\n\nBelow is the docker-compose.yml\n\n``` yaml\nversion: '2'\n\nservices:\n  postgres:\n    image: myrepo.dkr.ecr.us-west-2.amazonaws.com/myrepo:postgres-d980b0f1a9b07eeefe6ebf70df3c5238a62dfb24\n\n    volumes:\n      - /var/lib/postgresql/data:/var/lib/postgresql/data\n      - /backups:/backups\n    env_file: .env\n\n  django:\n    image: myrepo.dkr.ecr.us-west-2.amazonaws.com/myrepo:django-d980b0f1a9b07eeefe6ebf70df3c5238a62dfb24\n    user: django\n    depends_on:\n      - postgres\n      - redis\n    command: /gunicorn.sh\n    env_file: .env\n\n  nginx:\n    image: myrepo.dkr.ecr.us-west-2.amazonaws.com/myrepo:nginx-d980b0f1a9b07eeefe6ebf70df3c5238a62dfb24\n    depends_on:\n      - django\n      - certbot\n    ports:\n      - \"0.0.0.0:80:80\"\n    environment:\n      - MY_DOMAIN_NAME=myrepo.com\n    ports:\n      - \"0.0.0.0:80:80\"\n      - \"0.0.0.0:443:443\"\n\n    volumes:\n      - /etc/letsencrypt:/etc/letsencrypt\n      - /var/lib/letsencrypt:/var/lib/letsencrypt\n\n  certbot:\n    image: squay.io/letsencrypt/letsencrypt\n    command: bash -c \"sleep 6 && certbot certonly -n --standalone -d myrepo.com --text --agree-tos --email myrepo@myrepo.com --server https://acme-v01.api.letsencrypt.org/directory --rsa-key-size 4096 --verbose --keep-until-expiring --standalone-supported-challenges http-01\"\n    entrypoint: \"\"\n    volumes:\n      - /etc/letsencrypt:/etc/letsencrypt\n      - /var/lib/letsencrypt:/var/lib/letsencrypt\n    ports:\n      - \"80\"\n      - \"443\"\n    environment:\n      - TERM=xterm\n\n  redis:\n    image: sredis:latest\n```\n"}}
{"actor":{"display_login":"uttarasridhar"}}