A plugin had an unrecoverable error

Hi

When I start logstash it crashes sometimes after one minute, sometimes take more time, but in resume crash.

Did you have any suggestion? I already google it, but didn't find a good fix...

Here is my input and the error:

  • Input

input {

file {
path => [
"/home/remoteLogs/zlf/SVLZFIPFE0[5678]/nPVR.Manager.ByFTP/SVLNPIPBE0[789]/nPVR.DS.REST.API.log20151027*"
]

sincedb_path => "/opt/gopm/etc/logstash/fileinput/sincedb.npvrmanager"
sincedb_write_interval=> 1
start_position => "beginning"

add_field => { "type" => "npvrManager.logs" }

}

file {
path => [
"/home/remoteLogs/zlf/SVLZFIPFE0[5678]/nPVR.Manager.ByFTP/SVLNPIPBE1[012]/nPVR.DS.REST.API.log20151027*"
]

sincedb_path => "/opt/gopm/etc/logstash/fileinput/sincedb.npvrmanager"
sincedb_write_interval=> 1
start_position => "beginning"

add_field => { "type" => "npvrManager.logs" }

}

  • Error:

{:timestamp=>"2015-10-28T17:06:39.667000+0000", :message=>"A plugin had an unrecoverable error. Will restart this plugin.\n Plugin: <LogStash::Inputs::File path=>["/home/remoteLogs/zlf/SVLZFIPFE0[5678]/nPVR.Manager.ByFTP/SVLNPIPBE0[789]/nPVR.DS.REST.API.log20151027*"], sincedb_path=>"/opt/gopm/etc/logstash/fileinput/sincedb.npvrmanager", start_position=>"beginning", add_field=>{"type"=>"npvrManager.logs"}, delimiter=>"\n">\n Error: Permission denied - /opt/gopm/etc/logstash/fileinput/sincedb.npvrmanager.45952.17044.324796", :level=>:error}
Errno::EACCES: Permission denied - /opt/gopm/etc/logstash/fileinput/sincedb.npvrmanager.45952.17044.225141
initialize at org/jruby/RubyFile.java:362
new at org/jruby/RubyIO.java:851
atomic_write at /opt/logstash/vendor/bundle/jruby/1.9/gems/filewatch-0.6.2/lib/filewatch/helper.rb:33
_sincedb_write at /opt/logstash/vendor/bundle/jruby/1.9/gems/filewatch-0.6.2/lib/filewatch/tail.rb:233
sincedb_write at /opt/logstash/vendor/bundle/jruby/1.9/gems/filewatch-0.6.2/lib/filewatch/tail.rb:203
teardown at /opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-input-file-0.1.10/lib/logstash/inputs/file.rb:151
inputworker at /opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-1.5.0-java/lib/logstash/pipeline.rb:203
synchronize at org/jruby/ext/thread/Mutex.java:149
inputworker at /opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-1.5.0-java/lib/logstash/pipeline.rb:203
start_input at /opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-1.5.0-java/lib/logstash/pipeline.rb:171

Thanks

That's why, check that LS has permission to access the file.

Logstash have permission.

If not I wasn't able to have the Logstash running sometimes....

Any suggestion?