# Geoip expired\_database error

**URL:** <https://discuss.elastic.co/t/geoip-expired-database-error/354643>\
**Category:** Logstash\
**Created:** [March 4, 2024, 12:57pm UTC](https://discuss.elastic.co/t/geoip-expired-database-error/354643 "2024-03-04T12:57:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tegerei](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tegerei/32/132992_2.png) [@tegerei](https://discuss.elastic.co/u/tegerei)\
**Post date:** [March 4, 2024, 12:57pm UTC](https://discuss.elastic.co/t/geoip-expired-database-error/354643/1 "2024-03-04T12:57:21Z")

</div>

Hello,  
I get the following error on logstash logs;

```auto
[2024-03-04T13:38:54,437][ERROR][logstash.filters.geoip.downloadmanager] Permission denied - /var/lib/logstash/plugins/filters/geoip/1709555933 {:cause=>nil}
[2024-03-04T13:38:54,592][ERROR][logstash.filters.geoip.downloadmanager] Permission denied - /var/lib/logstash/plugins/filters/geoip/1709555933 {:cause=>nil}

```

The filters show geip\_expired\_database. No database has been defined manually. Could the permission denied be a firewall issue?

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [March 4, 2024, 1:03pm UTC](https://discuss.elastic.co/t/geoip-expired-database-error/354643/2 "2024-03-04T13:03:23Z")

</div>

> [@tegerei](#):
>
> Could the permission denied be a firewall issue?

No, this means that Logstash cannot read/remove/create the specified file because of file permissions.

How are you running Logstash? Are you running logstash as a service with `systemctl`? Did you ran Logstash as the `root` user or with a `sudo` at any point?

---

<div class="post-metadata">

**Author:** ![tegerei](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tegerei/32/132992_2.png) [@tegerei](https://discuss.elastic.co/u/tegerei)\
**Post date:** [March 4, 2024, 1:14pm UTC](https://discuss.elastic.co/t/geoip-expired-database-error/354643/3 "2024-03-04T13:14:16Z")

</div>

> [@tegerei](#):
>
> `/var/lib/logstash/plugins/filters/geoip/`

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/6/2/62ecf0a0879a385c7ab2d658a486895614c26a92.png)  
That is the issue.  
`chown -R logstash: /var/lib/logstash/plugins/filters/`  
Fixed.

```auto
[2024-03-04T14:12:51,305][INFO][logstash.filters.geoip.databasemanager] /var/lib/logstash/plugins/filters/geoip/1662379503 is deleted
[2024-03-04T14:12:51,370][INFO][logstash.filters.geoip.databasemanager][main] By not manually configuring a database path with `database =>`, you accepted and agreed MaxMind EULA. For more details please visit https://www.maxmind.com/en/geolite2/eula
[2024-03-04T14:12:51,372][INFO][logstash.filters.geoip][main] Using geoip database {:path=>"/var/lib/logstash/plugins/filters/geoip/1709557966/GeoLite2-City.mmdb"}

```

---

<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:** [April 1, 2024, 1:14pm UTC](https://discuss.elastic.co/t/geoip-expired-database-error/354643/4 "2024-04-01T13:14:48Z")

</div>

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