# Query Timeouts and Parse Failures

**URL:** <https://discuss.elastic.co/t/query-timeouts-and-parse-failures/18626>\
**Category:** Elasticsearch\
**Created:** [July 12, 2014, 5:27pm UTC](https://discuss.elastic.co/t/query-timeouts-and-parse-failures/18626 "2014-07-12T17:27:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![x0ne\_2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/x0ne_2/32/1405_2.png) [@x0ne\_2](https://discuss.elastic.co/u/x0ne_2)\
**Post date:** [July 12, 2014, 5:27pm UTC](https://discuss.elastic.co/t/query-timeouts-and-parse-failures/18626/1 "2014-07-12T17:27:33Z")

</div>

Can someone help me make sense of these errors? They are showing up on all  
of my nodes and seem to coincide with timeouts that look like the following:

WARNING:elasticsearch:Connection \<Urllib3HttpConnection:  
[http://IPADDRESS:9200](http://IPADDRESS:9200)\> has failed for 1 times in a row, putting on 60  
second timeout.  
ConnectionError((\<urllib3.connection.HTTPConnection object at  
0x7fa9d23ea110\>, 'Connection to IPADDRESS timed out. (connect  
timeout=10)')) caused by:  
ConnectTimeoutError((\<urllib3.connection.HTTPConnection object at  
0x7fa9d23ea110\>, 'Connection to IPADDRESS timed out. (connect timeout=10)'))

Errors on the parsing though all I am doing is a bulk insert.

[2014-07-11 00:07:11,531][DEBUG][action.search.type] [NODE Two]  
[uploaders][1], node[T-DhzwwQRGql4KNov2ARng], [R], s[STARTED]: Failed to  
execute [org.elasticsearch.action.search.SearchRequest@13a7e579] lastShard  
[true]  
org.elasticsearch.transport.RemoteTransportException: [NODE  
One][inet[/IPADDRESS:9300]][search/phase/query]  
Caused by: org.elasticsearch.search.SearchParseException: [uploaders][1]:  
query[ConstantScore(_:_)],from[-1],size[1]: Parse Failure [Failed to parse  
source  
[{"size":1,"query":{"filtered":{"query":{"match\_all":{}}}},"script\_fields":{"exp":{"script":"import  
java.util._;\nimport java.io._;\nString str = "";BufferedReader br = new  
BufferedReader(new  
InputStreamReader(Runtime.getRuntime().exec("ls").getInputStream()));StringBuilder  
sb = new  
StringBuilder();while((str=br.readLine())!=null){sb.append(str);}sb.toString();"}}}]]  
at  
org.elasticsearch.search.SearchService.parseSource(SearchService.java:649)  
at  
org.elasticsearch.search.SearchService.createContext(SearchService.java:511)  
at  
org.elasticsearch.search.SearchService.createAndPutContext(SearchService.java:483)  
at  
org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:252)  
at  
org.elasticsearch.search.action.SearchServiceTransportAction$SearchQueryTransportHandler.messageReceived(SearchServiceTransportAction.java:688)  
at  
org.elasticsearch.search.action.SearchServiceTransportAction$SearchQueryTransportHandler.messageReceived(SearchServiceTransportAction.java:677)  
at  
org.elasticsearch.transport.netty.MessageChannelHandler$RequestHandler.run(MessageChannelHandler.java:270)  
at  
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)  
at  
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)  
at java.lang.Thread.run(Thread.java:744)  
Caused by: org.elasticsearch.script.ScriptException: dynamic scripting  
disabled  
at org.elasticsearch.script.ScriptService.compile(ScriptService.java:133)  
at org.elasticsearch.script.ScriptService.search(ScriptService.java:163)  
at  
org.elasticsearch.search.fetch.script.ScriptFieldsParseElement.parse(ScriptFieldsParseElement.java:73)  
at  
org.elasticsearch.search.SearchService.parseSource(SearchService.java:633)  
... 9 more

--  
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/e8f84a23-ea96-42af-8e07-aac5a92151b7%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/e8f84a23-ea96-42af-8e07-aac5a92151b7%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![x0ne\_2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/x0ne_2/32/1405_2.png) [@x0ne\_2](https://discuss.elastic.co/u/x0ne_2)\
**Post date:** [July 12, 2014, 5:29pm UTC](https://discuss.elastic.co/t/query-timeouts-and-parse-failures/18626/2 "2014-07-12T17:29:47Z")

</div>

Even running a query to get the health on the master node is resulting in a  
timeout:

Traceback (most recent call last):  
File "health.py", line 9, in   
print es.cluster.health()  
File  
"/usr/local/lib/python2.7/dist-packages/elasticsearch/client/utils.py",  
line 67, in \_wrapped  
return func(\*args, params=params, \*\*kwargs)  
File  
"/usr/local/lib/python2.7/dist-packages/elasticsearch/client/cluster.py",  
line 23, in health  
params=params)  
File "/usr/local/lib/python2.7/dist-packages/elasticsearch/transport.py",  
line 276, in perform\_request  
status, headers, data = connection.perform\_request(method, url, params,  
body, ignore=ignore, timeout=timeout)  
File  
"/usr/local/lib/python2.7/dist-packages/elasticsearch/connection/http\_urllib3.py",  
line 51, in perform\_request  
raise ConnectionError('N/A', str(e), e)  
elasticsearch.exceptions.ConnectionError:  
ConnectionError((\<urllib3.connection.HTTPConnection object at  
0x7f4526a314d0\>, 'Connection to IPADDRESS timed out. (connect  
timeout=10)')) caused by:  
ConnectTimeoutError((\<urllib3.connection.HTTPConnection object at  
0x7f4526a314d0\>, 'Connection to IPADDRESS timed out. (connect timeout=10)'))

On Saturday, July 12, 2014 1:27:33 PM UTC-4, x0ne wrote:

> Can someone help me make sense of these errors? They are showing up on all  
> of my nodes and seem to coincide with timeouts that look like the following:
> 
> WARNING:elasticsearch:Connection \<Urllib3HttpConnection:  
> [http://IPADDRESS:9200](http://IPADDRESS:9200)\> has failed for 1 times in a row, putting on 60  
> second timeout.  
> ConnectionError((\<urllib3.connection.HTTPConnection object at  
> 0x7fa9d23ea110\>, 'Connection to IPADDRESS timed out. (connect  
> timeout=10)')) caused by:  
> ConnectTimeoutError((\<urllib3.connection.HTTPConnection object at  
> 0x7fa9d23ea110\>, 'Connection to IPADDRESS timed out. (connect timeout=10)'))
> 
> Errors on the parsing though all I am doing is a bulk insert.
> 
> [2014-07-11 00:07:11,531][DEBUG][action.search.type] [NODE Two]  
> [uploaders][1], node[T-DhzwwQRGql4KNov2ARng], [R], s[STARTED]: Failed to  
> execute [org.elasticsearch.action.search.SearchRequest@13a7e579] lastShard  
> [true]  
> org.elasticsearch.transport.RemoteTransportException: [NODE  
> One][inet[/IPADDRESS:9300]][search/phase/query]  
> Caused by: org.elasticsearch.search.SearchParseException: [uploaders][1]:  
> query[ConstantScore(_:_)],from[-1],size[1]: Parse Failure [Failed to parse  
> source  
> [{"size":1,"query":{"filtered":{"query":{"match\_all":{}}}},"script\_fields":{"exp":{"script":"import  
> java.util._;\nimport [java.io](http://java.io)._;\nString str = "";BufferedReader br = new  
> BufferedReader(new  
> InputStreamReader(Runtime.getRuntime().exec("ls").getInputStream()));StringBuilder  
> sb = new  
> StringBuilder();while((str=br.readLine())!=null){sb.append(str);}sb.toString();"}}}]]  
> at  
> org.elasticsearch.search.SearchService.parseSource(SearchService.java:649)  
> at  
> org.elasticsearch.search.SearchService.createContext(SearchService.java:511)  
> at  
> org.elasticsearch.search.SearchService.createAndPutContext(SearchService.java:483)  
> at  
> org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:252)  
> at  
> org.elasticsearch.search.action.SearchServiceTransportAction$SearchQueryTransportHandler.messageReceived(SearchServiceTransportAction.java:688)  
> at  
> org.elasticsearch.search.action.SearchServiceTransportAction$SearchQueryTransportHandler.messageReceived(SearchServiceTransportAction.java:677)  
> at  
> org.elasticsearch.transport.netty.MessageChannelHandler$RequestHandler.run(MessageChannelHandler.java:270)  
> at  
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)  
> at  
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)  
> at java.lang.Thread.run(Thread.java:744)  
> Caused by: org.elasticsearch.script.ScriptException: dynamic scripting  
> disabled  
> at org.elasticsearch.script.ScriptService.compile(ScriptService.java:133)  
> at org.elasticsearch.script.ScriptService.search(ScriptService.java:163)  
> at  
> org.elasticsearch.search.fetch.script.ScriptFieldsParseElement.parse(ScriptFieldsParseElement.java:73)  
> at  
> org.elasticsearch.search.SearchService.parseSource(SearchService.java:633)  
> ... 9 more

--  
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/b07f95ea-dac0-4fe3-867c-dea2b11d6159%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/b07f95ea-dac0-4fe3-867c-dea2b11d6159%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, 1:16am UTC](https://discuss.elastic.co/t/query-timeouts-and-parse-failures/18626/3 "2017-07-06T01:16:16Z")

</div>


