title: Elastic search : Connection Refused
body: <p>Up until 3 days ago my elastic search(local installation) was working perfectly fine. </p>
  
  <p>Today it stopped working given as connection error.</p>
  
  <pre><code>requests.exceptions.ConnectionError: HTTPConnectionPool(host='127.0.0.1', port=9200): Max retries exceeded with url:
  </code></pre>
  
  <p>I tried the following options too.</p>
  
  <pre><code>curl -XGET http://127.0.0.1:9200
  curl: (7) Failed to connect to 127.0.0.1 port 9200: Connection refused
  </code></pre>
  
  <p>I tried running it manually using the below code and received the following error.</p>
  
  <pre><code>cd /usr/local/Cellar/elasticsearch/2.4.0
  
  ElasticsearchException[failed to read [id:206, legacy:false, file:/usr/local/var/elasticsearch/elasticsearch_sam/nodes/0/_state/global-206.st]]; nested: IOException[failed to read [id:206, legacy:false, file:/usr/local/var/elasticsearch/elasticsearch_sam/nodes/0/_state/global-206.st]]; nested: CorruptStateException[Format version is not supported (resource SimpleFSIndexInput(path="/usr/local/var/elasticsearch/elasticsearch_sam/nodes/0/_state/global-206.st"))
  </code></pre>
  
  <p>The Elastic search version I am using is 2.4.0 and java version is java version "1.8.0_101" and I am running a MAC system</p>
  
  <p>I have all my data stored in Elastic search without any back up. </p>
  
  <p>I'd be glad if anybody could help me with the situation</p>
  
  <p>Thanks</p>