# Logstash stuck at Successfully started Logstash API

**URL:** <https://discuss.elastic.co/t/logstash-stuck-at-successfully-started-logstash-api/179097>\
**Category:** Logstash\
**Created:** [April 30, 2019, 2:04pm UTC](https://discuss.elastic.co/t/logstash-stuck-at-successfully-started-logstash-api/179097 "2019-04-30T14:04:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chaitra\_Muniyappa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chaitra_muniyappa/32/45327_2.png) [@Chaitra\_Muniyappa](https://discuss.elastic.co/u/Chaitra_Muniyappa)\
**Post date:** [April 30, 2019, 2:04pm UTC](https://discuss.elastic.co/t/logstash-stuck-at-successfully-started-logstash-api/179097/1 "2019-04-30T14:04:21Z")

</div>

HI,

I am trying to load a CSV file into Elastic Search using logstash. I previously loaded it but deleted the index and loading with document type field. But now i am stuck at  
Successfully started Logstash API endpoint {:port=\>9600} and control isnt moving further.  
below is the config  
//  
input {  
file {  
path =\> "/Users/amar/Downloads/data/Towed\_Cars\_for\_the\_Past\_30\_Days.csv"  
start\_position =\> "beginning"  
#sincedb\_path =\> "/dev/null"  
}  
}

filter{  
csv{  
separator =\> ","  
columns =\> ["TowNum","Tow\_Firm","Tow\_Firm\_Address","Tow\_Firm\_Phone","Vehicle\_State","Vehicle\_Plate","Vehicle\_Year","Make","Model","Color","Date","Time","geom","Census\_2010\_Tracts"]  
}

mutate {convert =\> ["TowNum","integer"]}  
mutate {convert =\> ["Vehicle\_Year","integer"]}  
mutate {convert =\> ["Census\_2010\_Tracts","integer"]}

}  
output{  
elasticsearch {  
hosts =\> "localhost:9200"  
index =\> "tcars"  
document\_type =\> "\_doc"  
}  
stdout {}  
}  
//  
Note that there is also problem with sincedb\_path i have set it to /dev/null since i am on MAC OS but if its enabled i get different error

[2019-04-30T15:59:26,555][ERROR][logstash.javapipeline] A plugin had an unrecoverable error. Will restart this plugin.  
Pipeline\_id:main  
Plugin: \<LogStash::Inputs::File start\_position=\>"beginning", path=\>["/Users/amar/Downloads/data/Towed\_Cars\_for\_the\_Past\_30\_Days.csv"], id=\>"be8992f287d4df754db475c47d1a6c1cb3fb9bdde952d23a7d3b4e172b64e83c", sincedb\_path=\>"/dev/null", enable\_metric=\>true, codec=\>\<LogStash::Codecs::Plain id=\>"plain\_68ab4425-fac7-4f11-aafa-fffaa4b4149d", enable\_metric=\>true, charset=\>"UTF-8"\>, stat\_interval=\>1.0, discover\_interval=\>15, sincedb\_write\_interval=\>15.0, delimiter=\>"\n", close\_older=\>3600.0, mode=\>"tail", file\_completed\_action=\>"delete", sincedb\_clean\_after=\>1209600.0, file\_chunk\_size=\>32768, file\_chunk\_count=\>140737488355327, file\_sort\_by=\>"last\_modified", file\_sort\_direction=\>"asc"\>  
Error: Permission denied - Permission denied  
Exception: Errno::EACCES  
Stack: org/jruby/RubyFile.java:1263:in `utime'

Regards,  
Chaitra

---

<div class="post-metadata">

**Author:** ![franco.federico](https://avatars.discourse-cdn.com/v4/letter/f/67e7ee/32.png) [@franco.federico](https://discuss.elastic.co/u/franco.federico)\
**Post date:** [April 30, 2019, 10:25pm UTC](https://discuss.elastic.co/t/logstash-stuck-at-successfully-started-logstash-api/179097/2 "2019-04-30T22:25:39Z")

</div>

Hi Chaitra

I found this solution in the other conversation about similar problem.

It is possibile that the problem is with configuration documentation, naming and expectations..  
`sincedb_path` is not meant to be a directory but a file, that's why it's attempting to write to "/tmp/sincedb\_folder" as a file.

To check that it works, setting `sincedb_path => "/tmp/mysincedbfile"` should work fine

Bye  
Franco

---

<div class="post-metadata">

**Author:** ![Chaitra\_Muniyappa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chaitra_muniyappa/32/45327_2.png) [@Chaitra\_Muniyappa](https://discuss.elastic.co/u/Chaitra_Muniyappa)\
**Post date:** [May 1, 2019, 7:40am UTC](https://discuss.elastic.co/t/logstash-stuck-at-successfully-started-logstash-api/179097/3 "2019-05-01T07:40:09Z")

</div>

I have set it to Null and it works fine

---

<div class="post-metadata">

**Author:** ![Chaitra\_Muniyappa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chaitra_muniyappa/32/45327_2.png) [@Chaitra\_Muniyappa](https://discuss.elastic.co/u/Chaitra_Muniyappa)\
**Post date:** [May 2, 2019, 7:31pm UTC](https://discuss.elastic.co/t/logstash-stuck-at-successfully-started-logstash-api/179097/4 "2019-05-02T19:31:33Z")

</div>

if we set sincedbpath then it would update the file details in it. what if i delete index and run the script again ? how to fix such situation?

---

<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:** [May 30, 2019, 7:31pm UTC](https://discuss.elastic.co/t/logstash-stuck-at-successfully-started-logstash-api/179097/5 "2019-05-30T19:31:38Z")

</div>

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