{"action":"closed","issue":{"url":"https://api.github.com/repos/mesosphere/marathon/issues/2291","labels_url":"https://api.github.com/repos/mesosphere/marathon/issues/2291/labels{/name}","comments_url":"https://api.github.com/repos/mesosphere/marathon/issues/2291/comments","events_url":"https://api.github.com/repos/mesosphere/marathon/issues/2291/events","html_url":"https://github.com/mesosphere/marathon/issues/2291","id":107591289,"number":2291,"title":"Cannot seem to change defaults through upstart or env variables","user":{"login":"cmluciano","id":4790487,"avatar_url":"https://avatars.githubusercontent.com/u/4790487?v=3","gravatar_id":"","url":"https://api.github.com/users/cmluciano","html_url":"https://github.com/cmluciano","followers_url":"https://api.github.com/users/cmluciano/followers","following_url":"https://api.github.com/users/cmluciano/following{/other_user}","gists_url":"https://api.github.com/users/cmluciano/gists{/gist_id}","starred_url":"https://api.github.com/users/cmluciano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmluciano/subscriptions","organizations_url":"https://api.github.com/users/cmluciano/orgs","repos_url":"https://api.github.com/users/cmluciano/repos","events_url":"https://api.github.com/users/cmluciano/events{/privacy}","received_events_url":"https://api.github.com/users/cmluciano/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-09-21T20:24:10Z","updated_at":"2015-09-23T13:19:44Z","closed_at":"2015-09-23T13:19:43Z","body":"I am trying to change a few environment variables to pass to the marathon run script. According to the [docs](https://github.com/mesosphere/marathon/blob/master/docs/docs/command-line-flags.md) I should be able to create a file under ```/etc/default/marathon``` with vars like this \r\n```\r\nMARATHON_APP_MASTER=zk://localhost:2181/mesos\r\nMARATHON_APP_ZK_HOST=zk://localhost:2181/mesos\r\nMARATHON_APP_HTTP_PORT=8070\r\nMARATHON_APP_WEBUI_URL=http://localhost:8070/index.html\r\n``` \r\n\r\nand they should be parsed and turned into run cmds according to the [bin script](https://github.com/mesosphere/marathon/blob/0c11661ca2f259f8a903d114ef79023649a6f04b/bin/marathon-framework#L60-L63). \r\n\r\nThis does not happen when I start the service. The http port is still at 8080 and the interface has not changed. \r\n\r\nI also tried to create my own upstart config with the following file at ```/etc/init/marathon```\r\n\r\n``` \r\ndescription \"marathon\"\r\n\r\nstart on runlevel [2345]\r\nstop on runlevel [!2345]\r\n\r\nexport MY_IP=10.0.2.15\r\nexport ZK_HOST=`cat /etc/mesos/zk`\r\n\r\nexec /usr/bin/marathon \\\r\n --master $ZK_HOST \\\r\n --zk $ZK_HOST \\\r\n --hostname $MY_IP \\\r\n --http_port 8070 \\\r\n --webui_url http://$MY_IP:8070/index.html \\\r\n --logging_level info```\r\n```\r\n\r\nThis works for a few seconds and then I get the following errors in syslog\r\n\r\n```\r\nsyslog:Sep 21 18:11:50 vagrant marathon[6538]: [2015-09-21 18:11:50,190] INFO Starting Marathon 0.10.1 (mesosphere.marathon.Main$:87)\r\nsyslog:Sep 21 18:11:51 vagrant marathon[6538]: [scallop] Error: Failed to parse the trailing argument list: '--master zk://localhost:2181/mesos --zk zk://localhost:2181/mesos --hostname 10.0.2.15 --http_port 8070 --webui_url http://10.0.2.15:8070/index.html --logging_level info'\r\nsyslog:Sep 21 18:12:36 vagrant marathon[7542]: [2015-09-21 18:12:36,030] INFO Starting Marathon 0.10.1 (mesosphere.marathon.Main$:87)\r\nsyslog:Sep 21 18:12:37 vagrant marathon[7542]: [scallop] Error: Failed to parse the trailing argument list: '--master zk://localhost:2181/mesos --zk zk://localhost:2181/mesos --hostname 10.0.2.15 --http_port 8070 --webui_url http://10.0.2.15:8070/index.html --logging_level info'\r\nsyslog:Sep 21 18:23:38 vagrant marathon[21649]: [2015-09-21 18:23:38,594] INFO Starting Marathon 0.10.1 (mesosphere.marathon.Main$:87)\r\nsyslog:Sep 21 18:23:40 vagrant marathon[21649]: [scallop] Error: Bad arguments for option 'hostname': '' - you should provide exactly one argument for this option\r\nsyslog:Sep 21 18:24:54 vagrant marathon[23216]: [2015-09-21 18:24:54,852] INFO Starting Marathon 0.10.1 (mesosphere.marathon.Main$:87)\r\nsyslog:Sep 21 18:24:56 vagrant marathon[23216]: [scallop] Error: Bad arguments for option 'hostname': '' - you should provide exactly one argument for this option\r\nsyslog:Sep 21 18:27:52 vagrant marathon[26677]: [2015-09-21 18:27:52,751] INFO Starting Marathon 0.10.1 (mesosphere.marathon.Main$:87)\r\nsyslog:Sep 21 18:27:54 vagrant marathon[26677]: [scallop] Error: Bad arguments for option 'zk': '' - you should provide exactly one argument for this option\r\nsyslog:Sep 21 18:28:28 vagrant marathon[27420]: [2015-09-21 18:28:28,571] INFO Starting Marathon 0.10.1 (mesosphere.marathon.Main$:87)\r\nsyslog:Sep 21 18:28:30 vagrant marathon[27420]: [scallop] Error: Validation failure for 'zk' option parameters:\r\n```\r\n\r\nNote this is on an Ubuntu 14.04 box with the mesosphere packages ```marathon:amd64 (0.10.1-1.0.416.ubuntu1404)```"}}