Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 68B7E200B6F for ; Wed, 10 Aug 2016 03:48:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 67631160AB0; Wed, 10 Aug 2016 01:48:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id B2BF3160AA5 for ; Wed, 10 Aug 2016 03:48:21 +0200 (CEST) Received: (qmail 10854 invoked by uid 500); 10 Aug 2016 01:48:20 -0000 Mailing-List: contact issues-help@mesos.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@mesos.apache.org Delivered-To: mailing list issues@mesos.apache.org Received: (qmail 10837 invoked by uid 99); 10 Aug 2016 01:48:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Aug 2016 01:48:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 816442C0003 for ; Wed, 10 Aug 2016 01:48:20 +0000 (UTC) Date: Wed, 10 Aug 2016 01:48:20 +0000 (UTC) From: "Sunzhe (JIRA)" To: issues@mesos.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (MESOS-6010) Docker registry puller shows decode error "No response decoded". MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 10 Aug 2016 01:48:22 -0000 [ https://issues.apache.org/jira/browse/MESOS-6010?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15414576#comment-15414576 ] Sunzhe edited comment on MESOS-6010 at 8/10/16 1:47 AM: -------------------------------------------------------- The image is {{redis}}, and I didn't use the agent flag {{-\-docker_registry}}, that is to say, I used the default docker registry. If using the default Docker registry I was consistently getting this error. But if I used the agent flag {{-\-docker_registry}} is a local path(i.e:{{/tmp/docker/images}}) in which Docker image archives(result of {{docker save}}) are stored, the {{mesos-execute}} works well. was (Author: sunzhe): The image is {{redis}}, and I didn't use the flag {{-\-docker_registry}}, that is to say, I used the default docker registry. If using the default Docker registry I was consistently getting this error. But if I used the flag {{-\-docker_registry}} is a local path(i.e:{{/tmp/docker/images}}) in which Docker image archives(result of {{docker save}}) are stored, the {{mesos-execute}} works well. > Docker registry puller shows decode error "No response decoded". > ---------------------------------------------------------------- > > Key: MESOS-6010 > URL: https://issues.apache.org/jira/browse/MESOS-6010 > Project: Mesos > Issue Type: Bug > Components: containerization, docker > Affects Versions: 1.0.0 > Reporter: Sunzhe > Labels: Docker, mesos-containerizer > > The {{mesos-agent}} flags: > {code} > GLOG_v=1 ./bin/mesos-agent.sh \ > --master=zk://${MESOS_MASTER_IP}:2181/mesos \ > --ip=10.100.3.3 \ > --work_dir=${MESOS_WORK_DIR} \ > --isolation=cgroups/devices,gpu/nvidia,disk/du,docker/runtime,filesystem/linux \ > --enforce_container_disk_quota \ > --containerizers=mesos \ > --image_providers=docker \ > --executor_environment_variables="{}" > {code} > And the {{mesos-execute}} flags: > {code} > ./src/mesos-execute \ > --master=${MESOS_MASTER_IP}:5050 \ > --name=${INSTANCE_NAME} \ > --docker_image=${DOCKER_IMAGE} \ > --framework_capabilities=GPU_RESOURCES \ > --shell=false > {code} > But when {{./src/mesos-execute}}, the errors like below: > {code} > I0809 16:11:46.207875 25583 scheduler.cpp:172] Version: 1.0.0 > I0809 16:11:46.212442 25582 scheduler.cpp:461] New master detected at master@10.103.0.125:5050 > Subscribed with ID '168ab900-ee7e-4829-a59a-d16de956637e-0009' > Submitted task 'test' to agent '168ab900-ee7e-4829-a59a-d16de956637e-S1' > Received status update TASK_FAILED for task 'test' > 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/redis:pull" > Date: Tue, 09 Aug 2016 08:10:32 GMT > Content-Length: 145 > Strict-Transport-Security: max-age=31536000 > {"errors":[{"code":"UNAUTHORIZED","message":"authentication required","detail":[{"Type":"repository","Name":"library/redis","Action":"pull"}]}]} > ; Container destroyed while provisioning images' > source: SOURCE_AGENT > reason: REASON_CONTAINER_LAUNCH_FAILED > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)