Amazon ECS 중지된 태스크 오류 메시지 업데이트

Amazon ECS 중지된 태스크 오류 메시지 업데이트

2024년 6월 14일부터 Amazon ECS 팀은 다음 표에 설명된 대로 중지된 태스크(stopped task) 오류 메시지를 변경하고 있어요. stopCode는 변경되지 않습니다. 애플리케이션이 정확한 오류 메시지 문자열에 의존한다면, 애플리케이션을 새 문자열로 업데이트해야 합니다.

출처: 문서

본문

2024년 6월 14일부터 Amazon ECS 팀은 다음 표에 설명된 대로 중지된 태스크 오류 메시지를 변경합니다. stopCode는 변경되지 않아요. 애플리케이션이 정확한 오류 메시지 문자열에 의존한다면 새 문자열로 애플리케이션을 업데이트해야 합니다. 질문이나 문제가 있으면 AWS Support로 문의하세요.

참고: 오류 메시지는 변경 대상이므로 자동화에 오류 메시지에 의존하는 것은 권장하지 않습니다.

CannotPullContainerError

기존 오류 메시지 새 오류 메시지
CannotPullContainerError: Error response from daemon: pull access denied for <repository>, repository does not exist or may require 'docker login': denied: User: <roleARN> CannotPullContainerError: The task can't pull the image. Check that the role has the permissions to pull images from the registry. Error response from daemon: pull access denied for <repository>, repository does not exist or may require 'docker login': denied: User: <roleARN> is not authorized to perform: ecr:BatchGetImage on resource: <image> because no identity-based policy allows the ecr:BatchGetImage action. CannotPullContainerError: The task can't pull the image. Check whether the image exists. Error response from daemon: pull access denied for <repository>, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
CannotPullContainerError: Error response from daemon: Get <imageURI>: net/http: request canceled while waiting for connection CannotPullContainerError: The task can't pull the image. Check your network configuration. Error response from daemon: Get <image>: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
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>. There is a connection issue between the task and the registry. 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

기존 오류 메시지 새 오류 메시지
Fetching secret data from AWS Secrets Manager in region <region>: secret <sercretARN>: ResourceNotFoundException: Secrets Manager can't find the specified secret. ResourceNotFoundException: The task can't retrieve the secret with ARN '<sercretARN>' from AWS Secrets Manager. Check whether the secret exists in the specified Region. ResourceNotFoundException: Fetching secret data from AWS Secrets Manager in region <region>: secret <sercretARN>: ResourceNotFoundException: Secrets Manager can't find the specified secret.

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. Please check your task network configuration. 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. Check your task network configuration. 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. There is a connection issue between the task and AWS Systems Manager Parameter Store. Check your task network configuration. 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. There is a connection issue between the task and 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. There is a connection issue between the task and 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

새 오류 메시지는 문제 원인(권한 부족, 네트워크 연결, 레지스트리 접근 등)을 더 명확히 설명하도록 개선되었어요.

더 알아보기 (Learn more)

  • 중지된 태스크 오류 확인에 대한 자세한 내용은 AWS 공식 문서를 참고해 주세요.