How To Solve Issues Related to Log – EC2 API request failed; retry again. Reason was:

Get an Elasticsearch Check-Up

Check if your ES issues are caused from misconfigured settings
(Free 2 min process)

ES Check Up

Elasticsearch Error Guide In Page Navigation :

Troubleshooting Background – start here to get the full picture       
Related Issues – selected resources on related issues  
Log Context – usefull for experts
About Opster – offering a diffrent approach to troubleshoot Elasticsearch

Check My Elasticsearch 

Troubleshooting background

To troubleshoot Elasticsearch log “EC2 API request failed; retry again. Reason was:” it’s important to know common problems related to Elasticsearch concepts: cloud-aws, discovery, discovery-ec2, plugins, request. See below-detailed explanations complete with common problems, examples and useful tips.

To help troubleshoot related issues we have gathered selected Q&A from the community and issues from Github , please review the following for further information :

X Retries Exceeded With Url In Requ


Github Issue Number 28452


Log Context

Log ”EC2 API request failed; retry again. Reason was:” classname is
We have extracted the following from Elasticsearch source code to get an in-depth context :

         final Random rand = Randomness.get();
        final RetryPolicy retryPolicy = new RetryPolicy(
            (originalRequest; exception; retriesAttempted) -> {
               // with 10 retries the max delay time is 320s/320000ms (10 * 2^5 * 1 * 1000)
               logger.warn("EC2 API request failed; retry again. Reason was:"; exception);
               return 1000L * (long) (10d * Math.pow(2; retriesAttempted / 2.0d) * (1.0d + rand.nextDouble()));

About Opster

Incorporating deep knowledge and broad history of Elasticsearch issues. Opster’s solution identifies and predicts root causes of Elasticsearch problems, provides recommendations and can automatically perform various actions to manage, troubleshoot and prevent issues

We are constantly updating our analysis of Elasticsearch logs, errors, and exceptions. Sharing best practices and providing troubleshooting guides.

Learn more: Glossary | Blog| Troubleshooting guides | Error Repository

Need help with any Elasticsearch issue ? Contact Opster

Did this page help you?