【发布时间】: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