# Elasticsearch server crashing

**URL:** https://discuss.elastic.co/t/elasticsearch-server-crashing/265881
**Category:** Elasticsearch
**Created:** [March 1, 2021, 11:01pm UTC](https://discuss.elastic.co/t/elasticsearch-server-crashing/265881 "2021-03-01T23:01:42Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![JPross](https://avatars.discourse-cdn.com/v4/letter/j/a4c791/32.png) [@JPross](https://discuss.elastic.co/u/JPross)
#### Post date: [March 1, 2021, 11:01pm UTC](https://discuss.elastic.co/t/elasticsearch-server-crashing/265881/1 "2021-03-01T23:01:42Z")

</div>

Hello,

We have two Elasticsearch server which are configured as the Master-slave, one server keeps getting crash.We have recently upgraded the Elasticsearch server 5.1 to 7.1.1 on our client, It is giving the following error

```auto
> [2021-03-01T02:22:46,544][ERROR][o.e.b.ElasticsearchUncaughtExceptionHandler] [VPRODGRMQ01] fatal error in thread [elasticsearch[VPRODGRMQ01][flush][T#317]], exiting
> java.lang.StackOverflowError: null
> at org.elasticsearch.common.io.stream.ReleasableBytesStreamOutput.ensureCapacity(ReleasableBytesStreamOutput.java:70) ~[elasticsearch-7.1.1.jar:7.1.1]
> at org.elasticsearch.common.io.stream.BytesStreamOutput.writeByte(BytesStreamOutput.java:72) ~[elasticsearch-7.1.1.jar:7.1.1]
> at org.elasticsearch.common.io.stream.StreamOutput.write(StreamOutput.java:469) ~[elasticsearch-7.1.1.jar:7.1.1]
> at org.elasticsearch.transport.CompressibleBytesOutputStream.writeByte(CompressibleBytesOutputStream.java:80) ~[elasticsearch-7.1.1.jar:7.1.1]
> at org.elasticsearch.common.io.stream.StreamOutput.writeBoolean(StreamOutput.java:442) ~[elasticsearch-7.1.1.jar:7.1.1]
> at org.elasticsearch.common.io.stream.StreamOutput.writeOptionalString(StreamOutput.java:322) ~[elasticsearch-7.1.1.jar:7.1.1]
> at org.elasticsearch.common.io.stream.StreamOutput.writeException(StreamOutput.java:950) ~[elasticsearch-7.1.1.jar:7.1.1]
> at org.elasticsearch.common.io.stream.StreamOutput.writeException(StreamOutput.java:983) ~[elasticsearch-7.1.1.jar:7.1.1]
> at org.elasticsearch.ElasticsearchException.writeStackTraces(ElasticsearchException.java:725) ~[elasticsearch-7.1.1.jar:7.1.1]
> at org.elasticsearch.common.io.stream.StreamOutput.writeException(StreamOutput.java:985) ~[elasticsearch-7.1.1.jar:7.1.1]
> at org.elasticsearch.common.io.stream.StreamOutput.writeException(StreamOutput.java:983) ~[elasticsearch-7.1.1.jar:7.1.1]
> at org.elasticsearch.ElasticsearchException.writeStackTraces(ElasticsearchException.java:725) ~[elasticsearch-7.1.1.jar:7.1.1]

```

Adding gist for the full stacktrace of the exception  
[Error Stack](https://gist.github.com/jprossardalia/dcb1669d25ddfb7101c154198261a5ea)

Everytime it crashes we have manually restart it again.

We have not been able to identify why is it happening, there is other error in the logs which is about not able to access the translog files, but they does not seems to be connected to the crash.  
Any idea of what could be causing these crashes?

Thanks in advance for your answers!  
Thanks,  
JPross

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [March 2, 2021, 2:06am UTC](https://discuss.elastic.co/t/elasticsearch-server-crashing/265881/2 "2021-03-02T02:06:31Z")

</div>

Welcome to our community! 😃  
There's no such thing as a slave in Elasticsearch, you would likely be referring to master-eligible nodes.

Is there more to the Elasticsearch log prior to this?  
What is the output from the `_cluster/stats?pretty&human` API?

---

<div class="post-metadata">

### Author: ![JPross](https://avatars.discourse-cdn.com/v4/letter/j/a4c791/32.png) [@JPross](https://discuss.elastic.co/u/JPross)
#### Post date: [March 2, 2021, 7:43am UTC](https://discuss.elastic.co/t/elasticsearch-server-crashing/265881/3 "2021-03-02T07:43:39Z")

</div>

Hi Warkolm,  
Thanks for the reply, sorry that was the term used by our IT to describe the infra for the Elasticsearch servers.

Here are the log file and the response from the \_cluster API.  
[Elastic Log and cluster info](https://gist.github.com/jprossardalia/15fb82d90e7325479daaf54a68f147e4)

The crashing error is coming at '2021-03-01T02:22:46,544' on line 207

---

<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: [March 2, 2021, 8:31am UTC](https://discuss.elastic.co/t/elasticsearch-server-crashing/265881/4 "2021-03-02T08:31:06Z")

</div>

> [@JPross](#):
>
> We have recently upgraded the Elasticsearch server 5.1 to 7.1.1

7.1.1 has been [EOL](https://www.elastic.co/support/eol) for quite some time already. Can you reproduce this in a supported version? This looks like a bug, but quite possibly one that has since been fixed.

---

<div class="post-metadata">

### Author: ![JPross](https://avatars.discourse-cdn.com/v4/letter/j/a4c791/32.png) [@JPross](https://discuss.elastic.co/u/JPross)
#### Post date: [March 2, 2021, 12:40pm UTC](https://discuss.elastic.co/t/elasticsearch-server-crashing/265881/5 "2021-03-02T12:40:04Z")

</div>

Hi,  
Thanks for the reply. I can't reproduce it on the supported version as it is our clients Production environment. And I haven't seen this error in our local or the UAT environment.  
Can you point us why this error might be occurring.

---

<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: [March 2, 2021, 1:01pm UTC](https://discuss.elastic.co/t/elasticsearch-server-crashing/265881/6 "2021-03-02T13:01:27Z")

</div>

No, sorry, I don't even have a development environment for such an old version any more.

---

<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: [March 30, 2021, 1:01pm UTC](https://discuss.elastic.co/t/elasticsearch-server-crashing/265881/7 "2021-03-30T13:01:39Z")

</div>

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