A plugin had an unrecoverable error: Logstash File start_position


(Mike W) #1

I have run into the following error (apart from large log files, all the data is being imported without any issues):

C:/XXX/logstash-6.4.0/logstash-6.4.0/vendor/bundle/jruby/2.3.0/gems/logstash-input-file-4.1.5/lib/filewatch/sincedb_collection.rb:22:in `initialize'
C:/XXX/logstash-6.4.0/logstash-6.4.0/vendor/bundle/jruby/2.3.0/gems/logstash-input-file-4.1.5/lib/filewatch/observing_base.rb:62:in `build_watch_and_dependencies'
C:/XXX/logstash-6.4.0/logstash-6.4.0/vendor/bundle/jruby/2.3.0/gems/logstash-input-file-4.1.5/lib/filewatch/observing_base.rb:56:in `initialize'
C:/XXX/logstash-6.4.0/logstash-6.4.0/vendor/bundle/jruby/2.3.0/gems/logstash-input-file-4.1.5/lib/logstash/inputs/file.rb:332:in `start_processing'
C:/XXX/logstash-6.4.0/logstash-6.4.0/vendor/bundle/jruby/2.3.0/gems/logstash-input-file-4.1.5/lib/logstash/inputs/file.rb:337:in `run'
C:/XXX/logstash-6.4.0/logstash-6.4.0/logstash-core/lib/logstash/pipeline.rb:408:in `inputworker'
C:/XXX/logstash-6.4.0/logstash-6.4.0/logstash-core/lib/logstash/pipeline.rb:402:in `block in start_input'
[2018-11-19T17:37:42,983][INFO ][filewatch.observingtail  ] START, creating Discoverer, Watch with file and sincedb collections
[2018-11-19T17:37:42,983][ERROR][logstash.pipeline        ] A plugin had an unrecoverable error. Will restart this plugin.
  Pipeline_id:projects
  Plugin: <LogStash::Inputs::File start_position=>"beginning", path=>["C:/Temp/test_file_uat.csv"], file_chunk_count=>4611686018427387903, id=>"2deaeaa2e0095a6246ea2c702e30de471961c1b0403b1567981f90a59ff0309b", sincedb_path=>"C:/Temp/.test_file_uat.csv.db", close_older=>45.0, stat_interval=>5.0, enable_metric=>true, codec=><LogStash::Codecs::Plain id=>"plain_3e4a8560-541f-40ae-a1e9-c9acbc5e06b4", enable_metric=>true, charset=>"UTF-8">, discover_interval=>15, sincedb_write_interval=>15.0, delimiter=>"\n", mode=>"tail", file_completed_action=>"delete", sincedb_clean_after=>1209600.0, file_chunk_size=>32768, file_sort_by=>"last_modified", file_sort_direction=>"asc">
  Error: Input/output error - Input/output error
  Exception: Errno::EIO
  Stack: org/jruby/RubyFile.java:1172:in `utime'
uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/fileutils.rb:1164:in `block in touch'
org/jruby/RubyArray.java:1734:in `each'
uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/fileutils.rb:1161:in `touch'

(Mike W) #2

anyone?


#3

hello,
if you could provide the input code it will be easy to provide the solution for you.

Regards