I am running ELK stack on Azure using official template.
Intermittently, getting this error in kibana:
{"statusCode":500,"error":"Internal Server Error","message":"An internal server error occurred"}
Also, elastic server is also not responding.
When I restart the kibana and elastic server from Azure portal, it's working fine. Why is this happening?
Empty log file: /var/log/kibana.log
Elasticsearch logs: /var/log/elasticsearch/my-cluster.log:
[2019-02-22T14:57:18,796][DEBUG][o.e.a.s.TransportSearchAction] [data-0] [158940] Failed to execute fetch phase
org.elasticsearch.transport.RemoteTransportException: [data-0][10.0.40.6:9300][indices:data/read/search[phase/fetch/id]]
Caused by: org.elasticsearch.search.SearchContextMissingException: No search context found for id [158940]
at org.elasticsearch.search.SearchService.getExecutor(SearchService.java:520) ~[elasticsearch-6.6.0.jar:6.6.0]
at org.elasticsearch.search.SearchService.runAsync(SearchService.java:374) ~[elasticsearch-6.6.0.jar:6.6.0]
at org.elasticsearch.search.SearchService.executeFetchPhase(SearchService.java:563) ~[elasticsearch-6.6.0.jar:6.6.0]
at org.elasticsearch.action.search.SearchTransportService$11.messageReceived(SearchTransportService.java:405) ~[elasticsearch-6.6.0.jar:6.6.0]
at org.elasticsearch.transport.TransportService.sendChildRequest(TransportService.java:586) [elasticsearch-6.6.0.jar:6.6.0]
at org.elasticsearch.transport.TransportService.sendChildRequest(TransportService.java:577) [elasticsearch-6.6.0.jar:6.6.0]
at org.elasticsearch.action.search.SearchTransportService.sendExecuteFetch(SearchTransportService.java:184) [elasticsearch-6.6.0.jar:6.6.0]
at org.elasticsearch.action.search.SearchTransportService.sendExecuteFetch(SearchTransportService.java:174) [elasticsearch-6.6.0.jar:6.6.0]
at org.elasticsearch.action.search.FetchSearchPhase.executeFetch(FetchSearchPhase.java:162) [elasticsearch-6.6.0.jar:6.6.0]
at org.elasticsearch.action.search.FetchSearchPhase.innerRun(FetchSearchPhase.java:144) [elasticsearch-6.6.0.jar:6.6.0]
at org.elasticsearch.action.search.FetchSearchPhase.access$000(FetchSearchPhase.java:44) [elasticsearch-6.6.0.jar:6.6.0]
at org.elasticsearch.action.search.FetchSearchPhase$1.doRun(FetchSearchPhase.java:86) [elasticsearch-6.6.0.jar:6.6.0]
at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:759) [elasticsearch-6.6.0.jar:6.6.0]
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37) [elasticsearch-6.6.0.jar:6.6.0]
at org.elasticsearch.common.util.concurrent.TimedRunnable.doRun(TimedRunnable.java:41) [elasticsearch-6.6.0.jar:6.6.0]
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37) [elasticsearch-6.6.0.jar:6.6.0]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_191]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_191]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_191]
[2019-02-22T14:57:27,354][WARN ][o.e.x.w.e.ExecutionService] [data-0] failed to execute watch [FApLZ524RrSH_PWwO6mYMg_xpack_license_expiration]
[2019-02-22T14:57:44,655][WARN ][o.e.c.InternalClusterInfoService] [data-0] Failed to update shard information for ClusterInfoUpdateJob within 15s timeout