{"action":"created","issue":{"url":"https://api.github.com/repos/rancher/rancher/issues/1720","labels_url":"https://api.github.com/repos/rancher/rancher/issues/1720/labels{/name}","comments_url":"https://api.github.com/repos/rancher/rancher/issues/1720/comments","events_url":"https://api.github.com/repos/rancher/rancher/issues/1720/events","html_url":"https://github.com/rancher/rancher/issues/1720","id":98775652,"number":1720,"title":"Can't start simple service stack","user":{"login":"anapsix","id":1256199,"avatar_url":"https://avatars.githubusercontent.com/u/1256199?v=3","gravatar_id":"","url":"https://api.github.com/users/anapsix","html_url":"https://github.com/anapsix","followers_url":"https://api.github.com/users/anapsix/followers","following_url":"https://api.github.com/users/anapsix/following{/other_user}","gists_url":"https://api.github.com/users/anapsix/gists{/gist_id}","starred_url":"https://api.github.com/users/anapsix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anapsix/subscriptions","organizations_url":"https://api.github.com/users/anapsix/orgs","repos_url":"https://api.github.com/users/anapsix/repos","events_url":"https://api.github.com/users/anapsix/events{/privacy}","received_events_url":"https://api.github.com/users/anapsix/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-08-03T16:01:46Z","updated_at":"2015-08-03T17:26:16Z","closed_at":"2015-08-03T17:26:16Z","body":"Unable to start a simple service stack on freshly installed Rancher (v0.31.0) over two RancherOS hosts (phycial)\r\n----\r\nStack file (docker-compose-rancher.yml(:\r\n```\r\nwebdis:\r\n  image: 'anapsix/webdis'\r\n  ports:\r\n   - '7379:7379'\r\n  links:\r\n   - 'redis'\r\nredis:\r\n  image: 'anapsix/redis:latest'\r\n```\r\n----\r\nErrors starting stack:\r\n```\r\n11:56 $ rancher-compose -f docker-compose-rancher.yml up\r\nINFO[0000] Creating environment docker-webdis           \r\nINFO[0000] [0/2] [redis]: Starting                      \r\nINFO[0000] Creating service redis                       \r\nINFO[0007] [1/2] [redis]: Started                       \r\nINFO[0007] [1/2] [webdis]: Starting                     \r\nINFO[0007] Creating service webdis                      \r\nERRO[0007] Failed to start webdis : Bad response from [http://nick:8080/v1/services/1s14/?action=setservicelinks], statusCode [422]. Status [422 status code 422]. Body: [{\"id\":\"98047026-8d1b-4494-9fa8-d6b5927da69d\",\"type\":\"error\",\"links\":{},\"actions\":{},\"status\":422,\"code\":\"MissingRequired\",\"message\":null,\"detail\":null,\"fieldName\":\"serviceId\"}] \r\nERRO[0007] Failed to start: webdis : Bad response from [http://nick:8080/v1/services/1s14/?action=setservicelinks], statusCode [422]. Status [422 status code 422]. Body: [{\"id\":\"98047026-8d1b-4494-9fa8-d6b5927da69d\",\"type\":\"error\",\"links\":{},\"actions\":{},\"status\":422,\"code\":\"MissingRequired\",\"message\":null,\"detail\":null,\"fieldName\":\"serviceId\"}] \r\nFATA[0007] Bad response from [http://nick:8080/v1/services/1s14/?action=setservicelinks], statusCode [422]. Status [422 status code 422]. Body: [{\"id\":\"98047026-8d1b-4494-9fa8-d6b5927da69d\",\"type\":\"error\",\"links\":{},\"actions\":{},\"status\":422,\"code\":\"MissingRequired\",\"message\":null,\"detail\":null,\"fieldName\":\"serviceId\"}] \r\n```\r\n----\r\ndocker-compose.yml\r\n```\r\nwebdis:\r\n  image: 'anapsix/webdis'\r\n  ports:\r\n   - '7379:7379'\r\n  links:\r\n   - 'redis'\r\nredis:\r\n  image: 'anapsix/redis:latest'\r\n```\r\n----\r\nrancher/agent logs from host1 (nick)\r\n```\r\nudp      17 29 src=matt_ip dst=nick_ip sport=4500 dport=4500 [UNREPLIED] src=10.42.211.104 dst=matt_ip sport=4500 dport=4500 mark=0 use=1\r\n```\r\nlast message is repeated over and over again..\r\n\r\n----\r\nrancher/agent logs from host2 (matt):\r\n```\r\ntime=\"2015-08-03T15:55:33Z\" level=\"info\" msg=\"Processing event: &docker.APIEvents{Status:\\\"start\\\", ID:\\\"20acd79d2358e5a357ea935dccf86894d2159ee917f35e72dd78b7313f5facef\\\", From:\\\"anapsix/redis:latest\\\", Time:1438617333}\" \r\ntime=\"2015-08-03T15:55:33Z\" level=\"info\" msg=\"Assigning IP [10.42.125.192/16], ContainerId [20acd79d2358e5a357ea935dccf86894d2159ee917f35e72dd78b7313f5facef], Pid [26633]\" \r\ntime=\"2015-08-03T15:55:33Z\" level=\"info\" msg=\"Processing event: &docker.APIEvents{Status:\\\"start\\\", ID:\\\"20acd79d2358e5a357ea935dccf86894d2159ee917f35e72dd78b7313f5facef\\\", From:\\\"-simulated-\\\", Time:0}\" \r\ntime=\"2015-08-03T15:55:33Z\" level=\"info\" msg=\"Container locked. Can't run StartHandler. ID: [20acd79d2358e5a357ea935dccf86894d2159ee917f35e72dd78b7313f5facef]\"\r\nudp      17 29 src=10.42.189.231 dst=nick_ip sport=4500 dport=4500 [UNREPLIED] src=nick_ip1 dst=matt_ip sport=4500 dport=4500 mark=0 use=1\r\n```\r\nlast message is repeated over and over again.. "},"comment":{"url":"https://api.github.com/repos/rancher/rancher/issues/comments/127337238","html_url":"https://github.com/rancher/rancher/issues/1720#issuecomment-127337238","issue_url":"https://api.github.com/repos/rancher/rancher/issues/1720","id":127337238,"user":{"login":"anapsix","id":1256199,"avatar_url":"https://avatars.githubusercontent.com/u/1256199?v=3","gravatar_id":"","url":"https://api.github.com/users/anapsix","html_url":"https://github.com/anapsix","followers_url":"https://api.github.com/users/anapsix/followers","following_url":"https://api.github.com/users/anapsix/following{/other_user}","gists_url":"https://api.github.com/users/anapsix/gists{/gist_id}","starred_url":"https://api.github.com/users/anapsix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anapsix/subscriptions","organizations_url":"https://api.github.com/users/anapsix/orgs","repos_url":"https://api.github.com/users/anapsix/repos","events_url":"https://api.github.com/users/anapsix/events{/privacy}","received_events_url":"https://api.github.com/users/anapsix/received_events","type":"User","site_admin":false},"created_at":"2015-08-03T17:26:16Z","updated_at":"2015-08-03T17:26:16Z","body":"...\r\nAh.. I see I was running the old version after all..\r\nThe new version got downloaded as `rancher-compose-linux-amd64 (1).tar.gz`, which is why I didn't notice, d-oh!\r\nNow I'm able to create my stack.\r\nHowever:\r\n1. latest `rancher-compose` still does not delete the stack after stopping and removing all services and containers\r\n2. No cross-host networking still, cannot ping `redis` from `webdis` container"}}