# Help with error

**URL:** <https://discuss.elastic.co/t/help-with-error/182614>\
**Category:** Elasticsearch\
**Created:** [May 24, 2019, 10:19am UTC](https://discuss.elastic.co/t/help-with-error/182614 "2019-05-24T10:19:55Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Junx](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/junx/32/46718_2.png) [@Junx](https://discuss.elastic.co/u/Junx)\
**Post date:** [May 24, 2019, 10:19am UTC](https://discuss.elastic.co/t/help-with-error/182614/1 "2019-05-24T10:19:55Z")

</div>

![](https://i.imgur.com/wcqt8cW.png)

What does this mean and how do I fix it?

---

<div class="post-metadata">

**Author:** ![Junx](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/junx/32/46718_2.png) [@Junx](https://discuss.elastic.co/u/Junx)\
**Post date:** [May 24, 2019, 10:21am UTC](https://discuss.elastic.co/t/help-with-error/182614/2 "2019-05-24T10:21:29Z")

</div>

here is my code I am using c# NEST

```
client.CreateIndex(messageTime);
            var values = new { ChatType = chatType, Player = userName, Message = message, Time = DateTime.Now };
            var indexResponse = client.Index(values, descriptor => descriptor.Index(messageTime).Type("ChatLog"));
            Console.WriteLine(indexResponse.DebugInformation.ToString());
```

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 24, 2019, 10:32am UTC](https://discuss.elastic.co/t/help-with-error/182614/3 "2019-05-24T10:32:22Z")

</div>

Please don't post images of text as they are hardly readable and not searchable.

Instead paste the text and format it with `</>` icon. Check the preview window.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 24, 2019, 10:32am UTC](https://discuss.elastic.co/t/help-with-error/182614/4 "2019-05-24T10:32:49Z")

</div>

Sounds like you have too many shards on your nodes.

---

<div class="post-metadata">

**Author:** ![Junx](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/junx/32/46718_2.png) [@Junx](https://discuss.elastic.co/u/Junx)\
**Post date:** [May 24, 2019, 11:11am UTC](https://discuss.elastic.co/t/help-with-error/182614/5 "2019-05-24T11:11:58Z")

</div>

what are shards and nodes? I have 1 elastic search server that im trying to run chatlog on

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [May 24, 2019, 11:13am UTC](https://discuss.elastic.co/t/help-with-error/182614/6 "2019-05-24T11:13:42Z")

</div>

What is the full output of the [cluster health API](https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-health.html)?

---

<div class="post-metadata">

**Author:** ![Junx](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/junx/32/46718_2.png) [@Junx](https://discuss.elastic.co/u/Junx)\
**Post date:** [May 24, 2019, 11:15am UTC](https://discuss.elastic.co/t/help-with-error/182614/7 "2019-05-24T11:15:52Z")

</div>

{  
"cluster\_name": "docker-cluster",  
"status": "yellow",  
"timed\_out": false,  
"number\_of\_nodes": 1,  
"number\_of\_data\_nodes": 1,  
"active\_primary\_shards": 502,  
"active\_shards": 502,  
"relocating\_shards": 0,  
"initializing\_shards": 0,  
"unassigned\_shards": 498,  
"delayed\_unassigned\_shards": 0,  
"number\_of\_pending\_tasks": 0,  
"number\_of\_in\_flight\_fetch": 0,  
"task\_max\_waiting\_in\_queue\_millis": 0,  
"active\_shards\_percent\_as\_number": 50.2  
}

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [May 24, 2019, 11:26am UTC](https://discuss.elastic.co/t/help-with-error/182614/8 "2019-05-24T11:26:56Z")

</div>

You have over 500 shards on the node which is quite s lot. It does look like you have a replica enabled and that the calculation includes this. If you change your index settings to disable replicas, which is fine as you only have one node, the error should go away. I would however recommend looking into why you have so many shards and rectify this.

---

<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:** [June 21, 2019, 11:26am UTC](https://discuss.elastic.co/t/help-with-error/182614/9 "2019-06-21T11:26:57Z")

</div>

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