# Not all primary shards of \[.geoip\_databases\] index are active

**URL:** <https://discuss.elastic.co/t/not-all-primary-shards-of-geoip-databases-index-are-active/324401>\
**Category:** Elasticsearch\
**Created:** [February 1, 2023, 8:56am UTC](https://discuss.elastic.co/t/not-all-primary-shards-of-geoip-databases-index-are-active/324401 "2023-02-01T08:56:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![LiuJintao](https://avatars.discourse-cdn.com/v4/letter/l/e495f1/32.png) [@LiuJintao](https://discuss.elastic.co/u/LiuJintao)\
**Post date:** [February 1, 2023, 8:56am UTC](https://discuss.elastic.co/t/not-all-primary-shards-of-geoip-databases-index-are-active/324401/1 "2023-02-01T08:56:24Z")

</div>

When I start elasticsearch cluster with a single node,it throw an error:

```auto
[2023-02-01T15:34:09,249][ERROR][o.e.i.g.GeoIpDownloader] [node1] exception during geoip databases updateorg.elasticsearch.ElasticsearchException: not all primary shards of [.geoip_databases] index are active

```

I think it means an hidden index called .geoip\_databases is not health, then I use \_cat API to check this index,the resuls shows below:

```auto
health status index uuid pri rep docs.count docs.deleted store.size pri.store.size
green open .geoip_databases CFuIkBC2QFSKf4a8aiKmcA 1 0 40 0 38.2mb 38.2mb

```

it means this index status is health,and it only has an primary shard.

so I do not know what is happen? can anyone help me? Thanks very much.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [February 1, 2023, 8:57am UTC](https://discuss.elastic.co/t/not-all-primary-shards-of-geoip-databases-index-are-active/324401/2 "2023-02-01T08:57:48Z")

</div>

Welcome to our community! 😃

Once Elasticsearch has started it should clear that error pretty quickly, as your cat output shows. So I wouldn't worry.

---

<div class="post-metadata">

**Author:** ![LiuJintao](https://avatars.discourse-cdn.com/v4/letter/l/e495f1/32.png) [@LiuJintao](https://discuss.elastic.co/u/LiuJintao)\
**Post date:** [February 1, 2023, 9:17am UTC](https://discuss.elastic.co/t/not-all-primary-shards-of-geoip-databases-index-are-active/324401/3 "2023-02-01T09:17:33Z")

</div>

Thanks for your reply.Indeed, it does not affect the running of the cluster, but this is confusing for new users.

Could you tell me the specific reason of this error and will it be fixing in the future?

Thanks!

---

<div class="post-metadata">

**Author:** ![Keith\_Massey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/keith_massey/32/83666_2.png) [@Keith\_Massey](https://discuss.elastic.co/u/Keith_Massey)\
**Post date:** [February 1, 2023, 2:39pm UTC](https://discuss.elastic.co/t/not-all-primary-shards-of-geoip-databases-index-are-active/324401/4 "2023-02-01T14:39:06Z")

</div>

It looks like the exception you are hitting was added intentionally in [https://github.com/elastic/elasticsearch/pull/86842](https://github.com/elastic/elasticsearch/pull/86842) to protect your cluster from potentially worse problems. Is it possible that your node was briefly out of space?

Alternatively, there are several known race conditions in the geoip downloader. See [GeoIpDownloader race conditions when starting / stopping · Issue #92888 · elastic/elasticsearch · GitHub](https://github.com/elastic/elasticsearch/issues/92888). For the most part they are harmless and only cause problems in tests or briefly at startup (like yours). I have not seen yours before but I would not be surprised if it is related to one of the things in that ticket. I can't say when those will be fixed.

---

<div class="post-metadata">

**Author:** ![LiuJintao](https://avatars.discourse-cdn.com/v4/letter/l/e495f1/32.png) [@LiuJintao](https://discuss.elastic.co/u/LiuJintao)\
**Post date:** [February 3, 2023, 8:51am UTC](https://discuss.elastic.co/t/not-all-primary-shards-of-geoip-databases-index-are-active/324401/5 "2023-02-03T08:51:36Z")

</div>

thanks.My server space is enough and cpu is idle,maybe I meet the race conditions.

---

<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:** [March 3, 2023, 8:52am UTC](https://discuss.elastic.co/t/not-all-primary-shards-of-geoip-databases-index-are-active/324401/6 "2023-03-03T08:52:32Z")

</div>

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