在 eb deploy 之后,环境卡在 Health: 'Severe'。
它在最近的事件中显示以下警告:
Environment health has transitioned from Info to Severe. ELB processes are not healthy on all instances. Application update in progress on 1 instance. 0 out of 1 instance completed (running for 3 minutes). None of the instances are sending data. ELB health is failing or not available for all instances.
我无法通过 ssh 进入实例:连接被对等方重置。 (我通常能够毫无问题地通过 ssh 进入实例)。
请求日志功能不起作用,因为:
An error occurred requesting logs: Environment named portal-api-staging is in an invalid state for this operation. Must be Ready.
Cloudwatch 日志仅包含来自“近期事件”的相同消息。
我如何找出部署失败的原因?
AWS 文档说我应该将日志或 ssh 检查到实例中,但这些选项都不起作用。
最佳答案
我们发现了问题。部署不知何故陷入困境并回滚。将部署策略更改为 AllAtOnce
并禁用 RollingUpdateEnabled
修复了它。
https://stackoverflow.com/questions/72286546/
相关文章:
rust - 为什么 cargo build 在 git 更改锁时忽略锁文件?
mysql - 运行 mysql_secure_installation 时出现错误
javascript - React.useEffect 在依赖项发生变化时不会触发
docker-compose - 如何获取分离容器的 docker-compose exec 的控制
aws-lambda - 让 Alexa 通过自定义技能通过从后端调用任何 API 而不说 'Ale
visual-studio - 如何一次查找和替换多个不同的键值对?