Disabling GCE discovery Can not get list of nodes – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 6.8-8.9

Briefly, this error occurs when Elasticsearch is unable to retrieve the list of nodes from Google Cloud Engine (GCE) for cluster discovery. This could be due to network issues, incorrect configuration, or insufficient permissions. To resolve this, ensure that the GCE API is enabled and accessible, check your discovery settings in Elasticsearch configuration, and verify that the Elasticsearch instance has the necessary permissions to access the GCE API. Also, ensure that your network settings allow communication between your Elasticsearch cluster and GCE.

This guide will help you check for common problems that cause the log ” disabling GCE discovery. Can not get list of nodes ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: plugins, discovery-gce, discovery.

Log Context

Log “disabling GCE discovery. Can not get list of nodes” classname is GceInstancesServiceImpl.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

            a.addAll(b);
            return a;
        });

        if (instances.isEmpty()) {
            logger.warn("disabling GCE discovery. Can not get list of nodes");
        }

        return instances;
    }

 

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?