503 Service unavailable

0

Recently (over 2wks ago) I received an email from AWS with subject line "Amazon EC2 Maintenance: Instance scheduled for reboot..." about a server maintenance scheduled for yesterday (2023-04-26 08:00:00 UTC). Today is the 27th, and the website we are hosting in the server is no longer reachable. I get this message: "Service Unavailable The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later," and nothing I do will fix the problem.

Please any help I can get to resolve this thorny issue will be greatly appreciated.

Thanks

已提问 1 年前507 查看次数
2 回答
0
已接受的回答

They would have stopped and restarted your EC2 where your website is hosted.

I suspect either it didnt get powered back on OR its come up with an issue. Check the EC2 where your website is hosted and make sure

  1. The box came back up
  2. Its not powered off
  3. Your IIS, Apache, httpd services are running etc. Check your webserver logs etc.
profile picture
专家
已回答 1 年前
profile picture
专家
已审核 2 个月前
  • Thanks very much. I checked the system logs and found an entry that read "Failed to start The PHP FastCGI Process Manager.See 'systemctl status php-fpm.service' for details". I then re-installed php, and rebooted the server. That seems to have done the trick.

0

You don't say how your service is configured but the simplest option here is that you're running a single server without a load balancer.

If that's the case and you're receiving a 503 error it means that the web server (and therefore the instance itself) is running but there is something wrong in the setup of the web server - it's something you'd need to correct by logging into the instance. The error message you're seeing is being generated by the web server software.

If you're using a load balancer then the same is probably true - you need to check that the server is passing health checks and that the load balancer thinks it is healthy - only then will it pass requests to the web server.

profile pictureAWS
专家
已回答 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则