# Exception: TransportService is closed stopped can't send request

**URL:** <https://discuss.elastic.co/t/exception-transportservice-is-closed-stopped-cant-send-request/165007>\
**Category:** Elasticsearch\
**Created:** [January 21, 2019, 8:34am UTC](https://discuss.elastic.co/t/exception-transportservice-is-closed-stopped-cant-send-request/165007 "2019-01-21T08:34:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ninjaMajewski](https://avatars.discourse-cdn.com/v4/letter/n/e56c9b/32.png) [@ninjaMajewski](https://discuss.elastic.co/u/ninjaMajewski)\
**Post date:** [January 21, 2019, 8:34am UTC](https://discuss.elastic.co/t/exception-transportservice-is-closed-stopped-cant-send-request/165007/1 "2019-01-21T08:34:03Z")

</div>

Hi,  
I have a server with ELK installed and today I restarted whole server and ELK didn't start. I didn't change any configuration or anything else. It was just a normal reboot.

This is my exception from logs:

```
...skipping...
        at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:624) ~[elasticsearch-6.4.2.jar:6.4.2]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1135) [?:?]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?]
        at java.lang.Thread.run(Thread.java:844) [?:?]
Caused by: org.elasticsearch.transport.TransportException: TransportService is closed stopped can't send request
        at org.elasticsearch.transport.TransportService.sendRequestInternal(TransportService.java:599) ~[elasticsearch-6.4.2.jar:6.4.2]
        ... 29 more
[2019-01-19T22:38:03,674][DEBUG][o.e.a.a.c.s.TransportClusterStatsAction] [nyKx5ai] failed to execute on node [nyKx5aiiQO-aFofcZ-VhLA]
org.elasticsearch.transport.SendRequestTransportException: [nyKx5ai][192.168.178.95:9300][cluster:monitor/stats[n]]
        at org.elasticsearch.transport.TransportService.sendRequestInternal(TransportService.java:617) ~[elasticsearch-6.4.2.jar:6.4.2]
        at org.elasticsearch.xpack.security.transport.SecurityServerTransportInterceptor$1.sendRequest(SecurityServerTransportInterceptor.java:137) ~[?:?]
        at org.elasticsearch.transport.TransportService.sendRequest(TransportService.java:524) ~[elasticsearch-6.4.2.jar:6.4.2]
        at org.elasticsearch.transport.TransportService.sendRequest(TransportService.java:512) ~[elasticsearch-6.4.2.jar:6.4.2]
        at org.elasticsearch.action.support.nodes.TransportNodesAction$AsyncAction.start(TransportNodesAction.java:197) ~[elasticsearch-6.4.2.jar:6.4.2]
        at org.elasticsearch.action.support.nodes.TransportNodesAction.doExecute(TransportNodesAction.java:89) ~[elasticsearch-6.4.2.jar:6.4.2]
        at org.elasticsearch.action.support.nodes.TransportNodesAction.doExecute(TransportNodesAction.java:52) ~[elasticsearch-6.4.2.jar:6.4.2]
        at org.elasticsearch.action.support.TransportAction$RequestFilterChain.proceed(TransportAction.java:167) ~[elasticsearch-6.4.2.jar:6.4.2]
        at org.elasticsearch.xpack.security.action.filter.SecurityActionFilter.apply(SecurityActionFilter.java:126) ~[?:?]
        at org.elasticsearch.action.support.TransportAction$RequestFilterChain.proceed(TransportAction.java:165) ~[elasticsearch-6.4.2.jar:6.4.2]
        at org.elasticsearch.action.support.TransportAction.execute(TransportAction.java:139) ~[elasticsearch-6.4.2.jar:6.4.2]
        at org.elasticsearch.action.support.TransportAction.execute(TransportAction.java:81) ~[elasticsearch-6.4.2.jar:6.4.2]
        at org.elasticsearch.client.node.NodeClient.executeLocally(NodeClient.java:87) ~[elasticsearch-6.4.2.jar:6.4.2]
        at org.elasticsearch.client.node.NodeClient.doExecute(NodeClient.java:76) ~[elasticsearch-6.4.2.jar:6.4.2]
        at org.elasticsearch.client.support.AbstractClient.execute(AbstractClient.java:407) ~[elasticsearch-6.4.2.jar:6.4.2]
        at org.elasticsearch.client.support.AbstractClient.execute(AbstractClient.java:396) ~[elasticsearch-6.4.2.jar:6.4.2]
        at org.elasticsearch.client.support.AbstractClient$ClusterAdmin.execute(AbstractClient.java:708) ~[elasticsearch-6.4.2.jar:6.4.2]
        at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:46) ~[elasticsearch-6.4.2.jar:6.4.2]
        at org.elasticsearch.action.ActionRequestBuilder.get(ActionRequestBuilder.java:60) ~[elasticsearch-6.4.2.jar:6.4.2]
        at org.elasticsearch.xpack.monitoring.collector.cluster.ClusterStatsCollector.lambda$doCollect$0(ClusterStatsCollector.java:94) ~[?:?]
        at org.elasticsearch.xpack.monitoring.collector.cluster.ClusterStatsCollector.doCollect(ClusterStatsCollector.java:98) ~[?:?]
        at org.elasticsearch.xpack.monitoring.collector.Collector.collect(Collector.java:87) ~[?:?]
        at org.elasticsearch.xpack.monitoring.MonitoringService$MonitoringExecution$1.doRun(MonitoringService.java:248) ~[?:?]
        at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37) [elasticsearch-6.4.2.jar:6.4.2]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:514) ~[?:?]
        at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
        at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:624) ~[elasticsearch-6.4.2.jar:6.4.2]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1135) [?:?]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?]
        at java.lang.Thread.run(Thread.java:844) [?:?]
Caused by: org.elasticsearch.transport.TransportException: TransportService is closed stopped can't send request
        at org.elasticsearch.transport.TransportService.sendRequestInternal(TransportService.java:599) ~[elasticsearch-6.4.2.jar:6.4.2]
        ... 29 more
[2019-01-19T22:38:03,706][ERROR][o.e.x.m.c.c.ClusterStatsCollector] [nyKx5ai] collector [cluster_stats] failed to collect data
java.lang.NullPointerException: null
        at java.util.Objects.requireNonNull(Objects.java:221) ~[?:?]
        at org.elasticsearch.xpack.monitoring.collector.cluster.ClusterStatsMonitoringDoc.<init>(ClusterStatsMonitoringDoc.java:76) ~[x-pack-monitoring-6.4.2.jar:6.4.2]
        at org.elasticsearch.xpack.monitoring.collector.cluster.ClusterStatsCollector.doCollect(ClusterStatsCollector.java:114) ~[x-pack-monitoring-6.4.2.jar:6.4.2]
        at org.elasticsearch.xpack.monitoring.collector.Collector.collect(Collector.java:87) [x-pack-monitoring-6.4.2.jar:6.4.2]
        at org.elasticsearch.xpack.monitoring.MonitoringService$MonitoringExecution$1.doRun(MonitoringService.java:248) [x-pack-monitoring-6.4.2.jar:6.4.2]
        at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37) [elasticsearch-6.4.2.jar:6.4.2]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:514) [?:?]
        at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
        at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:624) [elasticsearch-6.4.2.jar:6.4.2]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1135) [?:?]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?]
        at java.lang.Thread.run(Thread.java:844) [?:?]

```

Does anyone had such problem?

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [January 21, 2019, 9:44am UTC](https://discuss.elastic.co/t/exception-transportservice-is-closed-stopped-cant-send-request/165007/2 "2019-01-21T09:44:55Z")

</div>

Those messages indicate that the node was shutting down. I think you need to look further down your logs to see any messages from when the node started again.

---

<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:** [February 18, 2019, 9:45am UTC](https://discuss.elastic.co/t/exception-transportservice-is-closed-stopped-cant-send-request/165007/3 "2019-02-18T09:45:02Z")

</div>

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