# A plugin had an unrecoverable error

**URL:** <https://discuss.elastic.co/t/a-plugin-had-an-unrecoverable-error/33176>\
**Category:** Logstash\
**Created:** [October 28, 2015, 5:49pm UTC](https://discuss.elastic.co/t/a-plugin-had-an-unrecoverable-error/33176 "2015-10-28T17:49:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daniel\_Silva1](https://avatars.discourse-cdn.com/v4/letter/d/4bbf92/32.png) [@Daniel\_Silva1](https://discuss.elastic.co/u/Daniel_Silva1)\
**Post date:** [October 28, 2015, 5:49pm UTC](https://discuss.elastic.co/t/a-plugin-had-an-unrecoverable-error/33176/1 "2015-10-28T17:49:42Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [October 28, 2015, 11:44pm UTC](https://discuss.elastic.co/t/a-plugin-had-an-unrecoverable-error/33176/2 "2015-10-28T23:44:29Z")

</div>

> [@Daniel\_Silva1](#):
>
> Errno::EACCES: Permission denied - /opt/gopm/etc/logstash/fileinput/sincedb.npvrmanager.45952.17044.225141

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

---

<div class="post-metadata">

**Author:** ![Daniel\_Silva1](https://avatars.discourse-cdn.com/v4/letter/d/4bbf92/32.png) [@Daniel\_Silva1](https://discuss.elastic.co/u/Daniel_Silva1)\
**Post date:** [October 29, 2015, 11:05am UTC](https://discuss.elastic.co/t/a-plugin-had-an-unrecoverable-error/33176/3 "2015-10-29T11:05:26Z")

</div>

Logstash have permission.

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

---

<div class="post-metadata">

**Author:** ![Daniel\_Silva1](https://avatars.discourse-cdn.com/v4/letter/d/4bbf92/32.png) [@Daniel\_Silva1](https://discuss.elastic.co/u/Daniel_Silva1)\
**Post date:** [October 29, 2015, 4:00pm UTC](https://discuss.elastic.co/t/a-plugin-had-an-unrecoverable-error/33176/4 "2015-10-29T16:00:11Z")

</div>

Any suggestion?

---

<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, 5:24am UTC](https://discuss.elastic.co/t/a-plugin-had-an-unrecoverable-error/33176/5 "2017-07-06T05:24:57Z")

</div>


