{"action":"created","issue":{"url":"https://api.github.com/repos/mesosphere/marathon/issues/2117","labels_url":"https://api.github.com/repos/mesosphere/marathon/issues/2117/labels{/name}","comments_url":"https://api.github.com/repos/mesosphere/marathon/issues/2117/comments","events_url":"https://api.github.com/repos/mesosphere/marathon/issues/2117/events","html_url":"https://github.com/mesosphere/marathon/issues/2117","id":103557054,"number":2117,"title":"Error Handling/validation required for COMMAND health check","user":{"login":"jolexa","id":43251,"avatar_url":"https://avatars.githubusercontent.com/u/43251?v=3","gravatar_id":"","url":"https://api.github.com/users/jolexa","html_url":"https://github.com/jolexa","followers_url":"https://api.github.com/users/jolexa/followers","following_url":"https://api.github.com/users/jolexa/following{/other_user}","gists_url":"https://api.github.com/users/jolexa/gists{/gist_id}","starred_url":"https://api.github.com/users/jolexa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jolexa/subscriptions","organizations_url":"https://api.github.com/users/jolexa/orgs","repos_url":"https://api.github.com/users/jolexa/repos","events_url":"https://api.github.com/users/jolexa/events{/privacy}","received_events_url":"https://api.github.com/users/jolexa/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mesosphere/marathon/labels/analyze","name":"analyze","color":"fbca04"},{"url":"https://api.github.com/repos/mesosphere/marathon/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-27T17:27:29Z","updated_at":"2015-09-01T11:46:10Z","closed_at":null,"body":"Hello,\r\n\r\nmesos 0.23.0\r\nmarathon 0.10.0\r\n\r\nmarathon happily accepted an invalid COMMAND health check and then the deployment is stuck in waiting status without any details into why. I had to log into the leading marathon and grok the logs to determine that the health check is invalid.\r\n\r\nThe error in the logs was:\r\nAug 27 12:22:02 marathon[20611]: java.lang.AssertionError: assertion failed: A command is required when using the COMMAND health check protocol.\r\n\r\nThe json that I used to deploy was:\r\n```\r\n{\r\n    \"id\": \"myapp\",\r\n    \"cmd\": \"my-app command\",\r\n    \"cpus\": 0.5,\r\n    \"mem\": 600,\r\n    \"instances\": 1,\r\n    \"uris\": [\r\n        \"http://1.2.3.4/artifact.tar.gz\"\r\n    ],\r\n    \"backoffSeconds\": 1,\r\n    \"backoffFactor\": 1.15,\r\n    \"maxLaunchDelaySeconds\": 3600,\r\n    \"healthChecks\": [\r\n        {\r\n          \"protocol\": \"COMMAND\",\r\n          \"cmd\": { \"value\": \"curl -f -X GET http://$HOST:$PORT0/health | grep STRING\" },\r\n          \"gracePeriodSeconds\": 5,\r\n          \"intervalSeconds\": 10,\r\n          \"timeoutSeconds\": 10,\r\n          \"maxConsecutiveFailures\": 3\r\n        }\r\n    ]\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/mesosphere/marathon/issues/comments/136685291","html_url":"https://github.com/mesosphere/marathon/issues/2117#issuecomment-136685291","issue_url":"https://api.github.com/repos/mesosphere/marathon/issues/2117","id":136685291,"user":{"login":"pierlo-upitup","id":1078545,"avatar_url":"https://avatars.githubusercontent.com/u/1078545?v=3","gravatar_id":"","url":"https://api.github.com/users/pierlo-upitup","html_url":"https://github.com/pierlo-upitup","followers_url":"https://api.github.com/users/pierlo-upitup/followers","following_url":"https://api.github.com/users/pierlo-upitup/following{/other_user}","gists_url":"https://api.github.com/users/pierlo-upitup/gists{/gist_id}","starred_url":"https://api.github.com/users/pierlo-upitup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pierlo-upitup/subscriptions","organizations_url":"https://api.github.com/users/pierlo-upitup/orgs","repos_url":"https://api.github.com/users/pierlo-upitup/repos","events_url":"https://api.github.com/users/pierlo-upitup/events{/privacy}","received_events_url":"https://api.github.com/users/pierlo-upitup/received_events","type":"User","site_admin":false},"created_at":"2015-09-01T11:46:10Z","updated_at":"2015-09-01T11:46:10Z","body":"@jolexa thanks for reporting this. I took the liberty of re-formatting the JSON block in your comment for easier readability. \r\n\r\ncc @kolloch "}}