gpt4 book ai didi

amazon-elastic-beanstalk - AWS Elasticbeanstalk 命令不适用 app_deploy

转载 作者:行者123 更新时间:2023-12-04 04:27:42 29 4
gpt4 key购买 nike

关闭。这个问题不满足Stack Overflow guidelines .它目前不接受答案。












想改善这个问题吗?更新问题,使其成为 on-topic对于堆栈溢出。

4 个月前关闭。




Improve this question




我有一个带有自动缩放器的 AWS ElasticBeanstalk,至少有 2 个实例可以滚动更新/部署。
每次我更改配置或执行部署时,1 个实例都会降级,因为应用程序部署不起作用。
在事件部分,我总是觉得一切都很成功。
如果我拉日志,我总是有错误 Ignoring not applicable command.解决这个问题的唯一方法是重建整个环境。但这不是使用时的解决方案。
有谁知道这里可能有什么问题?
这是日志的更多内容:

2020/11/09 09:07:26.391864 [INFO] Running command /bin/sh -c systemctl show -p ConsistsOf eb-app.target | cut -d= -f2
2020/11/09 09:07:26.396798 [INFO]

2020/11/09 09:07:26.396946 [INFO] Executing instruction: RunAppDeployPostDeployHooks
2020/11/09 09:07:26.396958 [INFO] The dir .platform/hooks/postdeploy/ does not exist in the application. Skipping this step...
2020/11/09 09:07:26.396963 [INFO] Executing cleanup logic
2020/11/09 09:07:26.397053 [INFO] CommandService Response: {"status":"SUCCESS","api_version":"1.0","results":[{"status":"SUCCESS","msg":"Engine execution has succeeded.","returncode":0,"events":[{"msg":"Instance deployment: You didn't include a 'composer.json' file in your source bundle. The deployment didn't install Composer dependencies.","timestamp":1604912843,"severity":"INFO"},{"msg":"Instance deployment completed successfully.","timestamp":1604912846,"severity":"INFO"}]}]}
2020/11/09 09:07:26.397207 [INFO] Platform Engine finished execution on command: app-deploy

2020/11/09 09:07:30.733429 [INFO] Starting...
2020/11/09 09:07:30.733481 [INFO] Starting EBPlatform-PlatformEngine
2020/11/09 09:07:30.733496 [INFO] reading event message file
2020/11/09 09:07:30.733631 [INFO] no eb envtier info file found, skip loading env tier info.
2020/11/09 09:07:30.733698 [INFO] Engine received EB command cfn-hup-exec

2020/11/09 09:07:30.803414 [INFO] Running command /bin/sh -c /opt/aws/bin/cfn-get-metadata -s arn:aws:cloudformation:eu-west-2:071446605374:stack/awseb-e-8xpbfxci3w-stack/9b3236e0-2266-11eb-848a-02d86b75fc8e -r AWSEBAutoScalingGroup --region eu-west-2
2020/11/09 09:07:31.154319 [INFO] Running command /bin/sh -c /opt/aws/bin/cfn-get-metadata -s arn:aws:cloudformation:eu-west-2:071446605374:stack/awseb-e-8xpbfxci3w-stack/9b3236e0-2266-11eb-848a-02d86b75fc8e -r AWSEBBeanstalkMetadata --region eu-west-2
2020/11/09 09:07:31.504159 [INFO] checking whether command app-deploy is applicable to this instance...
2020/11/09 09:07:31.504173 [INFO] this command is not applicable to the instance, thus instance shouldn't execute command
2020/11/09 09:07:31.504177 [INFO] skip command app-deploy for this instance...
2020/11/09 09:07:31.504184 [ERROR] Ignoring not applicable command.
2020/11/09 09:07:31.504188 [INFO] Executing cleanup logic
2020/11/09 09:07:31.504237 [INFO] CommandService Response: {"status":"FAILURE","api_version":"1.0","results":[{"status":"FAILURE","msg":"Ignoring not applicable command.","returncode":0,"events":[]}]}

2020/11/09 09:07:31.504389 [INFO] Platform Engine finished execution on command: app-deploy

最佳答案

当我在 container_commands 中添加新条目时收到相同的错误消息并尝试部署。
我通过将容量配置中的最小实例设置为 2 解决了这个问题。 (以前是 1 )。新实例启动后,部署运行没有问题。

关于amazon-elastic-beanstalk - AWS Elasticbeanstalk 命令不适用 app_deploy,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64748899/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com