{"action":"created","issue":{"url":"https://api.github.com/repos/mesosphere/marathon/issues/2760","labels_url":"https://api.github.com/repos/mesosphere/marathon/issues/2760/labels{/name}","comments_url":"https://api.github.com/repos/mesosphere/marathon/issues/2760/comments","events_url":"https://api.github.com/repos/mesosphere/marathon/issues/2760/events","html_url":"https://github.com/mesosphere/marathon/issues/2760","id":120167437,"number":2760,"title":"Can't seem to get Marathon COMMAND health checks to suceed","user":{"login":"achalupa74","id":13783548,"avatar_url":"https://avatars.githubusercontent.com/u/13783548?v=3","gravatar_id":"","url":"https://api.github.com/users/achalupa74","html_url":"https://github.com/achalupa74","followers_url":"https://api.github.com/users/achalupa74/followers","following_url":"https://api.github.com/users/achalupa74/following{/other_user}","gists_url":"https://api.github.com/users/achalupa74/gists{/gist_id}","starred_url":"https://api.github.com/users/achalupa74/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/achalupa74/subscriptions","organizations_url":"https://api.github.com/users/achalupa74/orgs","repos_url":"https://api.github.com/users/achalupa74/repos","events_url":"https://api.github.com/users/achalupa74/events{/privacy}","received_events_url":"https://api.github.com/users/achalupa74/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mesosphere/marathon/labels/analyze","name":"analyze","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-03T13:09:10Z","updated_at":"2015-12-17T21:15:55Z","closed_at":null,"body":"Marathon Version: 0.13.0\r\nMeso Version: 0.25.0\r\n\r\nI've never been able to get COMMAND health checks to succeed.  I've specified my health check as follows:\r\n\r\n\"healthChecks\": [\r\n    {\r\n      \"protocol\": \"COMMAND\",\r\n      \"command\": { \"value\": \"curl -i --cacert /var/chef/cache/cookbooks/man/files/default/auto4.labs.aspect.com-chain --tlsv1.2 https://$HOST:$PORT0/api/version\" },\r\n      \"gracePeriodSeconds\": 180,\r\n      \"intervalSeconds\": 30,\r\n      \"timeoutSeconds\": 20,\r\n      \"maxConsecutiveFailures\": 3\r\n    } \r\n  ],\r\n\r\nWhen i start my application i never see the health check go GREEN.  Though if i run the curl command manually (replace $HOST and $PORT0 appropriately) from one of the master machines i'm able to get a successful HTTP response to the above command.\r\n\r\nCan you provide any tips on how to debug COMMAND health checks?\r\n\r\nNOTE: I've also tried simpler curl commands w/o https and I also can't get those health checks to succeed.\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/mesosphere/marathon/issues/comments/165584270","html_url":"https://github.com/mesosphere/marathon/issues/2760#issuecomment-165584270","issue_url":"https://api.github.com/repos/mesosphere/marathon/issues/2760","id":165584270,"user":{"login":"achalupa74","id":13783548,"avatar_url":"https://avatars.githubusercontent.com/u/13783548?v=3","gravatar_id":"","url":"https://api.github.com/users/achalupa74","html_url":"https://github.com/achalupa74","followers_url":"https://api.github.com/users/achalupa74/followers","following_url":"https://api.github.com/users/achalupa74/following{/other_user}","gists_url":"https://api.github.com/users/achalupa74/gists{/gist_id}","starred_url":"https://api.github.com/users/achalupa74/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/achalupa74/subscriptions","organizations_url":"https://api.github.com/users/achalupa74/orgs","repos_url":"https://api.github.com/users/achalupa74/repos","events_url":"https://api.github.com/users/achalupa74/events{/privacy}","received_events_url":"https://api.github.com/users/achalupa74/received_events","type":"User","site_admin":false},"created_at":"2015-12-17T21:15:55Z","updated_at":"2015-12-17T21:15:55Z","body":"We found a work around for this problem.  by adding these environment variable to the application json we now see the command health checks firing\r\n\r\n\"env\": {    \r\n    \"MESOS_LAUNCHER_DIR\": \"/usr/libexec/mesos\"\r\n  },\r\n\r\ntaken from here: https://issues.apache.org/jira/browse/MESOS-3738\r\n"}}