Fetching nodes from external cluster failed – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 6.8-6.8

Briefly, this error occurs when Elasticsearch is unable to retrieve nodes from an external cluster, possibly due to network issues, incorrect configuration, or version incompatibility. To resolve this, ensure that the network connection between the clusters is stable and secure. Check the configuration settings for any errors, particularly those related to the external cluster. Lastly, verify that the versions of Elasticsearch in both clusters are compatible. If not, consider upgrading or downgrading to a compatible version.

This guide will help you check for common problems that cause the log ” Fetching nodes from external cluster {} failed ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: cluster and node.

Log Context

Log “Fetching nodes from external cluster {} failed” classname is RemoteClusterConnection.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

                     }
                    listener.onResponse(null);
                } catch (CancellableThreads.ExecutionCancelledException ex) {
                    listener.onFailure(ex); // we got canceled - fail the listener and step out
                } catch (Exception ex) {
                    logger.warn(() -> new ParameterizedMessage("fetching nodes from external cluster {} failed"; clusterAlias); ex);
                    collectRemoteNodes(seedNodes; transportService; connectionManager; listener);
                }
            }

            
Override



 

How helpful was this guide?

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?