# Self host cluster no geoip data

**URL:** <https://discuss.elastic.co/t/self-host-cluster-no-geoip-data/360193>\
**Category:** Elasticsearch\
**Created:** [May 24, 2024, 4:41pm UTC](https://discuss.elastic.co/t/self-host-cluster-no-geoip-data/360193 "2024-05-24T16:41:38Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Honestabe](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/honestabe/32/122763_2.png) [@Honestabe](https://discuss.elastic.co/u/Honestabe)\
**Post date:** [May 24, 2024, 4:41pm UTC](https://discuss.elastic.co/t/self-host-cluster-no-geoip-data/360193/1 "2024-05-24T16:41:38Z")

</div>

I haven been trying to get geoip data but logs show

```auto
attempt to download database [GeoLite2-Country.mmdb] failed

```

I suspect it is a authentication issue and that I need to add them to the domain list.

![image](https://us1.discourse-cdn.com/elastic/original/3X/8/b/8b178b3a20020e8ab76e97a2d673c30891242b5f.png)

How Is this accomplished and is there a way to use Dev Tools Counsel in Kibana to not have to restart the cluster?

---

<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:** [May 24, 2024, 4:53pm UTC](https://discuss.elastic.co/t/self-host-cluster-no-geoip-data/360193/2 "2024-05-24T16:53:58Z")

</div>

> [@Honestabe](#):
>
> I suspect it is a authentication issue and that I need to add them to the domain list.

No, this means that your server is not able to download the geoip information from the internet.

Your server needs to be able to access the specified domains, but this configuration is done outside elasticsearch, it depends on your infrastructure, if you have a proxy or not etc.

---

<div class="post-metadata">

**Author:** ![Honestabe](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/honestabe/32/122763_2.png) [@Honestabe](https://discuss.elastic.co/u/Honestabe)\
**Post date:** [May 24, 2024, 5:01pm UTC](https://discuss.elastic.co/t/self-host-cluster-no-geoip-data/360193/3 "2024-05-24T17:01:17Z")

</div>

Would I need to do this manually? And what would I need to configure? we do not have a proxy

---

<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:** [May 24, 2024, 5:18pm UTC](https://discuss.elastic.co/t/self-host-cluster-no-geoip-data/360193/4 "2024-05-24T17:18:41Z")

</div>

Can you share the full log error ?

The line you shared means that it could not download the database with the geoip information, this could mean that your server is not able to access the endpoint to download it.

You need to check if your server is able to access the endpoint to download it, if you do not have a proxy you need to check if you have any firewall blocking outgoing connections.

This is related to your infrastructure.

---

<div class="post-metadata">

**Author:** ![Honestabe](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/honestabe/32/122763_2.png) [@Honestabe](https://discuss.elastic.co/u/Honestabe)\
**Post date:** [May 24, 2024, 10:49pm UTC](https://discuss.elastic.co/t/self-host-cluster-no-geoip-data/360193/5 "2024-05-24T22:49:47Z")

</div>

```auto
15:00:16.503
elasticsearch.server
[elasticsearch.server][TRACE] Retrieving database GeoLite2-City.mmdb
15:00:16.504
elasticsearch.server
[elasticsearch.server][ERROR] attempt to download database [GeoLite2-Country.mmdb] failed
15:00:16.504
elasticsearch.server
[elasticsearch.server][TRACE] Retrieving database GeoLite2-Country.mmdb
15:00:16.505
elasticsearch.server
[elasticsearch.server][ERROR] attempt to download database [GeoLite2-ASN.mmdb] failed
15:00:16.505
elasticsearch.server
[elasticsearch.server][TRACE] Retrieving database GeoLite2-ASN.mmdb
15:10:16.284
elasticsearch.server
[elasticsearch.server][TRACE] Retrieving database GeoLite2-City.mmdb

```

This is the logs

i am able to ping both

---

<div class="post-metadata">

**Author:** ![Honestabe](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/honestabe/32/122763_2.png) [@Honestabe](https://discuss.elastic.co/u/Honestabe)\
**Post date:** [May 24, 2024, 11:25pm UTC](https://discuss.elastic.co/t/self-host-cluster-no-geoip-data/360193/6 "2024-05-24T23:25:08Z")

</div>

This is the output for the `GET _ingest/geoip/stats`

```auto
{
  "stats": {
    "successful_downloads": 0,
    "failed_downloads": 0,
    "total_download_time": 0,
    "databases_count": 0,
    "skipped_updates": 0,
    "expired_databases": 0
  },
  "nodes": {}
}

```
