Hi,
When we use graylog collector 0.4.2 on Red Hat Enterprise 6.4, we sometimes 
meet exception in thread "ChunkProcessor" as below , then graylog collector 
can't send log to server util we restart collector.Because of this problem 
we can not collect complete log.Would we pass this exception to continue 
recevie log ?

Server Side:
* Graylog Version:1.3.3
* Elasticsearch Version:1.7.3
* MongoDB Version:v2.4.9

Exception:
Exception in thread "ChunkProcessor" java.lang.IndexOutOfBoundsException: 
readerIndex(164) + length(1) exceeds writerIndex(164): 
CompositeByteBuf(ridx: 164, widx: 164, cap: 164, components=1)
        at 
io.netty.buffer.AbstractByteBuf.checkReadableBytes(AbstractByteBuf.java:1166)
        at 
io.netty.buffer.AbstractByteBuf.readByte(AbstractByteBuf.java:570)
        at 
org.graylog.collector.file.splitters.NewlineChunkSplitter$1$1.computeNext(NewlineChunkSplitter.java:53)
        at 
org.graylog.collector.file.splitters.NewlineChunkSplitter$1$1.computeNext(NewlineChunkSplitter.java:32)
        at 
com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:143)
        at 
com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:138)
        at 
org.graylog.collector.file.ChunkProcessor.createMessages(ChunkProcessor.java:89)
        at 
org.graylog.collector.file.ChunkProcessor.process(ChunkProcessor.java:85)
        at 
org.graylog.collector.file.ChunkProcessor.run(ChunkProcessor.java:51)
        at 
com.google.common.util.concurrent.AbstractExecutionThreadService$1$2.run(AbstractExecutionThreadService.java:60)
        at 
com.google.common.util.concurrent.Callables$3.run(Callables.java:95)
        at java.lang.Thread.run(Thread.java:804)
2016-03-08T11:19:43.063+0800 ERROR [gelfTcpTransport-1-1] 
gelfclient.transport.GelfTcpTransport - Exception caught
java.io.IOException: Connection reset by peer
        at sun.nio.ch.FileDispatcherImpl.read0(Native Method) ~[?:1.7.0]
        at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:51) 
~[?:1.7.0]
        at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:235) 
~[?:1.7.0]
        at sun.nio.ch.IOUtil.read(IOUtil.java:204) ~[?:1.7.0]
        at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:409) 
~[?:1.7.0]
        at 
io.netty.buffer.UnpooledUnsafeDirectByteBuf.setBytes(UnpooledUnsafeDirectByteBuf.java:447)
 
~[graylog-collector.jar:?]
        at 
io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:881) 
~[graylog-collector.jar:?]
        at 
io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(NioSocketChannel.java:242)
 
~[graylog-collector.jar:?]
        at 
io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:119)
 
[graylog-collector.jar:?]
        at 
io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511) 
[graylog-collector.jar:?]
        at 
io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468)
 
[graylog-collector.jar:?]
        at 
io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382) 
[graylog-collector.jar:?]
        at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354) 
[graylog-collector.jar:?]
        at 
io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:111)
 
[graylog-collector.jar:?]
        at 
io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)
 
[graylog-collector.jar:?]
        at java.lang.Thread.run(Thread.java:804) [?:1.7.0]
2016-03-08T11:19:43.066+0800 ERROR [gelfTcpTransport-1-1] 
gelfclient.encoder.GelfMessageJsonEncoder - JSON encoding error
java.io.IOException: Connection reset by peer
        at sun.nio.ch.FileDispatcherImpl.read0(Native Method) ~[?:1.7.0]
        at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:51) 
~[?:1.7.0]
        at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:235) 
~[?:1.7.0]
        at sun.nio.ch.IOUtil.read(IOUtil.java:204) ~[?:1.7.0]
        at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:409) 
~[?:1.7.0]
        at 
io.netty.buffer.UnpooledUnsafeDirectByteBuf.setBytes(UnpooledUnsafeDirectByteBuf.java:447)
 
~[graylog-collector.jar:?]
        at 
io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:881) 
~[graylog-collector.jar:?]
        at 
io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(NioSocketChannel.java:242)
 
~[graylog-collector.jar:?]
        at 
io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:119)
 
[graylog-collector.jar:?]
        at 
io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511) 
[graylog-collector.jar:?]
        at 
io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468)
 
[graylog-collector.jar:?]
        at 
io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382) 
[graylog-collector.jar:?]
        at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354) 
[graylog-collector.jar:?]
        at 
io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:111)
 
[graylog-collector.jar:?]
        at 
io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)
 
[graylog-collector.jar:?]
        at java.lang.Thread.run(Thread.java:804) [?:1.7.0]
2016-03-08T11:19:43.067+0800 INFO  [gelfTcpTransport-1-1] 
gelfclient.transport.GelfTcpTransport - Channel disconnected!

-- 
You received this message because you are subscribed to the Google Groups 
"Graylog Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to graylog2+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/graylog2/73676394-43fc-47f9-a15f-0fd61559f0c5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to