![Beanstalk 中的“未从实例接收到数据”状态。无法使用 SSH 或 FTP](https://linux22.com/image/733739/Beanstalk%20%E4%B8%AD%E7%9A%84%E2%80%9C%E6%9C%AA%E4%BB%8E%E5%AE%9E%E4%BE%8B%E6%8E%A5%E6%94%B6%E5%88%B0%E6%95%B0%E6%8D%AE%E2%80%9D%E7%8A%B6%E6%80%81%E3%80%82%E6%97%A0%E6%B3%95%E4%BD%BF%E7%94%A8%20SSH%20%E6%88%96%20FTP.png)
我在 Beanstalk 上安装了 WordPress,并安装了 EC2 和 RDS。我对 AWS 还很陌生。昨天,网站变得没有响应,状态为“未从实例收到数据”。当我尝试请求完整日志时,它超时了。我无法通过 FTP 或 SSH 进入实例,因为它也超时了。我唯一看到的是系统日志,但我没有看到任何让我眼前一亮的东西。
查看事件,问题似乎从 4xx 错误开始,然后变成 5xx 错误。
以下是条目:
2019-02-14 12:10:55 UTC-0500 WARN Environment health has transitioned from Ok to Severe. None of the instances are sending data.
2019-02-12 22:54:41 UTC-0500 INFO Environment health has transitioned from Warning to Ok.
2019-02-12 22:53:41 UTC-0500 WARN Environment health has transitioned from Ok to Warning. 100.0 % of the requests are failing with HTTP 5xx.
2019-02-12 22:45:42 UTC-0500 INFO Environment health has transitioned from Warning to Ok.
2019-02-12 22:44:42 UTC-0500 WARN Environment health has transitioned from Ok to Warning. 100.0 % of the requests are failing with HTTP 5xx.
2019-02-12 14:21:19 UTC-0500 INFO Environment health has transitioned from Severe to Ok.
2019-02-12 14:20:19 UTC-0500 WARN Environment health has transitioned from Ok to Severe. None of the instances are sending data.
2019-02-12 10:31:36 UTC-0500 INFO Environment health has transitioned from Severe to Ok.
2019-02-12 10:30:36 UTC-0500 WARN Environment health has transitioned from Ok to Severe. 97.2 % of the requests are erroring with HTTP 4xx.
我不知道根本问题是什么。任何帮助或指导都将不胜感激。
答案1
我遇到过类似的问题,比如无法使用 SSH,也无法在 beanstalk 控制台中看到日志。问题是由于我的 t2.mini 实例导致内存不足。将实例类型更改为 t2.small 甚至 t2.medium,问题应该会得到解决(除非您的内存不足是由某些编码错误引起的)