# Upgrade elasticsearch 2.0 to 5.2 -indexing not working

**URL:** <https://discuss.elastic.co/t/upgrade-elasticsearch-2-0-to-5-2-indexing-not-working/80241>\
**Category:** Elasticsearch\
**Created:** [March 28, 2017, 5:47am UTC](https://discuss.elastic.co/t/upgrade-elasticsearch-2-0-to-5-2-indexing-not-working/80241 "2017-03-28T05:47:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anur](https://avatars.discourse-cdn.com/v4/letter/a/8e8cbc/32.png) [@anur](https://discuss.elastic.co/u/anur)\
**Post date:** [March 28, 2017, 5:47am UTC](https://discuss.elastic.co/t/upgrade-elasticsearch-2-0-to-5-2-indexing-not-working/80241/1 "2017-03-28T05:47:34Z")

</div>

HI,

upgraded elasticsearch 2.0 to 5.2. I am able to see old data.when i am trying do index using python 2.7 code(it was working fine with elasticsearch 2.0), the following exception occuring.

File "", line 1, in   
File "/usr/local/lib/python2.7/site-packages/elasticsearch/client/utils.py", line 73, in \_wrapped  
return func(\*args, params=params, \*\*kwargs)  
File "/usr/local/lib/python2.7/site-packages/elasticsearch/client/indices.py", line 107, in create  
params=params, body=body)  
File "/usr/local/lib/python2.7/site-packages/elasticsearch/transport.py", line 318, in perform\_request  
status, headers, data = connection.perform\_request(method, url, params, body, ignore=ignore, timeout=timeout)  
File "/usr/local/lib/python2.7/site-packages/elasticsearch/connection/http\_urllib3.py", line 123, in perform\_request  
raise ConnectionError('N/A', str(e), e)  
elasticsearch.exceptions.ConnectionError: ConnectionError(\<urllib3.connection.HTTPConnection object at 0x10f4b5650\>: Failed to establish a new connection: [Errno 61] Connection refused) caused by: NewConnectionError(\<urllib3.connection.HTTPConnection object at 0x10f4b5650\>: Failed to establish a new connection: [Errno 61] Connection refused)

Any help is appreciated.

Thanks

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [March 31, 2017, 7:01am UTC](https://discuss.elastic.co/t/upgrade-elasticsearch-2-0-to-5-2-indexing-not-working/80241/2 "2017-03-31T07:01:24Z")

</div>

Hey,

have you configured Elasticsearch to listen/bind on interfaces other than the default one? By default Elasticsearch 5 binds to localhost only and thus is not available on the network.

--Alex

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 28, 2017, 7:01am UTC](https://discuss.elastic.co/t/upgrade-elasticsearch-2-0-to-5-2-indexing-not-working/80241/3 "2017-04-28T07:01:31Z")

</div>

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