# Logstash with error of read\_to\_eof

**URL:** <https://discuss.elastic.co/t/logstash-with-error-of-read-to-eof/150302>\
**Category:** Logstash\
**Created:** [September 28, 2018, 7:40am UTC](https://discuss.elastic.co/t/logstash-with-error-of-read-to-eof/150302 "2018-09-28T07:40:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chunbo\_Liao](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chunbo_liao/32/48172_2.png) [@Chunbo\_Liao](https://discuss.elastic.co/u/Chunbo_Liao)\
**Post date:** [September 28, 2018, 7:40am UTC](https://discuss.elastic.co/t/logstash-with-error-of-read-to-eof/150302/1 "2018-09-28T07:40:25Z")

</div>

Hi,

When I run logstash 6.4.1, there are lots of follow error logs.

[ERROR][filewatch.tailmode.handlers.grow] read\_to\_eof: general error reading /home/11thone/caselog/logmonster/CAS-HUNAN-TEST/MME01/MMDU0/SubsHandlerSnapshot7.log {"error"=\>"#\<SystemCallError: Unknown error (SystemCallError) - /home/11thone/caselog/logmonster/CAS-HUNAN-TEST/MME01/MMDU0/SubsHandlerSnapshot7.log\>", "backtrace"=\>["org/jruby/RubyIO.java:2958:in `sysread'", "/home/11thone/elk/logstash/vendor/bundle/jruby/2.3.0/gems/logstash-input-file-4.1.6/lib/filewatch/watched_file.rb:224:in`file\_read'", "/home/11thone/elk/logstash/vendor/bundle/jruby/2.3.0/gems/logstash-input-file-4.1.6/lib/filewatch/watched\_file.rb:236:in `read_extract_lines'", "/home/11thone/elk/logstash/vendor/bundle/jruby/2.3.0/gems/logstash-input-file-4.1.6/lib/filewatch/tail_mode/handlers/base.rb:52:in`block in controlled\_read'"]}

is there some config error in my logstash or system. or just the grok error?

---

<div class="post-metadata">

**Author:** ![Archana\_Moharana](https://avatars.discourse-cdn.com/v4/letter/a/a5b964/32.png) [@Archana\_Moharana](https://discuss.elastic.co/u/Archana_Moharana)\
**Post date:** [October 5, 2018, 9:51am UTC](https://discuss.elastic.co/t/logstash-with-error-of-read-to-eof/150302/2 "2018-10-05T09:51:23Z")

</div>

Hello  
Logstash with error of read\_to\_eof  
I am too facing the same error. Have you debugged it?

[2018-10-05T15:26:40,498][ERROR][filewatch.tailmode.handlers.grow] read\_to\_eof: general error reading /home/aptus1/sbds/testData/carsFolder/cars\_00000.tar.gz {"error"=\>"java.lang.IllegalArgumentException: Object: \u001F\u008B\b\u0000X\u0012·[\u0000\u0003íÒ½Nã@\u0010\ap×\u0091ò\u000Eû\u0000£½\u009DÙ/»§ ¡\u0001\u0089£C\u009BÄ is not a legal argument to this wrapper, cause it doesn't respond to "read".", "backtrace"=\>["org.jruby.util.IOInputStream.(IOInputStream.java:64)", "org.jruby.ext.zlib.JZlibRubyGzipReader.initialize(JZlibRubyGzipReader.java:115)", "org.jruby.ext.zlib.JZlibRubyGzipReader.initialize19(JZlibRubyGzipReader.java:145)", "org.jruby.ext.zlib.JZlibRubyGzipReader$INVOKER$i$0$1$initialize19.call(JZlibRubyGzipReader$INVOKER$i$0$1$initialize19.gen)"]}

Thanks

---

<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:** [November 2, 2018, 9:52am UTC](https://discuss.elastic.co/t/logstash-with-error-of-read-to-eof/150302/3 "2018-11-02T09:52:33Z")

</div>

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