# ReadTimeoutError while trying to create a snapshot

**URL:** <https://discuss.elastic.co/t/readtimeouterror-while-trying-to-create-a-snapshot/20235>\
**Category:** Elasticsearch\
**Created:** [October 14, 2014, 10:03am UTC](https://discuss.elastic.co/t/readtimeouterror-while-trying-to-create-a-snapshot/20235 "2014-10-14T10:03:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![thales\_claro](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thales_claro/32/1207_2.png) [@thales\_claro](https://discuss.elastic.co/u/thales_claro)\
**Post date:** [October 14, 2014, 10:03am UTC](https://discuss.elastic.co/t/readtimeouterror-while-trying-to-create-a-snapshot/20235/1 "2014-10-14T10:03:38Z")

</div>

Hello,

this fuctions works perfectly when i try to create a snapshot of indexes  
lower than 100mb. But if i try to do it with one index that have more than  
600mb i receive an ugly exception.

Anyone know if i should use \*master\_timeout \*in order to get it working?  
----code----  
def create\_snapshot(self):  
"""  
Create new snapshot  
:return:  
"""  
print "Creating new snapshot"  
print "Snapshot: " + self.snap\_name  
try:  
self.es.snapshot.create(  
repository=self.repository\_name,  
snapshot=self.snap\_name,  
wait\_for\_completion="true"  
)  
except elasticsearch.ElasticsearchException:  
raise  
else:  
print "Snapshot created"  
finally:  
pass  
---code----

----- ERROR-----  
File "/usr/lib/python2.6/site-packages/elasticsearch/client/utils.py",  
line 68, in \_wrapped  
return func(\*args, params=params, \*\*kwargs)  
File "/usr/lib/python2.6/site-packages/elasticsearch/client/snapshot.py",  
line 19, in create  
repository, snapshot), params=params, body=body)  
File "/usr/lib/python2.6/site-packages/elasticsearch/transport.py", line  
284, in perform\_request  
status, headers, data = connection.perform\_request(method, url, params,  
body, ignore=ignore, timeout=timeout)  
File  
"/usr/lib/python2.6/site-packages/elasticsearch/connection/http\_urllib3.py",  
line 51, in perform\_request  
raise ConnectionError('N/A', str(e), e)  
elasticsearch.exceptions.ConnectionError:  
ConnectionError(HTTPConnectionPool(host='127.0.0.1', port=9200): Read timed  
out. (read timeout=10)) caused by:  
ReadTimeoutError(HTTPConnectionPool(host='127.0.0.1', port=9200): Read  
timed out. (read timeout=10))

----- ERROR-----

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/c4b27e68-c588-4d12-b8db-01b41c320687%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/c4b27e68-c588-4d12-b8db-01b41c320687%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [July 6, 2017, 12:56am UTC](https://discuss.elastic.co/t/readtimeouterror-while-trying-to-create-a-snapshot/20235/2 "2017-07-06T00:56:25Z")

</div>

Closed on July 6, 2017, 12:56am UTC


