[英]AWS elastic beanstalk 100.0 % of the requests are erroring with HTTP 4xx
My AWS Elastic Beanstalk account keeps getting down with the error: "Environment health has transitioned from Ok to Severe. 100.0 % of the requests are erroring with HTTP 4xx" On a daily basis.我的 AWS Elastic Beanstalk 账户不断出现以下错误:“环境健康状况已从正常转变为严重。100.0% 的请求出现错误,错误代码为 HTTP 4xx” 每天。
When looking at the server logs, it keeps getting down after access to several odd web pages (which do not exist).查看服务器日志时,它在访问几个奇怪的 web 页(不存在)后不断下降。 Part of the log:部分日志:
/var/log/httpd/error_log-XXX
[XXX] [:error] [pid XXX] [client XXXX] script '/var/www/html/w.php' not found or unable to stat
[XXX] [:error] [pid XXX] [client XXX] script '/var/www/html/sheep.php' not found or unable to stat
[XXX] [:error] [pid XXX] [client XXX] script '/var/www/html/qaq.php' not found or unable to stat
[XXX] [:error] [pid XXX] [client XXX] script '/var/www/html/db.init.php' not found or unable to stat
[XXX] [:error] [pid XXX] [client XXX] script '/var/www/html/db_session.init.php' not found or unable to stat
[XXX] [:error] [pid XXX] [client XXX] script '/var/www/html/db__.init.php' not found or unable to stat
[XXX] [:error] [pid XXX] [client XXX] script '/var/www/html/wp-admins.php' not found or unable to stat
[XXX] [:error] [pid XXX] [client XXX] script '/var/www/html/m.php' not found or unable to stat
[XXX] [:error] [pid XXX] [XXX] script '/var/www/html/db_dataml.php' not found or unable to stat
...
[XXX] [XXX] [pid XXX] XXX: Graceful restart requested, doing restart
Does anyone know whats going on?有谁知道发生了什么事? Thanks!谢谢!
Same thing happenend to me.同样的事情也发生在我身上。 AWS Elastic Beanstalk was checking if a root query was working. AWS Elastic Beanstalk 正在检查根查询是否正常工作。 This means that a request at the root "/" must respond with a HTTP code 200.这意味着根“/”的请求必须以 HTTP 代码 200 响应。
You maybe just need to fix that.你可能只需要解决这个问题。
I suspect it's some kind of attack (DDoS).我怀疑这是某种攻击(DDoS)。
Maybe someone is scanning your website on different ports and looking for a specific file (w.php) which could be a backdoor or something similar.也许有人正在不同端口上扫描您的网站并寻找可能是后门或类似文件的特定文件 (w.php)。 As the file does not exist it throws errors.由于该文件不存在,因此会引发错误。
I recommend the following steps:我推荐以下步骤:
https://benchmarks.cisecurity.org/downloads/multiform/ https://benchmarks.cisecurity.org/downloads/multiform/
I got the same error.我得到了同样的错误。 Changing the Health check configurations in the elastic beanstalk to a valid API solved it.将弹性 beantalk 中的健康检查配置更改为有效的 API 解决了它。
You can find the Health check configurations in the elastic beanstalk environment's configurations -> Load balancer -> in the Processes section mark and edit your process -> scroll to the Health check section.您可以在弹性 beantalk 环境的配置中找到健康检查配置 -> 负载均衡器 -> 在进程部分标记并编辑你的进程 -> 滚动到健康检查部分。
默认情况下,从 EBS 创建的 EC2 上的目标组是 http,如果您添加了证书,则在运行状况检查协议中将其更改为 https
I was having the same issue when I was deploying my spring boot application to elasticbeans talk.当我将我的 Spring Boot 应用程序部署到 ElasticBeans Talk 时,我遇到了同样的问题。 I was getting "4xx" errors.我收到“4xx”错误。 I fixed it by updating the security groups inside the ec2-instance created by this.我通过更新由此创建的 ec2-instance 中的安全组来修复它。 it was due to permission issue not accessible from local machine这是由于本地计算机无法访问权限问题
In my case my application had outgrown the instance type that was defined during the initial setup.在我的情况下,我的应用程序已经超出了初始设置期间定义的实例类型。
I upgraded my EB environment's instance type from t3.medium
to t3.large
and that resolved the issue.我将我的 EB 环境的实例类型从t3.medium
到t3.large
并解决了这个问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.