{"id":50,"date":"2015-03-17T19:57:27","date_gmt":"2015-03-17T18:57:27","guid":{"rendered":"http:\/\/dagobah.eu.org\/blog\/?p=50"},"modified":"2015-03-17T19:57:27","modified_gmt":"2015-03-17T18:57:27","slug":"elasticsearch-red-status","status":"publish","type":"post","link":"https:\/\/dagobah.eu.org\/blog\/?p=50","title":{"rendered":"Elasticsearch is in red status ?"},"content":{"rendered":"<p>Your elasticsearch don&#8217;t want to accept connexions or\u00a0queries anymore after a restart or a &#8220;Java heap&#8221; memory problem ?<\/p>\n<pre># curl -XGET 'http:\/\/localhost:9200\/_cluster\/health?pretty=true'\n{\n\"cluster_name\" : \"elasticsearch\",\n\"<strong>status<\/strong>\" : \"<strong>red<\/strong>\",\n[...]\n}\n<\/pre>\n<p>You will need to check if one the of indexes is &#8220;red&#8221; status by requesting the indices list. The command is:<\/p>\n<pre># curl 'localhost:9200\/_cat\/indices?v'\nhealth status index                pri rep docs.count docs.deleted store.size pri.store.size\n<strong>red<\/strong>    open   my_index-2014.07.21   3   1   10107061            0      1.7gb          1.7gb\nyellow open   my_index-2014.07.22   3   1    6728769            0      1.1gb          1.1gb\n<\/pre>\n<p>What is not said in Elasticsearch documentation is that you will need to delete the datas of the index that is in &#8220;red&#8221; status to be able to restart elasticsearch. I didn&#8217;t find any tool to repair indexes&#8230; So datas are losts. You was putting them in the cloud, they gone to space&#8230;<br \/>\nThat experience made me want to move to another noSQL database&#8230; To Be Continued \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Your elasticsearch don&#8217;t want to accept connexions or\u00a0queries anymore after a restart or a &#8220;Java heap&#8221; memory problem ? # curl -XGET &#8216;http:\/\/localhost:9200\/_cluster\/health?pretty=true&#8217; { &#8220;cluster_name&#8221; : &#8220;elasticsearch&#8221;, &#8220;status&#8221; : &#8220;red&#8221;, [&#8230;] } You will need to check if one the of indexes is &#8220;red&#8221; status by requesting the indices list. The command is: # curl &hellip; <a href=\"https:\/\/dagobah.eu.org\/blog\/?p=50\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Elasticsearch is in red status ?<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-50","post","type-post","status-publish","format-standard","hentry","category-nosql"],"_links":{"self":[{"href":"https:\/\/dagobah.eu.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/50","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dagobah.eu.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dagobah.eu.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dagobah.eu.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dagobah.eu.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=50"}],"version-history":[{"count":0,"href":"https:\/\/dagobah.eu.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/50\/revisions"}],"wp:attachment":[{"href":"https:\/\/dagobah.eu.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=50"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dagobah.eu.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=50"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dagobah.eu.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=50"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}