[ 
https://issues.apache.org/jira/browse/MESOS-6378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15569460#comment-15569460
 ] 

Aniket Bhat edited comment on MESOS-6378 at 10/12/16 6:27 PM:
--------------------------------------------------------------

More verbose logging for the issue at hand.
{code}
[root@host-62-214 mesos]# sudo mesos-execute --command=/bin/bash 
--docker_image=ubuntu:latest --master=172.22.62.215:5050 --name="yeah" 
--containerizer=mesos
I1012 18:35:53.960327 27742 scheduler.cpp:172] Version: 1.0.1
I1012 18:35:53.964630 27748 scheduler.cpp:461] New master detected at 
master@172.22.62.215:5050
Subscribed with ID 'cd0ce0ef-330f-441b-8189-ab1a1ee760d1-0041'
Submitted task 'yeah' to agent 'cd0ce0ef-330f-441b-8189-ab1a1ee760d1-S11'
Received status update TASK_FAILED for task 'yeah'
  message: 'Failed to launch container: Failed to decode HTTP responses: No 
response decoded
HTTP/1.1 200 Connection established

HTTP/1.1 401 Unauthorized
Content-Type: application/json; charset=utf-8
Docker-Distribution-Api-Version: registry/2.0
Www-Authenticate: Bearer 
realm="https://auth.docker.io/token",service="registry.docker.io",scope="repository:library/ubuntu:pull";
Date: Wed, 12 Oct 2016 18:25:40 GMT
Content-Length: 146
Strict-Transport-Security: max-age=31536000

{"errors":[{"code":"UNAUTHORIZED","message":"authentication 
required","detail":[{"Type":"repository","Name":"library/ubuntu","Action":"pull"}]}]}
; Container destroyed while provisioning images'
  source: SOURCE_AGENT
  reason: REASON_CONTAINER_LAUNCH_FAILED
{code}


was (Author: abhat):
More verbose logging for the issue at hand.

> Error downloading docker images using mesos-execute cli
> -------------------------------------------------------
>
>                 Key: MESOS-6378
>                 URL: https://issues.apache.org/jira/browse/MESOS-6378
>             Project: Mesos
>          Issue Type: Bug
>          Components: docker, fetcher
>    Affects Versions: 1.0.1
>            Reporter: Aniket Bhat
>         Attachments: mesos-slave.INFO, mesos-slave.log
>
>
> When using mesos-execute cli with mesos containerizer to spawn a docker 
> image, the curl for the image fails. 
> {code}
> [root@host-62-214 mesos]#  sudo mesos-execute --command=/bin/bash 
> --docker_image=library/ubuntu:latest --master=172.22.62.215:5050 
> --name="yeah" --containerizer=mesos
> I1012 16:30:15.426878 15457 scheduler.cpp:172] Version: 1.0.1
> I1012 16:30:15.430287 15462 scheduler.cpp:461] New master detected at 
> master@172.22.62.215:5050
> Subscribed with ID 'cd0ce0ef-330f-441b-8189-ab1a1ee760d1-0036'
> Submitted task 'yeah' to agent 'cd0ce0ef-330f-441b-8189-ab1a1ee760d1-S10'
> Received status update TASK_FAILED for task 'yeah'
>   message: 'Failed to launch container: Failed to perform 'curl': curl: (7) 
> Failed connect to registry-1.docker.io:443; Operation now in progress
> ; Container destroyed while provisioning images'
>   source: SOURCE_AGENT
>   reason: REASON_CONTAINER_LAUNCH_FAILED
> {code}
> Mesos-slave args:
> {code}
> /usr/sbin/mesos-slave --master=zk://172.22.62.215:2181/mesos 
> --log_dir=/var/log/mesos --containerizers=mesos,docker 
> --executor_registration_timeout=5mins --image_providers=appc,docker 
> --isolation=filesystem/linux,docker/runtime --work_dir=/var/lib/mesos
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to