# HELP! Logstash restarting after ip2location plugin update

**URL:** <https://discuss.elastic.co/t/help-logstash-restarting-after-ip2location-plugin-update/278957>\
**Category:** Logstash\
**Created:** [July 17, 2021, 5:35am UTC](https://discuss.elastic.co/t/help-logstash-restarting-after-ip2location-plugin-update/278957 "2021-07-17T05:35:46Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![rojin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rojin/32/97697_2.png) [@rojin](https://discuss.elastic.co/u/rojin)\
**Post date:** [July 17, 2021, 5:35am UTC](https://discuss.elastic.co/t/help-logstash-restarting-after-ip2location-plugin-update/278957/1 "2021-07-17T05:35:46Z")

</div>

I had an issue with logstash restarting so I updated ip2location plugin and now it keeps restarting every 15 seconds. The error before was ConcurrentModificationException: null.  
I use logstash v 7.4.2 and the plugin version is 2.1.4

Another issue is that it does not write logs to /var/log/logstash now ☹

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [July 17, 2021, 6:00pm UTC](https://discuss.elastic.co/t/help-logstash-restarting-after-ip2location-plugin-update/278957/2 "2021-07-17T18:00:44Z")

</div>

Run, on the command line, the command that the service manager uses to start logstash and see what it logs.

---

<div class="post-metadata">

**Author:** ![rojin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rojin/32/97697_2.png) [@rojin](https://discuss.elastic.co/u/rojin)\
**Post date:** [July 17, 2021, 6:09pm UTC](https://discuss.elastic.co/t/help-logstash-restarting-after-ip2location-plugin-update/278957/3 "2021-07-17T18:09:56Z")

</div>

I have run it using these 2 commands but got no result and besides, now it does not even write to log file (/usr/share/logstash/logstash-plain.log) anymore:

```auto
/usr/share/logstash/bin/logstash -f /etc/logstash/conf.d 

```

```auto
service logstash restart

```

I have checked directory permissions and also /etc/systemd/system/logstash.service  
It keeps restarting

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [July 17, 2021, 6:21pm UTC](https://discuss.elastic.co/t/help-logstash-restarting-after-ip2location-plugin-update/278957/4 "2021-07-17T18:21:59Z")

</div>

You will need to run it as the user that systemd uses, and you will need to start it using the command shown in /etc/systemd/system/logstash.service. Also, if the EnvironmentFile entries set anything of significance you will need those variables set.

---

<div class="post-metadata">

**Author:** ![rojin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rojin/32/97697_2.png) [@rojin](https://discuss.elastic.co/u/rojin)\
**Post date:** [July 17, 2021, 6:33pm UTC](https://discuss.elastic.co/t/help-logstash-restarting-after-ip2location-plugin-update/278957/5 "2021-07-17T18:33:59Z")

</div>

I have tested it with that user. and I had provided --path.settings as well

---

<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:** [August 14, 2021, 6:34pm UTC](https://discuss.elastic.co/t/help-logstash-restarting-after-ip2location-plugin-update/278957/6 "2021-08-14T18:34:57Z")

</div>

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