# Caused by: java.io.StreamCorruptedException: invalid internal transport message format, got (0,0,0,28);

**URL:** https://discuss.elastic.co/t/caused-by-java-io-streamcorruptedexception-invalid-internal-transport-message-format-got-0-0-0-28/311071
**Category:** Elasticsearch
**Tags:** docker
**Created:** [August 1, 2022, 2:01am UTC](https://discuss.elastic.co/t/caused-by-java-io-streamcorruptedexception-invalid-internal-transport-message-format-got-0-0-0-28/311071 "2022-08-01T02:01:10Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![kingjianle](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kingjianle/32/109084_2.png) [@kingjianle](https://discuss.elastic.co/u/kingjianle)
#### Post date: [August 1, 2022, 2:01am UTC](https://discuss.elastic.co/t/caused-by-java-io-streamcorruptedexception-invalid-internal-transport-message-format-got-0-0-0-28/311071/1 "2022-08-01T02:01:10Z")

</div>

**Elasticsearch version** (6.8.0):

**Plugins installed** : [elasticsearch-analysis-ik]6.8.0

**JVM version** (java version "1.8.0\_333"):

**OS version** (`uname -a` if on a Unix-like system):Linux localhost.localdomain 3.10.0-1160.el7.x86\_64 #1 SMP Mon Oct 19 16:18:59 UTC 2020 x86\_64 x86\_64 x86\_64 GNU/Linux By docker

**Springboot version** (2.1.4.RELEASE)

**Description of the problem including expected versus actual behavior** :  
This happens all the time: Caused by: java.io.StreamCorruptedException: invalid internal transport message format, got (0,0,0,28);  
Why it happend? How to stop it?

**somethings specially** :  
I copided the folder (elasticsearch/data/nodes) from Elasticsearch6.4.3 to the samepath of Elasticsearch6.8.0,Because,I want to keep the datas before;  
This exactly is a better method than others,Because it is so simple,and I keeped my datas;  
But even I removed the folder,the problem is still exist.

Why it happend? How to stop it? Does it slow down the Linux OS or cause other bad things?

**Provide logs (if relevant)**:

```auto
[2022-07-30T07:46:32,019][WARN][o.e.t.TcpTransport] [27nrFZT] exception caught on transport layer [Netty4TcpChannel{localAddress=/172.17.0.7:9300, remoteAddress=/172.17.0.1:52634}], closing connection
io.netty.handler.codec.DecoderException: java.io.StreamCorruptedException: invalid internal transport message format, got (0,0,0,28)
	at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:472) ~[netty-codec-4.1.32.Final.jar:4.1.32.Final]
	at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:278) ~[netty-codec-4.1.32.Final.jar:4.1.32.Final]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) [netty-transport-4.1.32.Final.jar:4.1.32.Final]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) [netty-transport-4.1.32.Final.jar:4.1.32.Final]
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) [netty-transport-4.1.32.Final.jar:4.1.32.Final]
	at io.netty.handler.logging.LoggingHandler.channelRead(LoggingHandler.java:241) [netty-handler-4.1.32.Final.jar:4.1.32.Final]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) [netty-transport-4.1.32.Final.jar:4.1.32.Final]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) [netty-transport-4.1.32.Final.jar:4.1.32.Final]
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) [netty-transport-4.1.32.Final.jar:4.1.32.Final]
	at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1434) [netty-transport-4.1.32.Final.jar:4.1.32.Final]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) [netty-transport-4.1.32.Final.jar:4.1.32.Final]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) [netty-transport-4.1.32.Final.jar:4.1.32.Final]
	at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:965) [netty-transport-4.1.32.Final.jar:4.1.32.Final]
	at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:163) [netty-transport-4.1.32.Final.jar:4.1.32.Final]
	at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:656) [netty-transport-4.1.32.Final.jar:4.1.32.Final]
	at io.netty.channel.nio.NioEventLoop.processSelectedKeysPlain(NioEventLoop.java:556) [netty-transport-4.1.32.Final.jar:4.1.32.Final]
	at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:510) [netty-transport-4.1.32.Final.jar:4.1.32.Final]
	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:470) [netty-transport-4.1.32.Final.jar:4.1.32.Final]
	at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:909) [netty-common-4.1.32.Final.jar:4.1.32.Final]
	at java.lang.Thread.run(Thread.java:835) [?:?]
Caused by: java.io.StreamCorruptedException: invalid internal transport message format, got (0,0,0,28)
	at org.elasticsearch.transport.TcpTransport.readHeaderBuffer(TcpTransport.java:851) ~[elasticsearch-6.8.0.jar:6.8.0]
	at org.elasticsearch.transport.TcpTransport.readMessageLength(TcpTransport.java:837) ~[elasticsearch-6.8.0.jar:6.8.0]
	at org.elasticsearch.transport.netty4.Netty4SizeHeaderFrameDecoder.decode(Netty4SizeHeaderFrameDecoder.java:40) ~[transport-netty4-client-6.8.0.jar:6.8.0]
	at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:502) ~[netty-codec-4.1.32.Final.jar:4.1.32.Final]
	at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:441) ~[netty-codec-4.1.32.Final.jar:4.1.32.Final]
	... 20 more
[2022-07-30T07:46:27,014][WARN][o.e.t.TcpTransport] [27nrFZT] exception caught on transport layer [Netty4TcpChannel{localAddress=/172.17.0.7:9300, remoteAddress=/172.17.0.1:52622}], closing connection
io.netty.handler.codec.DecoderException: java.io.StreamCorruptedException: invalid internal transport message format, got (0,0,0,28)
	at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:472) ~[netty-codec-4.1.32.Final.jar:4.1.32.Final]
	at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:278) ~[netty-codec-4.1.32.Final.jar:4.1.32.Final]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) [netty-transport-4.1.32.Final.jar:4.1.32.Final]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) [netty-transport-4.1.32.Final.jar:4.1.32.Final]
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) [netty-transport-4.1.32.Final.jar:4.1.32.Final]
	at io.netty.handler.logging.LoggingHandler.channelRead(LoggingHandler.java:241) [netty-handler-4.1.32.Final.jar:4.1.32.Final]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) [netty-transport-4.1.32.Final.jar:4.1.32.Final]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) [netty-transport-4.1.32.Final.jar:4.1.32.Final]
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) [netty-transport-4.1.32.Final.jar:4.1.32.Final]
	at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1434) [netty-transport-4.1.32.Final.jar:4.1.32.Final]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) [netty-transport-4.1.32.Final.jar:4.1.32.Final]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) [netty-transport-4.1.32.Final.jar:4.1.32.Final]
	at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:965) [netty-transport-4.1.32.Final.jar:4.1.32.Final]
	at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:163) [netty-transport-4.1.32.Final.jar:4.1.32.Final]
	at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:656) [netty-transport-4.1.32.Final.jar:4.1.32.Final]
	at io.netty.channel.nio.NioEventLoop.processSelectedKeysPlain(NioEventLoop.java:556) [netty-transport-4.1.32.Final.jar:4.1.32.Final]
	at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:510) [netty-transport-4.1.32.Final.jar:4.1.32.Final]
	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:470) [netty-transport-4.1.32.Final.jar:4.1.32.Final]
	at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:909) [netty-common-4.1.32.Final.jar:4.1.32.Final]
	at java.lang.Thread.run(Thread.java:835) [?:?]
Caused by: java.io.StreamCorruptedException: invalid internal transport message format, got (0,0,0,28)
	at org.elasticsearch.transport.TcpTransport.readHeaderBuffer(TcpTransport.java:851) ~[elasticsearch-6.8.0.jar:6.8.0]
	at org.elasticsearch.transport.TcpTransport.readMessageLength(TcpTransport.java:837) ~[elasticsearch-6.8.0.jar:6.8.0]
	at org.elasticsearch.transport.netty4.Netty4SizeHeaderFrameDecoder.decode(Netty4SizeHeaderFrameDecoder.java:40) ~[transport-netty4-client-6.8.0.jar:6.8.0]
	at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:502) ~[netty-codec-4.1.32.Final.jar:4.1.32.Final]
	at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:441) ~[netty-codec-4.1.32.Final.jar:4.1.32.Final]
	... 19 more
	

```

---

<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: [August 1, 2022, 6:19am UTC](https://discuss.elastic.co/t/caused-by-java-io-streamcorruptedexception-invalid-internal-transport-message-format-got-0-0-0-28/311071/2 "2022-08-01T06:19:38Z")

</div>

Welcome to our community! 😃

What sort of applications talk to your cluster?

---

<div class="post-metadata">

### Author: ![kingjianle](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kingjianle/32/109084_2.png) [@kingjianle](https://discuss.elastic.co/u/kingjianle)
#### Post date: [August 1, 2022, 7:35am UTC](https://discuss.elastic.co/t/caused-by-java-io-streamcorruptedexception-invalid-internal-transport-message-format-got-0-0-0-28/311071/3 "2022-08-01T07:35:33Z")

</div>

java application;  
not a cluster,a single node;  
spring-boot-starter-data-elasticsearch: 2.1.4.RELEASE

---

<div class="post-metadata">

### Author: ![kingjianle](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kingjianle/32/109084_2.png) [@kingjianle](https://discuss.elastic.co/u/kingjianle)
#### Post date: [August 1, 2022, 10:49am UTC](https://discuss.elastic.co/t/caused-by-java-io-streamcorruptedexception-invalid-internal-transport-message-format-got-0-0-0-28/311071/4 "2022-08-01T10:49:50Z")

</div>

I guess it maybe caused by ssl,But can not confirm.  
because,the request became from nginx that Configured with ssl.

- I'm not sure because the error codes are different: got (0,0,0,28);

---

<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: [August 2, 2022, 1:28am UTC](https://discuss.elastic.co/t/caused-by-java-io-streamcorruptedexception-invalid-internal-transport-message-format-got-0-0-0-28/311071/5 "2022-08-02T01:28:25Z")

</div>

A single node is still technically a cluster, just of one node.

> [@kingjianle](#):
>
> because,the request became from nginx that Configured with ssl.

Does it happen if you remove nginx?

---

<div class="post-metadata">

### Author: ![kingjianle](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kingjianle/32/109084_2.png) [@kingjianle](https://discuss.elastic.co/u/kingjianle)
#### Post date: [August 2, 2022, 2:03am UTC](https://discuss.elastic.co/t/caused-by-java-io-streamcorruptedexception-invalid-internal-transport-message-format-got-0-0-0-28/311071/6 "2022-08-02T02:03:28Z")

</div>

I can not do that, because this is a online project.  
The nginx is being accessed,all the time.

---

<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: [August 2, 2022, 2:04am UTC](https://discuss.elastic.co/t/caused-by-java-io-streamcorruptedexception-invalid-internal-transport-message-format-got-0-0-0-28/311071/7 "2022-08-02T02:04:38Z")

</div>

Can you bypass nginx and talk directly to Elasticsearch?

---

<div class="post-metadata">

### Author: ![kingjianle](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kingjianle/32/109084_2.png) [@kingjianle](https://discuss.elastic.co/u/kingjianle)
#### Post date: [August 2, 2022, 2:16am UTC](https://discuss.elastic.co/t/caused-by-java-io-streamcorruptedexception-invalid-internal-transport-message-format-got-0-0-0-28/311071/8 "2022-08-02T02:16:07Z")

</div>

Yes, I can .  
When I accessed the site:[http://192.168.88.21:9200](http://192.168.88.21:9200), I got the correct response.

```auto
name	"27nrFZT"
cluster_name	"docker-cluster"
cluster_uuid	"mAGnpJapQXSdIAzgYzS2NQ"
version	
number	"6.8.0"
build_flavor	"default"
build_type	"docker"
build_hash	"65b6179"
build_date	"2019-05-15T20:06:13.172855Z"
build_snapshot	false
lucene_version	"7.7.0"
minimum_wire_compatibility_version	"5.6.0"
minimum_index_compatibility_version	"5.0.0"
tagline	"You Know, for Search"

```

When I accessed the site:[https://192.168.88.21:9200](https://192.168.88.21:9200), I got " \* Failed to set up a secure connection. Procedure";

---

<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: [August 2, 2022, 2:51am UTC](https://discuss.elastic.co/t/caused-by-java-io-streamcorruptedexception-invalid-internal-transport-message-format-got-0-0-0-28/311071/9 "2022-08-02T02:51:33Z")

</div>

Elasticsearch 6.8 is [EOL](https://www.elastic.co/support/eol) and you need to upgrade ASAP.

If it's working when talking to Elasticsearch directly, then that would suggest that there's something wrong with your proxy, which is outside the scope of what we can help with.

---

<div class="post-metadata">

### Author: ![kingjianle](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kingjianle/32/109084_2.png) [@kingjianle](https://discuss.elastic.co/u/kingjianle)
#### Post date: [August 2, 2022, 3:10am UTC](https://discuss.elastic.co/t/caused-by-java-io-streamcorruptedexception-invalid-internal-transport-message-format-got-0-0-0-28/311071/11 "2022-08-02T03:10:25Z")

</div>

I am not sure it is or not working when talking to Elasticsearch directly,because the warning is printing all the time , and I cann't stop it.  
And the elasticsearch is functioning normally,when I search or add something.  
But, there are warnings all the time , like above.  
I want to know: Why it happend? How to stop it? Does it slow down the Linux OS or cause other bad things?  
I will check my proxy,and thank you , sir.

---

<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: [August 2, 2022, 3:12am UTC](https://discuss.elastic.co/t/caused-by-java-io-streamcorruptedexception-invalid-internal-transport-message-format-got-0-0-0-28/311071/12 "2022-08-02T03:12:02Z")

</div>

> [@kingjianle](#):
>
> `localAddress=/172.17.0.7:9300, remoteAddress=/172.17.0.1:52634`

What is the 172.17.0.1 host?

---

<div class="post-metadata">

### Author: ![kingjianle](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kingjianle/32/109084_2.png) [@kingjianle](https://discuss.elastic.co/u/kingjianle)
#### Post date: [August 2, 2022, 3:22am UTC](https://discuss.elastic.co/t/caused-by-java-io-streamcorruptedexception-invalid-internal-transport-message-format-got-0-0-0-28/311071/13 "2022-08-02T03:22:59Z")

</div>

It is docker's IPAM gateway.

```auto
name scope drive Can be attached IPAM drive IPAM subnet IPAM gateway ownership
bridge local bridge false default 172.17.0.0/16 172.17.0.1 public 

```

---

<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: [August 30, 2022, 3:23am UTC](https://discuss.elastic.co/t/caused-by-java-io-streamcorruptedexception-invalid-internal-transport-message-format-got-0-0-0-28/311071/14 "2022-08-30T03:23:55Z")

</div>

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