MasterNotDiscovered Error

Hi, first of all sorry for my bad English.
I need help for Elasticsearch server. I got 1 Node and 1 Cluster on the same server. I am using Elasticsearch with Laravel. I am getting this error when i try to communicate with server "MasterNotDiscovered".

This is the elasticsearch error when i try to make a search on laravel

{"error":"ClusterBlockException[blocked by: [SERVICE_UNAVAILABLE/1/state not recovered / initialized];]","status":503}

Logs:

{
  "status" : 503,
  "name" : "node1",
  "cluster_name" : "AbCluster",
  "version" : {
    "number" : "1.7.3",
    "build_hash" : "05d4530971ef0ea46d0f4fa6ee64dbc8df659682",
    "build_timestamp" : "2015-10-15T09:14:17Z",
    "build_snapshot" : false,
    "lucene_version" : "4.10.4"
  },
  "tagline" : "You Know, for Search"
}
{
  "cluster_name" : "AbCluster",
  "nodes" : {
    "I6i-pkNWRCyAGb_I1bWScg" : {
      "name" : "node1",
      "transport_address" : "inet[/77.223.139.146:9300]",
      "host" : "localhost.localdomain",
      "ip" : "127.0.0.1",
      "version" : "1.7.3",
      "build" : "05d4530",
      "http_address" : "inet[/77.223.139.146:9200]",
      "attributes" : {
        "max_local_storage_nodes" : "2",
        "data" : "false",
        "master" : "false"
      },
      "transport" : {
        "bound_address" : "inet[/0:0:0:0:0:0:0:0:9300]",
        "publish_address" : "inet[/77.223.139.146:9300]",
        "profiles" : { }
      }
    }
  }
}

And this is my YML file
http://paste.ubuntu.com/25381825/

curl -XGET localhost:9200/laravel/products/_all
{"error":"ClusterBlockException[blocked by: [SERVICE_UNAVAILABLE/1/state not recovered / initialized];]","status":503}

I see that the cluster name in your yml file is different from the one which the cluster you are trying to connect to. od-fts1 vs AbCluster.

As per your yml file, it is pointing to cluster name "od-fts1" but your API is for "AbCluster".
There is some previous cluster data stored which is still pointing. For this remove the data node for that cluster which have been stored in /var/lib/elasticsearch/AbCluster/nodes ( location can be different as per your installation) .
After that again start the elasticsearch service and execute the APIs.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.