【问题标题】:During an aborted deployment, some instances may have deployed the new application version. To ensure all instances are running the same version在中止部署期间,某些实例可能已经部署了新的应用程序版本。确保所有实例都运行相同的版本
【发布时间】:2020-06-15 16:29:06
【问题描述】:

当我将 Dockerrun.aws.json 上传到 Elastic Beanstalk 时,我在 EB 中收到以下错误。

关于事件:

- During an aborted deployment, some instances may have deployed the new application version. To ensure all instances are running the same version, re-deploy the appropriate application version.
- Failed to deploy application.
- Unsuccessful command execution on instance id(s) 'i-XXXXXXXXXXXXXXX'. Aborting the operation.

关于健康:

Overall:
- Command failed on all instances. 
- Incorrect application version found on all instances. Expected version "Sample Application" (deployment 1).
i-XXXXXXXXXXXX:
- Application deployment failed at 2020-06-13T11:21:07Z with exit status 1 and error: Engine execution has encountered an error.
- Incorrect application version "43" (deployment 5). Expected version "Sample Application" (deployment 1).

关于日志:

Error response from daemon: You cannot remove a running container XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX. Stop the container before attempting removal or force remove
Error response from daemon: conflict: unable to delete XXXXXXXXXXXX (cannot be forced) - image is being used by running container XXXXXXXXXXXX

我的 Dockerrun.aws.json 文件:

{
  "AWSEBDockerrunVersion": "1",
  "Authentication": {
    "Bucket": "try-new-new",
    "Key": ".docker/config.json"
  },
  "Image": {
    "Name": "registry.gitlab.com/XXXXXXXXX/XXXXXXXXXX",
    "Update": "true"
  },
  "Ports": [
    {
      "ContainerPort": "80"
    }
  ]
}

我的 .docker/config.json 文件:

{
 "auths" :
 {
    "https://registry.gitlab.com/" :
   {
      "auth" : "XXXXXXXXXXXXXXXXX",
      "email" : "abc@abc.com"
    }
   }
} 

【问题讨论】:

  • 在控制台中,查看您的环境的日志。查看/var/log/eb-engine.log,它可能会提供更多关于您遇到的错误的信息。
  • 我在上面添加了它们,标题为“On Logs”
  • 上述错误实际上是预期的——eb-engine.log 文件末尾没有其他错误?

标签: amazon-web-services amazon-elastic-beanstalk


【解决方案1】:

我注意到问题是身份验证问题。不幸的是,我无法授权 AWS 从 Registry.gitlab.com 中提取容器。

目前(虽然不是一个完整的解决方案)我已经通过将我的容器移动到 AWS Elastic Container Repository 创建了一个解决方案。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2020-02-18
    • 2021-01-24
    • 1970-01-01
    • 2016-10-24
    • 1970-01-01
    • 1970-01-01
    • 2013-05-15
    • 2013-10-29
    相关资源
    最近更新 更多