

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# Amazon ECS 已停止任務錯誤訊息更新
<a name="stopped-tasks-error-messages-updates"></a>

自 2024 年 6 月 14 日起，Amazon ECS 團隊將變更已停止任務錯誤訊息，如下表所述。`stopCode` 不會變更。如果應用程式依賴確切的錯誤訊息字串，您必須使用新字串來更新應用程式。如需相關問題的協助，請聯絡 AWS 支援。

**注意**  
建議不要依賴自動化的錯誤訊息，因為錯誤訊息可能會有所變更。

## CannotPullContainerError
<a name="cannot-pull-container-error-changes"></a>


| 舊錯誤訊息 | 新錯誤訊息 | 
| --- | --- | 
| CannotPullContainerError: Error response from daemon: pull access denied for {{repository}}, repository does not exist or may require 'docker login': denied: User: {{roleARN}} | [See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/AmazonECS/latest/developerguide/stopped-tasks-error-messages-updates.html)  | 
|  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
<a name="resourcenotfound-error-changes"></a>


| 舊錯誤訊息 | 新錯誤訊息 | 
| --- | --- | 
| 從 AWS Secrets Manager {{區域}}擷取秘密資料：秘密 {{sercretARN}}：ResourceNotFoundException：Secrets Manager 找不到指定的秘密。 | ResourceNotFoundException：任務無法從中擷取具有 ARN '{{sercretARN}}' 的秘密 AWS Secrets Manager。Check whether the secret exists in the specified Region. ResourceNotFoundException：從 AWS Secrets Manager {{區域}}擷取秘密資料：秘密 {{sercretARN}}：ResourceNotFoundException：Secrets Manager 找不到指定的秘密。 | 

## ResourceInitializationError
<a name="resourceinitialization-error-changes"></a>


| 舊錯誤訊息 | 新錯誤訊息 | 
| --- | --- | 
| 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 | 