- Newest
- Most votes
- Most comments
The 503 error you're experiencing could be due to several factors. Let's break down the issues and potential solutions:
-
Backend server capacity: The error message suggests that the backend server is at capacity. This could mean your EC2 instance is overwhelmed or not responding properly. Check your EC2 instance's resource utilization (CPU, memory, disk) to ensure it's not overloaded.
-
CORS (Cross-Origin Resource Sharing) issue: The error indicates a CORS policy problem when trying to access https://ipapi.co/json. This is likely unrelated to your 503 error but could be causing additional issues. You may need to configure CORS settings on your server or use a proxy to handle these requests.
-
Rate limiting: The 429 error (Too Many Requests) for ip-api.io suggests you might be hitting rate limits. This could be caused by excessive requests from your application.
-
Missing files: The log entries show attempts to access non-existent files (.env and jsconfig.json). While these are likely not the cause of the 503 error, they indicate potential misconfiguration or unnecessary requests.
-
Certificate update: Since the issue started after updating the security certificate, verify that the new certificate is properly installed and configured. An incorrectly configured SSL/TLS certificate can cause connection issues.
To resolve these issues:
- Check your EC2 instance's health, including CPU usage, memory, and disk space. Consider scaling up if necessary.
- Review your application's CORS configuration and ensure it's set up correctly for the required external resources.
- Implement rate limiting in your application to avoid hitting external API limits.
- Clean up any unnecessary file requests in your application.
- Double-check your SSL/TLS certificate configuration, ensuring it's properly installed and matches your domain.
- Review your load balancer configuration (if you're using one) to ensure it's correctly routing traffic to your EC2 instance.
- Check your security groups and network ACLs to ensure they allow the necessary inbound and outbound traffic.
If the issue persists after these steps, you may need to dig deeper into your application logs and server configuration to identify the root cause of the 503 error.
Sources
503 Service Temporarily Unavailable with load balancer | AWS re:Post
Resolve RequestCount metric drop in Application Load Balancer | AWS re:Post
CORS Access-Control-Allow-Origin Header missing - Api Gateway HTTP / EC2 | AWS re:Post
answered 2 years ago
Relevant content
asked 3 years ago

The auto answer didn't help and I have checked all that. All I changed was to update the certificate when requested by AWS. The other site using the certificate has no issues, it is just this one.