# Unable to recover cluster after OOM

**URL:** <https://discuss.elastic.co/t/unable-to-recover-cluster-after-oom/6035>\
**Category:** Elasticsearch\
**Created:** [December 1, 2011, 6:24am UTC](https://discuss.elastic.co/t/unable-to-recover-cluster-after-oom/6035 "2011-12-01T06:24:45Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![phobos182](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/phobos182/32/3011_2.png) [@phobos182](https://discuss.elastic.co/u/phobos182)\
**Post date:** [December 1, 2011, 6:24am UTC](https://discuss.elastic.co/t/unable-to-recover-cluster-after-oom/6035/1 "2011-12-01T06:24:45Z")

</div>

Getting a ton of these in my log files. Cluster crashed on an OOM event.

de[2JqaayEqTfSwxkGSwicsfg], [P], s[INITIALIZING], reason [Failed to start shard, message [IndexShardGatewayRecoveryException[[test\_20110601-20110630\_2011\_22][4] shard allocated for local recovery (post api), should exists, but doesn't]]]  
[2011-12-01 00:22:02,564][WARN][cluster.action.shard] [Arcade] sending failed shard for [test\_20110601-20110630\_2011\_24][14], node[2JqaayEqTfSwxkGSwicsfg], [P], s[INITIALIZING], reason [Failed to start shard, message [IndexShardGatewayRecoveryException[[test\_20110601-20110630\_2011\_24][14] shard allocated for local recovery (post api), should exists, but doesn't]]]

Now i'm trying to just delete that index and move on since it's a test index, but the cluster is not letting the delete command go through.

curl -XDELETE '[http://es1.colo:9200/test\_20110601-20110630\_2011\_24](http://es1.colo:9200/test_20110601-20110630_2011_24)'

After pressing enter with this command, the terminal just hangs. The command does not go through. How do I delete this index and recover my cluster. It's currently RED.

---

<div class="post-metadata">

**Author:** ![phobos182](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/phobos182/32/3011_2.png) [@phobos182](https://discuss.elastic.co/u/phobos182)\
**Post date:** [December 1, 2011, 6:38am UTC](https://discuss.elastic.co/t/unable-to-recover-cluster-after-oom/6035/2 "2011-12-01T06:38:07Z")

</div>

Forgot to include my cluster health.

{  
cluster\_name: es\_cluster1  
status: red  
timed\_out: false  
number\_of\_nodes: 20  
number\_of\_data\_nodes: 20  
active\_primary\_shards: 959  
active\_shards: 959  
relocating\_shards: 0  
initializing\_shards: 52  
unassigned\_shards: 29  
}

---

<div class="post-metadata">

**Author:** ![phobos182](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/phobos182/32/3011_2.png) [@phobos182](https://discuss.elastic.co/u/phobos182)\
**Post date:** [December 1, 2011, 3:31pm UTC](https://discuss.elastic.co/t/unable-to-recover-cluster-after-oom/6035/3 "2011-12-01T15:31:41Z")

</div>

Any advice would be appreciated. I can turn on debug level logging to see if there is any error messages on the cluster if need be.

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [December 1, 2011, 4:09pm UTC](https://discuss.elastic.co/t/unable-to-recover-cluster-after-oom/6035/4 "2011-12-01T16:09:46Z")

</div>

Which version are you using? The delete API should eventually succeed and  
delete the index, its strange that you can't delete it. Can you give it  
another go?

Also, do you have a stack trace of the OOM from the logs? Can you gist it?

On Thu, Dec 1, 2011 at 5:31 PM, phobos182 [phobos182@gmail.com](mailto:phobos182@gmail.com) wrote:

> Any advice would be appreciated. I can turn on debug level logging to see  
> if  
> there is any error messages on the cluster if need be.
> 
> --  
> View this message in context:  
> [http://elasticsearch-users.115913.n3.nabble.com/Unable-to-recover-cluster-after-OOM-tp3550688p3551828.html](http://elasticsearch-users.115913.n3.nabble.com/Unable-to-recover-cluster-after-OOM-tp3550688p3551828.html)  
> Sent from the Elasticsearch Users mailing list archive at [Nabble.com](http://Nabble.com).

---

<div class="post-metadata">

**Author:** ![phobos182](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/phobos182/32/3011_2.png) [@phobos182](https://discuss.elastic.co/u/phobos182)\
**Post date:** [December 1, 2011, 4:50pm UTC](https://discuss.elastic.co/t/unable-to-recover-cluster-after-oom/6035/5 "2011-12-01T16:50:55Z")

</div>

No problem. Using 18.3. I do not have the OOM log anymore (It was caused by a very, very bad facet query that took all of the RAM on the cluster).

Going to turn up Debug level logging everywhere, and try the DELETE command.

---

<div class="post-metadata">

**Author:** ![phobos182](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/phobos182/32/3011_2.png) [@phobos182](https://discuss.elastic.co/u/phobos182)\
**Post date:** [December 1, 2011, 7:29pm UTC](https://discuss.elastic.co/t/unable-to-recover-cluster-after-oom/6035/6 "2011-12-01T19:29:39Z")

</div>

Just ran TRACE level logging, and sent the delete command. Nothing shows up in the logs.

I have a loop running over and over again putting this message in the logs.

[2011-12-01 13:28:21,935][DEBUG][action.admin.indices.status] [Mockingbird] [test\_20110601-20110630\_2011\_26][2], node[LgkDg8hHR-OLiB9u3y4gkg], [P], s[INITIALIZING]: Failed to execute [org.elasticsearch.action.admin.indices.status.IndicesStatusRequest@6d3d2b91]  
org.elasticsearch.transport.RemoteTransportException: [Blink][inet[/192.168.200.110:9300]][indices/status/shard]  
Caused by: org.elasticsearch.index.IndexShardMissingException: [test\_20110601-20110630\_2011\_26][2] missing  
at org.elasticsearch.index.service.InternalIndexService.shardSafe(InternalIndexService.java:177)  
at org.elasticsearch.action.admin.indices.status.TransportIndicesStatusAction.shardOperation(TransportIndicesStatusAction.java:135)  
at org.elasticsearch.action.admin.indices.status.TransportIndicesStatusAction.shardOperation(TransportIndicesStatusAction.java:58)  
at org.elasticsearch.action.support.broadcast.TransportBroadcastOperationAction$ShardTransportHandler.messageReceived(TransportBroadcastOperationAction.java:382)  
at org.elasticsearch.action.support.broadcast.TransportBroadcastOperationAction$ShardTransportHandler.messageReceived(TransportBroadcastOperationAction.java:371)  
at org.elasticsearch.transport.netty.MessageChannelHandler$RequestHandler.run(MessageChannelHandler.java:246)  
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)  
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)  
at java.lang.Thread.run(Thread.java:662)  
[2011-12-01 13:28:21,939][DEBUG][action.admin.indices.status] [Mockingbird] [test\_20110601-20110630\_2011\_25][11], node[wQCvDYuOQXi8onkrGH71iw], [P], s[INITIALIZING]: Failed to execute [org.elasticsearch.action.admin.indices.status.IndicesStatusRequest@6d3d2b91]  
org.elasticsearch.transport.RemoteTransportException: [Margali Szardos][inet[/192.168.200.177:9300]][indices/status/shard]  
Caused by: org.elasticsearch.index.IndexShardMissingException: [test\_20110601-20110630\_2011\_25][11] missing  
at org.elasticsearch.index.service.InternalIndexService.shardSafe(InternalIndexService.java:177)  
at org.elasticsearch.action.admin.indices.status.TransportIndicesStatusAction.shardOperation(TransportIndicesStatusAction.java:135)  
at org.elasticsearch.action.admin.indices.status.TransportIndicesStatusAction.shardOperation(TransportIndicesStatusAction.java:58)  
at org.elasticsearch.action.support.broadcast.TransportBroadcastOperationAction$ShardTransportHandler.messageReceived(TransportBroadcastOperationAction.java:382)  
at org.elasticsearch.action.support.broadcast.TransportBroadcastOperationAction$ShardTransportHandler.messageReceived(TransportBroadcastOperationAction.java:371)  
at org.elasticsearch.transport.netty.MessageChannelHandler$RequestHandler.run(MessageChannelHandler.java:246)  
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)  
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [December 1, 2011, 7:42pm UTC](https://discuss.elastic.co/t/unable-to-recover-cluster-after-oom/6035/7 "2011-12-01T19:42:57Z")

</div>

Are you calling it? Cause elasticsearch doesn't call it..., and you can  
ignore the failure...

On Thu, Dec 1, 2011 at 9:29 PM, phobos182 [phobos182@gmail.com](mailto:phobos182@gmail.com) wrote:

> Just ran TRACE level logging, and sent the delete command. Nothing shows up  
> in the logs.
> 
> I have a loop running over and over again putting this message in the logs.
> 
> [2011-12-01 13:28:21,935][DEBUG][action.admin.indices.status] [Mockingbird]  
> [test\_20110601-20110630\_2011\_26][2], node[LgkDg8hHR-OLiB9u3y4gkg], [P],  
> s[INITIALIZING]: Failed to execute
> 
> [org.elasticsearch.action.admin.indices.status.IndicesStatusRequest@6d3d2b91  
> ]  
> org.elasticsearch.transport.RemoteTransportException:  
> [Blink][inet[/192.168.200.110:9300]][indices/status/shard]  
> Caused by: org.elasticsearch.index.IndexShardMissingException:  
> [test\_20110601-20110630\_2011\_26][2] missing  
> at
> 
> org.elasticsearch.index.service.InternalIndexService.shardSafe(InternalIndexService.java:177)  
> at
> 
> org.elasticsearch.action.admin.indices.status.TransportIndicesStatusAction.shardOperation(TransportIndicesStatusAction.java:135)  
> at
> 
> org.elasticsearch.action.admin.indices.status.TransportIndicesStatusAction.shardOperation(TransportIndicesStatusAction.java:58)  
> at
> 
> org.elasticsearch.action.support.broadcast.TransportBroadcastOperationAction$ShardTransportHandler.messageReceived(TransportBroadcastOperationAction.java:382)  
> at
> 
> org.elasticsearch.action.support.broadcast.TransportBroadcastOperationAction$ShardTransportHandler.messageReceived(TransportBroadcastOperationAction.java:371)  
> at
> 
> org.elasticsearch.transport.netty.MessageChannelHandler$RequestHandler.run(MessageChannelHandler.java:246)  
> at
> 
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)  
> at
> 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)  
> at java.lang.Thread.run(Thread.java:662)  
> [2011-12-01 13:28:21,939][DEBUG][action.admin.indices.status] [Mockingbird]  
> [test\_20110601-20110630\_2011\_25][11], node[wQCvDYuOQXi8onkrGH71iw], [P],  
> s[INITIALIZING]: Failed to execute
> 
> [org.elasticsearch.action.admin.indices.status.IndicesStatusRequest@6d3d2b91  
> ]  
> org.elasticsearch.transport.RemoteTransportException: [Margali  
> Szardos][inet[/192.168.200.177:9300]][indices/status/shard]  
> Caused by: org.elasticsearch.index.IndexShardMissingException:  
> [test\_20110601-20110630\_2011\_25][11] missing  
> at
> 
> org.elasticsearch.index.service.InternalIndexService.shardSafe(InternalIndexService.java:177)  
> at
> 
> org.elasticsearch.action.admin.indices.status.TransportIndicesStatusAction.shardOperation(TransportIndicesStatusAction.java:135)  
> at
> 
> org.elasticsearch.action.admin.indices.status.TransportIndicesStatusAction.shardOperation(TransportIndicesStatusAction.java:58)  
> at
> 
> org.elasticsearch.action.support.broadcast.TransportBroadcastOperationAction$ShardTransportHandler.messageReceived(TransportBroadcastOperationAction.java:382)  
> at
> 
> org.elasticsearch.action.support.broadcast.TransportBroadcastOperationAction$ShardTransportHandler.messageReceived(TransportBroadcastOperationAction.java:371)  
> at
> 
> org.elasticsearch.transport.netty.MessageChannelHandler$RequestHandler.run(MessageChannelHandler.java:246)  
> at
> 
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)  
> at
> 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> 
> --  
> View this message in context:  
> [http://elasticsearch-users.115913.n3.nabble.com/Unable-to-recover-cluster-after-OOM-tp3550688p3552589.html](http://elasticsearch-users.115913.n3.nabble.com/Unable-to-recover-cluster-after-OOM-tp3550688p3552589.html)  
> Sent from the Elasticsearch Users mailing list archive at [Nabble.com](http://Nabble.com).

---

<div class="post-metadata">

**Author:** ![phobos182](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/phobos182/32/3011_2.png) [@phobos182](https://discuss.elastic.co/u/phobos182)\
**Post date:** [December 2, 2011, 3:59pm UTC](https://discuss.elastic.co/t/unable-to-recover-cluster-after-oom/6035/8 "2011-12-02T15:59:58Z")

</div>

Putting this down for now. I had to get the cluster back up and running to I erased the entire thing, and started reindexing. When I have time I'll try to re-create with a development cluster.

I'm thinking I can create a few indexes, and behind the scenes stop the cluster, and rm -rf a shard and see if I can recreate the bug.

---

<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, 3:46am UTC](https://discuss.elastic.co/t/unable-to-recover-cluster-after-oom/6035/9 "2017-07-06T03:46:35Z")

</div>


