Amazon ECS 已停止任务错误消息更新 - Amazon Elastic Container Service

Amazon ECS 已停止任务错误消息更新

从 2024 年 6 月 14 日起,Amazon ECS 团队将更改已停止任务错误消息,如下表所述。stopCode 不会更改。如果您的应用程序依赖于确切的错误消息字符串,则必须使用新字符串更新应用程序。如需有关疑问或问题的帮助,请联系 AWS Support。

注意

我们建议您不要依赖错误消息进行自动化,因为错误消息可能会随时更改。

CannotPullContainerError

旧的错误消息。 新的错误消息
CannotPullContainerError:来自进程守护程序的错误响应:repository 拉取访问被拒绝,该存储库不存在或者可能需要“docker 登录”:已拒绝:用户:roleARN
  • CannotPullContainerError:任务无法拉取映像。请检查该角色是否具有从注册表中拉取映像的权限。来自进程守护程序的错误响应:repository 拉取访问被拒绝,该存储库不存在或者可能需要“docker 登录”:已拒绝:用户:roleARN 无权在资源:image 上执行:ecr:BatchGetImage 操作,因为没有基于身份的策略允许 ecr:BatchGetImage 操作。

  • CannotPullContainerError:任务无法拉取映像。请检查映像是否存在。来自进程守护程序的错误响应:repository 拉取访问被拒绝,该存储库不存在或者可能需要“docker 登录”:已拒绝:访问资源的请求已被拒绝。

CannotPullContainerError:来自进程守护程序的错误响应:获取 imageURI:net/http:在等待连接期间请求被取消 CannotPullContainerError:任务无法拉取映像。请检查网络配置。来自进程守护程序的错误响应:获取 image:net/http:在等待连接期间请求被取消(在等待标头时超出了 Client.Timeout)
CannotPullContainerError: ref pull has been retried 5 time(s): failed to copy: httpReadSeeker: failed open: failed to do request: Get registry-uri: dial tcp <ip>:<port> i/o timeout CannotPullContainerError: The task cannot pull image-uri from the registry registry-uri. 任务与注册表之间存在连接问题。Check your task network configuration. : failed to copy: httpReadSeeker: failed open: failed to do request: Get registry-uri: dial tcp <ip>:<port> i/o timeout

ResourceNotFoundException

旧的错误消息。 新的错误消息
正在从 region 区域中的 AWS Secrets Manager 获取密钥数据:密钥 sercretARN:ResourceNotFoundException:Secrets Manager 找不到指定的密钥。 ResourceNotFoundException:任务未能在 AWS Secrets Manager 中检索到 ARN 为“sercretARN”的密钥。请检查指定区域中是否存在该密钥。ResourceNotFoundException:正在从 region 区域中的 AWS Secrets Manager 获取密钥数据:密钥 sercretARN:ResourceNotFoundException:Secrets Manager 找不到指定的密钥。

ResourceInitializationError

旧的错误消息。 新的错误消息
ResourceInitializationError: unable to pull secrets or registry auth: execution resource retrieval failed: unable to retrieve ecr registry auth: service call has been retried 3 time(s): RequestError: send request failed caused by: Post "https://api.ecr.us-east-1.amazonaws.com/": dial tcp <ip>:<port>: i/o timeout. 请检查任务网络配置。 ResourceInitializationError: unable to pull secrets or registry auth: The task cannot pull registry auth from Amazon ECR: There is a connection issue between the task and Amazon ECR. 请检查任务网络配置。RequestError: send request failed caused by: Post "https://api.ecr.us-east-1.amazonaws.com": dial tcp <ip>:<port>: i/o timeout
ResourceInitializationError: unable to pull secrets or registry auth: execution resource retrieval failed: unable to retrieve secrets from ssm: service call has been retried 5 time(s): RequestCanceled: request context canceled caused by: context deadline exceeded ResourceInitializationError: unable to pull secrets or registry auth: unable to retrieve secrets from ssm: The task cannot pull secrets from AWS Systems Manager. 任务与 AWS Systems Manager Parameter Store 之间存在连接问题。请检查任务网络配置。RequestCanceled: request context canceled caused by: context deadline exceeded
ResourceInitializationError: failed to download env files: file download command: non empty error stream: RequestCanceled: request context canceled caused by: context deadline exceeded ResourceInitializationError: failed to download env files: The task can't download the environment variable files from Amazon S3. 任务与 Amazon S3 之间存在连接问题。Check your task network configuration. service call has been retried 5 time(s): RequestCanceled: request context canceled caused by: context deadline exceeded
ResourceInitializationError: failed to validate logger args::signal:killed ResourceInitializationError: failed to validate logger args: The task cannot find the Amazon CloudWatch log group defined in the task definition. 任务与 Amazon CloudWatch 之间存在连接问题。Check your network configuration. : signal: killed
ResourceInitializationError: unable to pull secrets or registry auth: pull command failed: : signal: killed ResourceInitializationError: unable to pull secrets or registry auth: Check your task network configuration. : signal: killed