创建任务时无用的Amazon ECS错误消息 [英] Useless Amazon ECS Error Message when creating tasks

查看:83
本文介绍了创建任务时无用的Amazon ECS错误消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Ubuntu实例上使用 ecs代理容器,我可以注册

Using the ecs agent container on an Ubuntu instance, I am able to register the agent with my cluster.

我也在该集群中创建了一项服务,还创建了任务定义。当我尝试将任务添加到群集时,收到了无用的错误消息:

I also have a service created in that cluster and task definitions as well. When I try to add a task to the cluster I get the useless error message:

Run tasks failed
Reasons : ["ATTRIBUTE"]

ecs代理日志中没有相关的错误消息。对如何获得更好的调试或问题可能有什么想法?

The ecs agent log has no related error message. Any thoughts on how I can get better debugging or what the issue might be?

cli也返回相同的无用错误消息

The cli also returns the same useless error message

{
    "tasks": [],
    "failures": [
        {
            "arn": "arn:aws:ecs:us-east-1:sssssss:container-instance/sssssssssssss",
            "reason": "ATTRIBUTE"
        }
    ]
}


推荐答案

来自故障排除指南


ATTRIBUTE(容器实例ID)

ATTRIBUTE (container instance ID)

您的任务定义包含一个参数,该参数要求您的容器实例上不存在特定的容器实例属性。有关特定任务定义参数和代理配置变量需要哪些属性的更多信息,请参阅任务定义参数 Amazon ECS容器代理配置

Your task definition contains a parameter that requires a specific container instance attribute that is not available on your container instances. For more information on which attributes are required for specific task definition parameters and agent configuration variables, see Task Definition Parameters and Amazon ECS Container Agent Configuration.

您可以通过查看<$ c $来找到任务定义所需的属性。 c> requiredAttributes 字段。您可以在 DescribeContainerInstances API调用的结果中找到容器实例存在的属性。

You can find the attributes required for your task definition by looking at the requiredAttributes field. You can find the attributes that are present for your container instances in the result of the DescribeContainerInstances API call.

这篇关于创建任务时无用的Amazon ECS错误消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆