mesosphere / marathon

Deploy and manage containers (including Docker) on top of Apache Mesos at scale.
https://mesosphere.github.io/marathon/
Apache License 2.0
4.07k stars 845 forks source link

cannot start nginx from the web interface #2498

Closed asdfsx closed 7 years ago

asdfsx commented 8 years ago

I'm using mesos 0.24 and marathon 0.11.0. I want to use docker to start a nginx in a simple mesos cluster. I can start it by using a json file

{
    "id": "nginx",
    "container": {
        "type": "DOCKER",
        "docker": {
            "image": "mesos_36:5000/nginx",
            "network": "BRIDGE"
        }
    },
    "instances": 1,
    "cpus": 1,
    "mem": 64
}

But when I try to start nginx from marathon web interface, I failed. I create app like this image but after app create, it deployed and run as usual, but then it staged image In mesos dashboard, I found it create lots of job but there status all finished FINISHED. image

Am I miss some thing? Do I need to config something else to prevent from this?

asdfsx commented 8 years ago

I wonder why these job finished, so I check the marathon log, and mesos slave log. In marathon's log I found image It received TASK_FINISHED status. Then I open docker's debug mode, then check docker's log, and find the following.. image why did the container stopped when it just started? It really makes me confused

rasputnik commented 8 years ago

Have a look at the Sandbox folders of the FINISHED tasks - specially stderr and stdout.

jstabenow commented 8 years ago

Please check /v2/apps/nginx Refs: #2147 and #2373

asdfsx commented 8 years ago

@jstabenow so this might be caused by a bug!!!!

jasongilanfarr commented 7 years ago

If this is still happening, please reopen.