# Exception caught on transport layer (0.20.1)

**URL:** https://discuss.elastic.co/t/exception-caught-on-transport-layer-0-20-1/10072
**Category:** Elasticsearch
**Created:** [December 13, 2012, 11:45pm UTC](https://discuss.elastic.co/t/exception-caught-on-transport-layer-0-20-1/10072 "2012-12-13T23:45:40Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Ognen\_Duzlevski](https://avatars.discourse-cdn.com/v4/letter/o/cab0a1/32.png) [@Ognen\_Duzlevski](https://discuss.elastic.co/u/Ognen_Duzlevski)
#### Post date: [December 13, 2012, 11:45pm UTC](https://discuss.elastic.co/t/exception-caught-on-transport-layer-0-20-1/10072/1 "2012-12-13T23:45:40Z")

</div>

This has been driving me crazy ;). I installed elasticsearch 0.20.1, it  
starts up fine (via /etc/init.d/elasticsearch, this is a debian box). The  
log is quiet up to the moment I start logstash (1.1.5). All I want is to  
run logstash/elasticsearch/kibana on my centralized rsyslog setup. I get  
the exceptions below as soon as I start logstash....

Any help appreciated!

Thanks!  
OD

root@cmd-center:~# less /var/log/elasticsearch/enthought-es.log  
[2012-12-13 16:50:48,370][WARN][bootstrap] jvm uses the  
client vm, make sure to run `java` with the server vm for best performance  
by adding `-server` to the command line  
[2012-12-13 16:50:48,380][INFO][node] [command  
center] {0.20.1}[5361]: initializing ...  
[2012-12-13 16:50:48,389][INFO][plugins] [command  
center] loaded [], sites []  
[2012-12-13 16:50:51,732][INFO][node] [command  
center] {0.20.1}[5361]: initialized  
[2012-12-13 16:50:51,732][INFO][node] [command  
center] {0.20.1}[5361]: starting ...  
[2012-12-13 16:50:51,860][INFO][transport] [command  
center] bound\_address {inet[/0:0:0:0:0:0:0:0:9300]}, publish\_address  
{inet[/10.6.0.88:9300]}  
[2012-12-13 16:50:54,895][INFO][cluster.service] [command  
center] new\_master [command  
center][OnUSxbKiTKKkaU70ODlapw][inet[/10.6.0.88:9300]]{master=true},  
reason: zen-disco-join (elected\_as\_master)  
[2012-12-13 16:50:54,948][INFO][discovery] [command  
center] en-es/OnUSxbKiTKKkaU70ODlapw  
[2012-12-13 16:50:55,139][INFO][http] [command  
center] bound\_address {inet[/0:0:0:0:0:0:0:0:9200]}, publish\_address  
{inet[/10.6.0.88:9200]}  
[2012-12-13 16:50:55,139][INFO][node] [command  
center] {0.20.1}[5361]: started  
[2012-12-13 16:50:55,280][INFO][gateway] [command  
center] recovered [0] indices into cluster\_state  
[2012-12-13 16:53:36,293][WARN][transport.netty] [command  
center] exception caught on transport layer [[id: 0x271f434f,  
/10.6.0.88:54803 =\> /10.6.0.88:9300]], closing connection  
java.io.StreamCorruptedException: invalid internal transport message format  
at  
org.elasticsearch.transport.netty.SizeHeaderFrameDecoder.decode(SizeHeaderFrameDecoder.java:27)  
at  
org.elasticsearch.common.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:422)  
at  
org.elasticsearch.common.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303)  
at  
org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)  
at  
org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:558)  
at  
org.elasticsearch.common.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:786)  
at  
org.elasticsearch.common.netty.OpenChannelsHandler.handleUpstream(OpenChannelsHandler.java:74)  
at  
org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:558)  
at  
org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:553)  
at  
org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:268)  
at  
org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:255)  
at  
org.elasticsearch.common.netty.channel.socket.nio.NioWorker.read(NioWorker.java:84)  
at  
org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.processSelectedKeys(AbstractNioWorker.java:471)  
at  
org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:332)

--

---

<div class="post-metadata">

### Author: ![radu\_gheorghe](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/radu_gheorghe/32/556_2.png) [@radu\_gheorghe](https://discuss.elastic.co/u/radu_gheorghe)
#### Post date: [December 17, 2012, 11:24am UTC](https://discuss.elastic.co/t/exception-caught-on-transport-layer-0-20-1/10072/2 "2012-12-17T11:24:02Z")

</div>

Hi Ognen,

If you're using the "elasticsearch" output:

> **[Elasticsearch output plugin | Logstash Plugins](https://www.elastic.co/docs/reference/logstash/plugins/plugins-outputs-elasticsearch)**
>
> Plugin version: v12.1.0 (Other versions), Released on: 2025-10-07, Changelog. For questions about the plugin, open a topic in the Discuss forums. For...

I think the problem is caused by the difference in versions, because  
logstash uses 0.19.8. And you have 0.20.1. They should be the same version.

I think you have a few options here:

- use 0.19.8 in your cluster
- use elasticsearch\_http:  
[Elasticsearch output plugin | Logstash Plugins](http://logstash.net/docs/1.1.5/outputs/elasticsearch_http)
- patch logstash to use 0.20.1 or wait for a newer version

## Best regards, Radu

[http://sematext.com/](http://sematext.com/) -- Elasticsearch -- Solr -- Lucene

On Fri, Dec 14, 2012 at 1:45 AM, Ognen Duzlevski [ognen@enthought.com](mailto:ognen@enthought.com)wrote:

> This has been driving me crazy ;). I installed elasticsearch 0.20.1, it  
> starts up fine (via /etc/init.d/elasticsearch, this is a debian box). The  
> log is quiet up to the moment I start logstash (1.1.5). All I want is to  
> run logstash/elasticsearch/kibana on my centralized rsyslog setup. I get  
> the exceptions below as soon as I start logstash....
> 
> Any help appreciated!
> 
> Thanks!  
> OD
> 
> root@cmd-center:~# less /var/log/elasticsearch/enthought-es.log  
> [2012-12-13 16:50:48,370][WARN][bootstrap] jvm uses the  
> client vm, make sure to run `java` with the server vm for best performance  
> by adding `-server` to the command line  
> [2012-12-13 16:50:48,380][INFO][node] [command  
> center] {0.20.1}[5361]: initializing ...  
> [2012-12-13 16:50:48,389][INFO][plugins] [command  
> center] loaded , sites   
> [2012-12-13 16:50:51,732][INFO][node] [command  
> center] {0.20.1}[5361]: initialized  
> [2012-12-13 16:50:51,732][INFO][node] [command  
> center] {0.20.1}[5361]: starting ...  
> [2012-12-13 16:50:51,860][INFO][transport] [command  
> center] bound\_address {inet[/0:0:0:0:0:0:0:0:9300]}, publish\_address {inet[/  
> 10.6.0.88:9300]}  
> [2012-12-13 16:50:54,895][INFO][cluster.service] [command  
> center] new\_master [command  
> center][OnUSxbKiTKKkaU70ODlapw][inet[/10.6.0.88:9300]]{master=true},  
> reason: zen-disco-join (elected\_as\_master)  
> [2012-12-13 16:50:54,948][INFO][discovery] [command  
> center] en-es/OnUSxbKiTKKkaU70ODlapw  
> [2012-12-13 16:50:55,139][INFO][http] [command  
> center] bound\_address {inet[/0:0:0:0:0:0:0:0:9200]}, publish\_address {inet[/  
> 10.6.0.88:9200]}  
> [2012-12-13 16:50:55,139][INFO][node] [command  
> center] {0.20.1}[5361]: started  
> [2012-12-13 16:50:55,280][INFO][gateway] [command  
> center] recovered [0] indices into cluster\_state  
> [2012-12-13 16:53:36,293][WARN][transport.netty] [command  
> center] exception caught on transport layer [[id: 0x271f434f, /  
> 10.6.0.88:54803 =\> /10.6.0.88:9300]], closing connection  
> java.io.StreamCorruptedException: invalid internal transport message format  
> at  
> org.elasticsearch.transport.netty.SizeHeaderFrameDecoder.decode(SizeHeaderFrameDecoder.java:27)  
> at  
> org.elasticsearch.common.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:422)  
> at  
> org.elasticsearch.common.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303)  
> at  
> org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)  
> at  
> org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:558)  
> at  
> org.elasticsearch.common.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:786)  
> at  
> org.elasticsearch.common.netty.OpenChannelsHandler.handleUpstream(OpenChannelsHandler.java:74)  
> at  
> org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:558)  
> at  
> org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:553)  
> at  
> org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:268)  
> at  
> org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:255)  
> at  
> org.elasticsearch.common.netty.channel.socket.nio.NioWorker.read(NioWorker.java:84)  
> at  
> org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.processSelectedKeys(AbstractNioWorker.java:471)  
> at  
> org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:332)
> 
> --

--

---

<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, 2:59am UTC](https://discuss.elastic.co/t/exception-caught-on-transport-layer-0-20-1/10072/3 "2017-07-06T02:59:38Z")

</div>


