# Searchkick: Net::ReadTimeout

**URL:** https://discuss.elastic.co/t/searchkick-net-readtimeout/45044
**Category:** Elasticsearch
**Created:** [March 21, 2016, 8:27pm UTC](https://discuss.elastic.co/t/searchkick-net-readtimeout/45044 "2016-03-21T20:27:40Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![mkralik](https://avatars.discourse-cdn.com/v4/letter/m/bcef8e/32.png) [@mkralik](https://discuss.elastic.co/u/mkralik)
#### Post date: [March 21, 2016, 8:27pm UTC](https://discuss.elastic.co/t/searchkick-net-readtimeout/45044/1 "2016-03-21T20:27:40Z")

</div>

I have a Ruby on Rails application with searchkick gem. I recently upgraded my elasticsearch from 1.8 to 2.0 (same with 2.2) and problems have started since that time. Before it worked like a charm.

When I try to reindex products (40k), I get the Net::ReadTimeout error after 1000 products are reindexed (the batch\_size is set to 1000 by default).

I tried to set batch\_size for searchkick to 1, 100, 200, and even then I get the Net::ReadTimeout error. When it was set to 1, it reindexed almost 20k products, if 100, only 100, if 200 only 200 products when it threw that error.

Do you know why this error occurs and how to avoid it? I have tried so many things (increase timeout from 1 to 10 minutes on the server, delete indexes, set the batch\_size many times..) and nothing helped.

I have spent on this already few days and am totally stuck, will appreciate any ideas or help.

Thanks a lot for your time, Miroslav

---

<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 5, 2017, 11:06pm UTC](https://discuss.elastic.co/t/searchkick-net-readtimeout/45044/2 "2017-07-05T23:06:27Z")

</div>


