# Logstash is stopping becuase SystemExit Error

**URL:** <https://discuss.elastic.co/t/logstash-is-stopping-becuase-systemexit-error/299746>\
**Category:** Logstash\
**Created:** [March 15, 2022, 2:21pm UTC](https://discuss.elastic.co/t/logstash-is-stopping-becuase-systemexit-error/299746 "2022-03-15T14:21:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![goutham\_eai](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/goutham_eai/32/103065_2.png) [@goutham\_eai](https://discuss.elastic.co/u/goutham_eai)\
**Post date:** [March 15, 2022, 2:21pm UTC](https://discuss.elastic.co/t/logstash-is-stopping-becuase-systemexit-error/299746/1 "2022-03-15T14:21:10Z")

</div>

Hi All,  
I have upgraded the log stash from 7.8.0 to 7.16.2,After upgrading i am getting below error.

```auto
[2022-03-15T13:51:28,568][DEBUG][logstash.modules.scaffold] Found module {:module_name=>"fb_apache", :directory=>"/usr/share/logstash/modules/fb_apache/configuration"}
[2022-03-15T13:51:28,568][DEBUG][logstash.plugins.registry] Adding plugin to the registry {:name=>"fb_apache", :type=>:modules, :class=>#<LogStash::Modules::Scaffold:0x7e775b6f @directory="/usr/share/logstash/modules/fb_apache/configuration", @module_name="fb_apache", @kibana_version_parts=["6", "0", "0"]>}
[2022-03-15T13:51:28,569][DEBUG][logstash.modules.scaffold] Found module {:module_name=>"netflow", :directory=>"/usr/share/logstash/modules/netflow/configuration"}
[2022-03-15T13:51:28,571][DEBUG][logstash.plugins.registry] Adding plugin to the registry {:name=>"netflow", :type=>:modules, :class=>#<LogStash::Modules::Scaffold:0x551b166f @directory="/usr/share/logstash/modules/netflow/configuration", @module_name="netflow", @kibana_version_parts=["6", "0", "0"]>}
[2022-03-15T13:51:28,614][FATAL][org.logstash.Logstash] Logstash stopped processing because of an error: (SystemExit) exit
org.jruby.exceptions.SystemExit: (SystemExit) exit
        at org.jruby.RubyKernel.exit(org/jruby/RubyKernel.java:747) ~[jruby-complete-9.2.20.1.jar:?]
        at org.jruby.RubyKernel.exit(org/jruby/RubyKernel.java:710) ~[jruby-complete-9.2.20.1.jar:?]
        at usr.share.logstash.lib.bootstrap.environment.<main>(/usr/share/logstash/lib/bootstrap/environment.rb:94) ~[?:?]

```

Java Version: openjdk version "1.8.0\_322"  
OpenJDK Runtime Environment (build 1.8.0\_322-b06)  
OpenJDK 64-Bit Server VM (build 25.322-b06, mixed mode)

Server type: Linux-x86\_64_86\_64_86\_64 GNU/Linux.

Can you please help on this issue..i am trying to fix this issue from last one month and there is no luck.

Regards.  
Goutham

---

<div class="post-metadata">

**Author:** ![Hitendra\_Verma](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hitendra_verma/32/104091_2.png) [@Hitendra\_Verma](https://discuss.elastic.co/u/Hitendra_Verma)\
**Post date:** [April 7, 2022, 8:28am UTC](https://discuss.elastic.co/t/logstash-is-stopping-becuase-systemexit-error/299746/2 "2022-04-07T08:28:47Z")

</div>

I am also facing same issue, i got it resolved as below.  
`SystemExit because of multiple logstash running.`

check for the .lock file at path/var/lib/logstash ,  
delete .lock file  
`rm .lock`

Now configure pipeline.yaml as below (remove # from first line)

```auto
	- pipeline.id: main
	  path.config: "/etc/logstash/logstash-its.conf"

```

Now restart logstash  
`systemctl restart logstash`

---

<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 5, 2022, 8:29am UTC](https://discuss.elastic.co/t/logstash-is-stopping-becuase-systemexit-error/299746/3 "2022-05-05T08:29:09Z")

</div>

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