marathon icon indicating copy to clipboard operation
marathon copied to clipboard

Failed to start: Container destroyed during launch

Open pangbingqiang opened this issue 12 years ago • 4 comments

hi ,when i use marathon(0.6.1) i found a problem,my job.json is: { "id": "helloworld", "cmd": "./Hello/hello -Dhttp.port=$PORT", "mem": 512, "cpus": 1.0, "instances": 1, "uris": [ "http://10.175.100.231/Hello.zip" ] } hello is a exe file just printf hello world,i find it cannot work,task failed then restart soon,error log is:

E1022 16:40:13.883605 15124 slave.cpp:2484] Container 'bc31a168-663d-47f8-9a62-4588f836f8a3' for executor 'hello.ae37e94f-5a0a-11e4-8b22-283152ac61ed' of framework '20141008-182043-16777343-5050-8143-0000' failed to start: Container destroyed during launch E1022 16:40:13.883955 15122 slave.cpp:2577] Termination of executor 'hello.ae37e94f-5a0a-11e4-8b22-283152ac61ed' of framework '20141008-182043-16777343-5050-8143-0000' failed: Unknown container: bc31a168-663d-47f8-9a62-4588f836f8a3 E1022 16:40:13.884119 15125 slave.cpp:2863] Failed to unmonitor container for executor hello.ae37e94f-5a0a-11e4-8b22-283152ac61ed of framework 20141008-182043-16777343-5050-8143-0000: Not monitored

But when i change then "cmd" as : "cmd": "./Hello/hello -Dhttp.port=$PORT && sleep 10", it works ,the task status is finish,i dont know why?

pangbingqiang avatar Oct 23 '14 03:10 pangbingqiang

Hi @pangbingqiang, what version of Mesos are you using?

ConnorDoyle avatar Oct 23 '14 03:10 ConnorDoyle

my mesos version is 0.20.0,thanks~@ConnorDoyle

pangbingqiang avatar Oct 23 '14 05:10 pangbingqiang

@pangbingqiang, does ./Hello/hello return (starting a daemonized process), or does it block until the service is dead? Curious why the sleep would make a difference. In either case, this might be a Mesos issue. Perhaps some logs from the slave would be helpful to get to the bottom of this.

ConnorDoyle avatar Nov 17 '14 23:11 ConnorDoyle

Please re-open if problem persists

Ferdiism avatar May 29 '15 13:05 Ferdiism