# Upgraded to 1.5.0 from 1.4.2 and sincedbpath (file input) no longer happy

**URL:** <https://discuss.elastic.co/t/upgraded-to-1-5-0-from-1-4-2-and-sincedbpath-file-input-no-longer-happy/1355>\
**Category:** Logstash\
**Created:** [May 27, 2015, 6:44am UTC](https://discuss.elastic.co/t/upgraded-to-1-5-0-from-1-4-2-and-sincedbpath-file-input-no-longer-happy/1355 "2015-05-27T06:44:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anoban](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anoban/32/3466_2.png) [@anoban](https://discuss.elastic.co/u/anoban)\
**Post date:** [May 27, 2015, 6:44am UTC](https://discuss.elastic.co/t/upgraded-to-1-5-0-from-1-4-2-and-sincedbpath-file-input-no-longer-happy/1355/1 "2015-05-27T06:44:34Z")

</div>

input file, sincedb\_path no happy with the previous config

Logstash changes the permissions of the directory, and cannot then read the files.

This is what I get after a restart on 1.5.0

[elk@elksyd001 logstash-1.5.0]$ ls -la ~/ELK/workingDirs/sinceDbPath/  
ls: cannot access /home/elk/ELK/workingDirs/sinceDbPath/.: Permission denied  
ls: cannot access /home/elk/ELK/workingDirs/sinceDbPath/..: Permission denied  
ls: cannot access /home/elk/ELK/workingDirs/sinceDbPath/.9788.19643.37069: Permission denied  
ls: cannot access /home/elk/ELK/workingDirs/sinceDbPath/.9788.20274.996751: Permission denied  
ls: cannot access /home/elk/ELK/workingDirs/sinceDbPath/.9788.24645.607070: Permission denied  
ls: cannot access /home/elk/ELK/workingDirs/sinceDbPath/.9788.25830.88992: Permission denied  
total 0  
d????????? ? ? ? ? ? .  
d????????? ? ? ? ? ? ..  
?????????? ? ? ? ? ? .9788.19643.37069  
?????????? ? ? ? ? ? .9788.20274.996751  
?????????? ? ? ? ? ? .9788.24645.607070  
?????????? ? ? ? ? ? .9788.25830.88992  
[elk@elksyd001 config]$ ls -dl ~/ELK/workingDirs/sinceDbPath  
drw-rw-rw-. 2 elk elk 104 May 27 12:34 /home/elk/ELK/workingDirs/sinceDbPath  
[elk@elksyd001 config]$ ls -dl ~/ELK/workingDirs  
drwxrwxr-x. 3 elk elk 24 May 27 12:27 /home/elk/ELK/workingDirs

[elk@elksyd001 logstash-1.5.0]$ id  
uid=1005(elk) gid=1005(elk) groups=1005(elk) context=unconfined\_u:unconfined\_r:unconfined\_t:s0-s0:c0.c1023

The error from logstash is :

A plugin had an unrecoverable error. Will restart this plugin.  
Plugin: \<LogStash::Inputs::File path=\>["/var/log/messages"], sincedb\_path=\>"/home/elk/ELK/workingDirs/sinceDbPath/", type=\>"syslog", start\_position=\>"end", delimiter=\>"\n"\>  
Error: Permission denied - /home/elk/ELK/workingDirs/sinceDbPath/.9788.24645.607070 or /home/elk/ELK/workingDirs/sinceDbPath/ {:level=\>:error}  
Errno::EACCES: Permission denied - /home/elk/ELK/workingDirs/sinceDbPath/.9788.24645.524011  
initialize at org/jruby/RubyFile.java:362  
new at org/jruby/RubyIO.java:851  
atomic\_write at /home/elk/ELK/logstash-1.5.0/vendor/bundle/jruby/1.9/gems/filewatch-0.6.2/lib/filewatch/helper.rb:33  
\_sincedb\_write at /home/elk/ELK/logstash-1.5.0/vendor/bundle/jruby/1.9/gems/filewatch-0.6.2/lib/filewatch/tail.rb:233  
sincedb\_write at /home/elk/ELK/logstash-1.5.0/vendor/bundle/jruby/1.9/gems/filewatch-0.6.2/lib/filewatch/tail.rb:203  
teardown at /home/elk/ELK/logstash-1.5.0/vendor/bundle/jruby/1.9/gems/logstash-input-file-0.1.10/lib/logstash/inputs/file.rb:151  
inputworker at /home/elk/ELK/logstash-1.5.0/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 /home/elk/ELK/logstash-1.5.0/vendor/bundle/jruby/1.9/gems/logstash-core-1.5.0-java/lib/logstash/pipeline.rb:203  
start\_input at /home/elk/ELK/logstash-1.5.0/vendor/bundle/jruby/1.9/gems/logstash-core-1.5.0-java/lib/logstash/pipeline.rb:171

before the restart, the ~/ELK/workingDirs/sinceDbPath directory has the 776 permissions.

drwxrwxr-x. 3 elk elk 24 May 27 12:27 /home/elk/ELK/workingDirs/sinceDbPath

config is

input {  
file {  
path =\> "/localDisk1/flume/\*_mymymy_\*log"  
type =\> "mytest"  
sincedb\_path =\> "/home/elk/ELK\_temp/workingDirs/sinceDbPath/"  
}

---

<div class="post-metadata">

**Author:** ![Vu\_Doan\_Hai\_2](https://avatars.discourse-cdn.com/v4/letter/v/d9b06d/32.png) [@Vu\_Doan\_Hai\_2](https://discuss.elastic.co/u/Vu_Doan_Hai_2)\
**Post date:** [June 8, 2015, 7:52am UTC](https://discuss.elastic.co/t/upgraded-to-1-5-0-from-1-4-2-and-sincedbpath-file-input-no-longer-happy/1355/2 "2015-06-08T07:52:02Z")

</div>

I encountered same issue, remove the sincedb\_path config should solve the problem. There are sincedb issues reported on github, so please fix this @Elastic

---

<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:38am UTC](https://discuss.elastic.co/t/upgraded-to-1-5-0-from-1-4-2-and-sincedbpath-file-input-no-longer-happy/1355/3 "2017-07-06T05:38:12Z")

</div>


