# Logstash Windows Service - error java.lang.IllegalStateException

**URL:** <https://discuss.elastic.co/t/logstash-windows-service-error-java-lang-illegalstateexception/144187>\
**Category:** Logstash\
**Created:** [August 13, 2018, 2:14pm UTC](https://discuss.elastic.co/t/logstash-windows-service-error-java-lang-illegalstateexception/144187 "2018-08-13T14:14:53Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Scott\_Newby](https://avatars.discourse-cdn.com/v4/letter/s/eb8c5e/32.png) [@Scott\_Newby](https://discuss.elastic.co/u/Scott_Newby)\
**Post date:** [August 13, 2018, 2:14pm UTC](https://discuss.elastic.co/t/logstash-windows-service-error-java-lang-illegalstateexception/144187/1 "2018-08-13T14:14:53Z")

</div>

Logstash continues to restart repeating -

```
[ERROR][org.logstash.Logstash] java.lang.IllegalStateException: Logstash stopped processing because of an error: (SystemExit) exit

```

I've tried: removing the config.reload.automatic = true setting in logstash.yml, setting the service account to localsystem and my personal account. Ensured that I have permissions to the config file in logstash...

Any help would be appreciated.

---

<div class="post-metadata">

**Author:** ![Scott\_Newby](https://avatars.discourse-cdn.com/v4/letter/s/eb8c5e/32.png) [@Scott\_Newby](https://discuss.elastic.co/u/Scott_Newby)\
**Post date:** [August 13, 2018, 2:19pm UTC](https://discuss.elastic.co/t/logstash-windows-service-error-java-lang-illegalstateexception/144187/2 "2018-08-13T14:19:27Z")

</div>

Along with this behavior, when the service account is set to my account I get AppData\Local\Temp continually creating jruby-NNNNN directories and jffiNNNNNN.dll files being created.

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [August 13, 2018, 2:33pm UTC](https://discuss.elastic.co/t/logstash-windows-service-error-java-lang-illegalstateexception/144187/3 "2018-08-13T14:33:30Z")

</div>

Is the quoted error message the _only_ message in the log? It's usually just the final message before Logstash quits, with the interesting messages further up.

---

<div class="post-metadata">

**Author:** ![Scott\_Newby](https://avatars.discourse-cdn.com/v4/letter/s/eb8c5e/32.png) [@Scott\_Newby](https://discuss.elastic.co/u/Scott_Newby)\
**Post date:** [August 13, 2018, 3:51pm UTC](https://discuss.elastic.co/t/logstash-windows-service-error-java-lang-illegalstateexception/144187/4 "2018-08-13T15:51:48Z")

</div>

Magnus - thanks for the quick response...

`[2018-08-03T10:32:56,001][WARN][logstash.runner] SIGINT received. Shutting down. [2018-08-03T10:32:56,206][ERROR][logstash.inputs.file] each: active?: /Jenkins/jobs/Testing Pipeline/jobs/Pipeline/builds/lastStableBuild/cucumber-html-reports/.cache/report_0.json: (#<Errno::ESRCH: No such process - /Jenkins/jobs/Testing Pipeline/jobs/Pipeline/builds/lastStableBuild/cucumber-html-reports/.cache/report_0.json>) [2018-08-03T10:32:56,232][ERROR][logstash.inputs.file] each: active?: /Jenkins/jobs/Testing Pipeline/jobs/Pipeline/builds/lastStableBuild/cucumber-html-reports/.cache/report_1.json: (#<Errno::ESRCH: No such process - /Jenkins/jobs/Testing Pipeline/jobs/Pipeline/builds/lastStableBuild/cucumber-html-reports/.cache/report_1.json>) [2018-08-03T10:32:56,233][ERROR][logstash.inputs.file] each: active?: /Jenkins/jobs/Testing Pipeline/jobs/Pipeline/builds/lastSuccessfulBuild/cucumber-html-reports/.cache/report_0.json: (#<Errno::ESRCH: No such process - /Jenkins/jobs/Testing Pipeline/jobs/Pipeline/builds/lastSuccessfulBuild/cucumber-html-reports/.cache/report_0.json>) [2018-08-03T10:32:56,233][ERROR][logstash.inputs.file] each: active?: /Jenkins/jobs/Testing Pipeline/jobs/Pipeline/builds/lastSuccessfulBuild/cucumber-html-reports/.cache/report_1.json: (#<Errno::ESRCH: No such process - /Jenkins/jobs/Testing Pipeline/jobs/Pipeline/builds/lastSuccessfulBuild/cucumber-html-reports/.cache/report_1.json>) [2018-08-03T10:32:56,795][WARN][logstash.shutdownwatcher] {"inflight_count"=>0, "stalling_thread_info"=>{"other"=>[{"thread_id"=>80, "name"=>"[CucumberAggregation]<file", "current_call"=>"[...]/vendor/bundle/jruby/2.3.0/gems/filewatch-0.9.0/lib/filewatch/watch.rb:288:in`sleep'"}], ["LogStash::Filters::Mutate", {"remove\_field"=\>"message", "id"=\>"288ba2c0b613390e0984968d7be0798d7a7a12ad9dec1386740a79404e6befe1"}]=\>[{"thread\_id"=\>76, "name"=\>nil, "current\_call"=\>"[...]/logstash-core/lib/logstash/pipeline.rb:418:in `read_batch'"}, {"thread_id"=>77, "name"=>nil, "current_call"=>"[...]/logstash-core/lib/logstash/pipeline.rb:418:in`read\_batch'"}, {"thread\_id"=\>78, "name"=\>nil, "current\_call"=\>"[...]/logstash-core/lib/logstash/pipeline.rb:418:in `read_batch'"}, {"thread_id"=>79, "name"=>nil, "current_call"=>"[...]/logstash-core/lib/logstash/pipeline.rb:418:in`read\_batch'"}]}}  
[2018-08-03T10:32:57,357][ERROR][logstash.inputs.file] each: active?: /Jenkins/jobs/Testing Pipeline/jobs/Pipeline/builds/lastStableBuild/cucumber-html-reports/.cache/report\_0.json: (#\<Errno::ESRCH: No such process - /Jenkins/jobs/Testing Pipeline/jobs/Pipeline/builds/lastStableBuild/cucumber-html-reports/.cache/report\_0.json\>)  
[2018-08-03T10:32:57,358][ERROR][logstash.inputs.file] each: active?: /Jenkins/jobs/Testing Pipeline/jobs/Pipeline/builds/lastStableBuild/cucumber-html-reports/.cache/report\_1.json: (#\<Errno::ESRCH: No such process - /Jenkins/jobs/Testing Pipeline/jobs/Pipeline/builds/lastStableBuild/cucumber-html-reports/.cache/report\_1.json\>)  
[2018-08-03T10:32:57,358][ERROR][logstash.inputs.file] each: active?: /Jenkins/jobs/Testing Pipeline/jobs/Pipeline/builds/lastSuccessfulBuild/cucumber-html-reports/.cache/report\_0.json: (#\<Errno::ESRCH: No such process - /Jenkins/jobs/Testing Pipeline/jobs/Pipeline/builds/lastSuccessfulBuild/cucumber-html-reports/.cache/report\_0.json\>)  
[2018-08-03T10:32:57,359][ERROR][logstash.inputs.file] each: active?: /Jenkins/jobs/Testing Pipeline/jobs/Pipeline/builds/lastSuccessfulBuild/cucumber-html-reports/.cache/report\_1.json: (#\<Errno::ESRCH: No such process - /Jenkins/jobs/Testing Pipeline/jobs/Pipeline/builds/lastSuccessfulBuild/cucumber-html-reports/.cache/report\_1.json\>)  
[2018-08-03T10:35:38,405][ERROR][org.logstash.Logstash] java.lang.IllegalStateException: Logstash stopped processing because of an error: (SystemExit) exit  
[2018-08-03T10:36:19,968][ERROR][org.logstash.Logstash] java.lang.IllegalStateException: Logstash stopped processing because of an error: (SystemExit) exit  
[2018-08-03T10:36:52,951][ERROR][org.logstash.Logstash] java.lang.IllegalStateException: Logstash stopped processing because of an error: (SystemExit) exit  
[2018-08-03T10:37:24,464][ERROR][org.logstash.Logstash] java.lang.IllegalStateException: Logstash stopped processing because of an error: (SystemExit) exit  
[2018-08-03T10:37:56,028][ERROR][org.logstash.Logstash] java.lang.IllegalStateException: Logstash stopped processing because of an error: (SystemExit) exit`

The last doc loaded on time stamp was from 8-3-2018 14:12Z time and the prior to the j.l.illegalStateException generally repeats similarly throughout the prior logs.

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [August 13, 2018, 5:45pm UTC](https://discuss.elastic.co/t/logstash-windows-service-error-java-lang-illegalstateexception/144187/5 "2018-08-13T17:45:15Z")

</div>

The first log message ("SIGINT received") indicates that Logstash somehow has received a signal to stop. Since Windows doesn't have signals I don't know what would result in a SIGINT being received. The error messages that follow are probably related to the SIGINT signal and might be normal on a platform that doesn't have signals. This is a bit too Windows-specific for me.

---

<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:** [September 10, 2018, 5:45pm UTC](https://discuss.elastic.co/t/logstash-windows-service-error-java-lang-illegalstateexception/144187/6 "2018-09-10T17:45:18Z")

</div>

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