# Help needed i m having the issue failed to perform any bulk index operations: 500 Internal Server Error

**URL:** <https://discuss.elastic.co/t/help-needed-i-m-having-the-issue-failed-to-perform-any-bulk-index-operations-500-internal-server-error/273308>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [May 18, 2021, 2:58pm UTC](https://discuss.elastic.co/t/help-needed-i-m-having-the-issue-failed-to-perform-any-bulk-index-operations-500-internal-server-error/273308 "2021-05-18T14:58:26Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![khanio99](https://avatars.discourse-cdn.com/v4/letter/k/839c29/32.png) [@khanio99](https://discuss.elastic.co/u/khanio99)\
**Post date:** [May 18, 2021, 2:58pm UTC](https://discuss.elastic.co/t/help-needed-i-m-having-the-issue-failed-to-perform-any-bulk-index-operations-500-internal-server-error/273308/1 "2021-05-18T14:58:26Z")

</div>

```auto
May 18 10:50:36 debian filebeat[5663]: 2021-05-18T10:50:36.145-0400 INFO [license] licenser/es_callback.go:51 Elasticsearch license: Basic
May 18 10:50:36 debian filebeat[5663]: 2021-05-18T10:50:36.145-0400 INFO [index-management] idxmgmt/std.go:261 Auto ILM enable success.
May 18 10:50:36 debian filebeat[5663]: 2021-05-18T10:50:36.146-0400 INFO [index-management.ilm] ilm/std.go:139 do not generate ilm policy: exists=true, overwrite=false
May 18 10:50:36 debian filebeat[5663]: 2021-05-18T10:50:36.146-0400 INFO [index-management] idxmgmt/std.go:274 ILM policy successfully loaded.
May 18 10:50:36 debian filebeat[5663]: 2021-05-18T10:50:36.146-0400 INFO [index-management] idxmgmt/std.go:407 Set setup.template.name to '{filebeat-7.12.1 {now/d}-000001}' as ILM is enabled.
May 18 10:50:36 debian filebeat[5663]: 2021-05-18T10:50:36.146-0400 INFO [index-management] idxmgmt/std.go:412 Set setup.template.pattern to 'filebeat-7.12.1-*' as ILM is enabled.
May 18 10:50:36 debian filebeat[5663]: 2021-05-18T10:50:36.146-0400 INFO [index-management] idxmgmt/std.go:446 Set settings.index.lifecycle.rollover_alias in template to {filebeat-7.12.1 {now/d}-000001} as ILM is enabled.
May 18 10:50:36 debian filebeat[5663]: 2021-05-18T10:50:36.146-0400 INFO [index-management] idxmgmt/std.go:450 Set settings.index.lifecycle.name in template to {filebeat {"policy":{"phases":{"hot":{"actions":{"rollover":{"max_age":"30d","max_s
May 18 10:50:36 debian filebeat[5663]: 2021-05-18T10:50:36.147-0400 INFO template/load.go:97 Template filebeat-7.12.1 already exists and will not be overwritten.
May 18 10:50:36 debian filebeat[5663]: 2021-05-18T10:50:36.147-0400 INFO [index-management] idxmgmt/std.go:298 Loaded index template.
May 18 10:50:36 debian filebeat[5663]: 2021-05-18T10:50:36.148-0400 INFO [index-management] idxmgmt/std.go:309 Write alias successfully generated.
May 18 10:50:36 debian filebeat[5663]: 2021-05-18T10:50:36.158-0400 INFO [publisher_pipeline_output] pipeline/output.go:151 Connection to backoff(elasticsearch(http://192.168.0.3:9200)) established
May 18 10:50:36 debian filebeat[5663]: 2021-05-18T10:50:36.166-0400 ERROR [elasticsearch] elasticsearch/client.go:224 failed to perform any bulk index operations: 500 Internal Server Error: {"error":{"root_cause":[{"type":"illegal_state_except
May 18 10:50:36 debian filebeat[5663]: 2021-05-18T10:50:36.167-0400 INFO [publisher] pipeline/retry.go:219 retryer: send unwait signal to consumer
May 18 10:50:36 debian filebeat[5663]: 2021-05-18T10:50:36.168-0400 INFO [publisher] pipeline/retry.go:223 done
May 18 10:50:37 debian filebeat[5663]: 2021-05-18T10:50:37.800-0400 ERROR [publisher_pipeline_output] pipeline/output.go:180 failed to publish events: 500 Internal Server Error: {"error":{"root_cause":[{"type":"illegal_state_exception","reason
May 18 10:50:37 debian filebeat[5663]: 2021-05-18T10:50:37.800-0400 INFO [publisher_pipeline_output] pipeline/output.go:143 Connecting to backoff(elasticsearch(http://192.168.0.3:9200))
May 18 10:50:37 debian filebeat[5663]: 2021-05-18T10:50:37.800-0400 INFO [publisher] pipeline/retry.go:219 retryer: send unwait signal to consumer
May 18 10:50:37 debian filebeat[5663]: 2021-05-18T10:50:37.800-0400 INFO [publisher] pipeline/retry.go:223 done
May 18 10:50:37 debian filebeat[5663]: 2021-05-18T10:50:37.801-0400 INFO [esclientleg] eslegclient/connection.go:314 Attempting to connect to Elasticsearch version 7.12.1
May 18 10:50:37 debian filebeat[5663]: 2021-05-18T10:50:37.816-0400 INFO [license] licenser/es_callback.go:51 Elasticsearch license: Basic
May 18 10:50:37 debian filebeat[5663]: 2021-05-18T10:50:37.818-0400 INFO [index-management] idxmgmt/std.go:261 Auto ILM enable success.
May 18 10:50:37 debian filebeat[5663]: 2021-05-18T10:50:37.819-0400 INFO [index-management.ilm] ilm/std.go:139 do not generate ilm policy: exists=true, overwrite=false
May 18 10:50:37 debian filebeat[5663]: 2021-05-18T10:50:37.819-0400 INFO [index-management] idxmgmt/std.go:274 ILM policy successfully loaded.
May 18 10:50:37 debian filebeat[5663]: 2021-05-18T10:50:37.819-0400 INFO [index-management] idxmgmt/std.go:407 Set setup.template.name to '{filebeat-7.12.1 {now/d}-000001}' as ILM is enabled.
May 18 10:50:37 debian filebeat[5663]: 2021-05-18T10:50:37.819-0400 INFO [index-management] idxmgmt/std.go:412 Set setup.template.pattern to 'filebeat-7.12.1-*' as ILM is enabled.
May 18 10:50:37 debian filebeat[5663]: 2021-05-18T10:50:37.819-0400 INFO [index-management] idxmgmt/std.go:446 Set settings.index.lifecycle.rollover_alias in template to {filebeat-7.12.1 {now/d}-000001} as ILM is enabled.
May 18 10:50:37 debian filebeat[5663]: 2021-05-18T10:50:37.819-0400 INFO [index-management] idxmgmt/std.go:450 Set settings.index.lifecycle.name in template to {filebeat {"policy":{"phases":{"hot":{"actions":{"rollover":{"max_age":"30d","max_s
May 18 10:50:37 debian filebeat[5663]: 2021-05-18T10:50:37.819-0400 INFO template/load.go:97 Template filebeat-7.12.1 already exists and will not be overwritten.
May 18 10:50:37 debian filebeat[5663]: 2021-05-18T10:50:37.819-0400 INFO [index-management] idxmgmt/std.go:298 Loaded index template.
May 18 10:50:37 debian filebeat[5663]: 2021-05-18T10:50:37.820-0400 INFO [index-management] idxmgmt/std.go:309 Write alias successfully generated.
May 18 10:50:37 debian filebeat[5663]: 2021-05-18T10:50:37.820-0400 INFO [publisher_pipeline_output] pipeline/output.go:151 Connection to backoff(elasticsearch(http://192.168.0.3:9200)) established
May 18 10:50:37 debian filebeat[5663]: 2021-05-18T10:50:37.823-0400 ERROR [elasticsearch] elasticsearch/client.go:224 failed to perform any bulk index operations: 500 Internal Server Error: {"error":{"root_cause":[{"type":"illegal_state_except
May 18 10:50:37 debian filebeat[5663]: 2021-05-18T10:50:37.823-0400 INFO [publisher] pipeline/retry.go:219 retryer: send unwait signal to consumer
May 18 10:50:37 debian filebeat[5663]: 2021-05-18T10:50:37.823-0400 INFO [publisher] pipeline/retry.go:223 done
May 18 10:50:39 debian filebeat[5663]: 2021-05-18T10:50:39.482-0400 ERROR [publisher_pipeline_output] pipeline/output.go:180 failed to publish events: 500 Internal Server Error: {"error":{"root_cause":[{"type":"illegal_state_exception","reason
May 18 10:50:39 debian filebeat[5663]: 2021-05-18T10:50:39.482-0400 INFO [publisher_pipeline_output] pipeline/output.go:143 Connecting to backoff(elasticsearch(http://192.168.0.3:9200))
May 18 10:50:39 debian filebeat[5663]: 2021-05-18T10:50:39.482-0400 INFO [publisher] pipeline/retry.go:219 retryer: send unwait signal to consumer
May 18 10:50:39 debian filebeat[5663]: 2021-05-18T10:50:39.482-0400 INFO [publisher] pipeline/retry.go:223 done
May 18 10:50:39 debian filebeat[5663]: 2021-05-18T10:50:39.483-0400 INFO [esclientleg] eslegclient/connection.go:314 Attempting to connect to Elasticsearch version 7.12.1
May 18 10:50:39 debian filebeat[5663]: 2021-05-18T10:50:39.498-0400 INFO [license] licenser/es_callback.go:51 Elasticsearch license: Basic
May 18 10:50:39 debian filebeat[5663]: 2021-05-18T10:50:39.498-0400 INFO [index-management] idxmgmt/std.go:261 Auto ILM enable success.
May 18 10:50:39 debian filebeat[5663]: 2021-05-18T10:50:39.499-0400 INFO [index-management.ilm] ilm/std.go:139 do not generate ilm policy: exists=true, overwrite=false
May 18 10:50:39 debian filebeat[5663]: 2021-05-18T10:50:39.499-0400 INFO [index-management] idxmgmt/std.go:274 ILM policy successfully loaded.
May 18 10:50:39 debian filebeat[5663]: 2021-05-18T10:50:39.499-0400 INFO [index-management] idxmgmt/std.go:407 Set setup.template.name to '{filebeat-7.12.1 {now/d}-000001}' as ILM is enabled.
May 18 10:50:39 debian filebeat[5663]: 2021-05-18T10:50:39.499-0400 INFO [index-management] idxmgmt/std.go:412 Set setup.template.pattern to 'filebeat-7.12.1-*' as ILM is enabled.
May 18 10:50:39 debian filebeat[5663]: 2021-05-18T10:50:39.499-0400 INFO [index-management] idxmgmt/std.go:446 Set settings.index.lifecycle.rollover_alias in template to {filebeat-7.12.1 {now/d}-000001} as ILM is enabled.
May 18 10:50:39 debian filebeat[5663]: 2021-05-18T10:50:39.499-0400 INFO [index-management] idxmgmt/std.go:450 Set settings.index.lifecycle.name in template to {filebeat {"policy":{"phases":{"hot":{"actions":{"rollover":{"max_age":"30d","max_s
May 18 10:50:39 debian filebeat[5663]: 2021-05-18T10:50:39.499-0400 INFO template/load.go:97 Template filebeat-7.12.1 already exists and will not be overwritten.
May 18 10:50:39 debian filebeat[5663]: 2021-05-18T10:50:39.499-0400 INFO [index-management] idxmgmt/std.go:298 Loaded index template.
May 18 10:50:39 debian filebeat[5663]: 2021-05-18T10:50:39.500-0400 INFO [index-management] idxmgmt/std.go:309 Write alias successfully generated.
May 18 10:50:39 debian filebeat[5663]: 2021-05-18T10:50:39.503-0400 INFO [publisher_pipeline_output] pipeline/output.go:151 Connection to backoff(elasticsearch(http://192.168.0.3:9200)) established
May 18 10:50:39 debian filebeat[5663]: 2021-05-18T10:50:39.517-0400 ERROR [elasticsearch] elasticsearch/client.go:224 failed to perform any bulk index operations: 500 Internal Server Error: {"error":{"root_cause":[{"type":"illegal_state_except
May 18 10:50:39 debian filebeat[5663]: 2021-05-18T10:50:39.517-0400 INFO [publisher] pipeline/retry.go:219 retryer: send unwait signal to consumer
May 18 10:50:39 debian filebeat[5663]: 2021-05-18T10:50:39.517-0400 INFO [publisher] pipeline/retry.go:223 done

```

---

<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:** [May 19, 2021, 1:09am UTC](https://discuss.elastic.co/t/help-needed-i-m-having-the-issue-failed-to-perform-any-bulk-index-operations-500-internal-server-error/273308/2 "2021-05-19T01:09:59Z")

</div>

Welcome to our community! 😃  
Please don't just post your log with no other information, it's a little rude.

What version of the Elastic Stack are you on?  
What is the current state of Elasticsearch?

---

<div class="post-metadata">

**Author:** ![khanio99](https://avatars.discourse-cdn.com/v4/letter/k/839c29/32.png) [@khanio99](https://discuss.elastic.co/u/khanio99)\
**Post date:** [May 19, 2021, 4:17am UTC](https://discuss.elastic.co/t/help-needed-i-m-having-the-issue-failed-to-perform-any-bulk-index-operations-500-internal-server-error/273308/3 "2021-05-19T04:17:02Z")

</div>

Hi mark,  
This is my first time writing to any forums,so pardon my ettiquette,  
So i am using bitnami elastic stack ,and the version is 7.12.1-1  
My elastic search is setupusing bitnami vm and my filebeats is installed on another vm with apache installed on it ,and i am trying to forward my logs from apache to kibana ,i can succesfully see kibana i can also see a index filebeat-\* created but there is nothing in the index ,and when i checked the journalctl -u filebeat.service i got these logs

---

<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:** [May 20, 2021, 1:37am UTC](https://discuss.elastic.co/t/help-needed-i-m-having-the-issue-failed-to-perform-any-bulk-index-operations-500-internal-server-error/273308/4 "2021-05-20T01:37:22Z")

</div>

Ok, Elasticsearch doesn't look healthy, so you need to check the logs for it and make sure everything is ok.

If you can post them, we can help with that.

---

<div class="post-metadata">

**Author:** ![khanio99](https://avatars.discourse-cdn.com/v4/letter/k/839c29/32.png) [@khanio99](https://discuss.elastic.co/u/khanio99)\
**Post date:** [May 20, 2021, 12:28pm UTC](https://discuss.elastic.co/t/help-needed-i-m-having-the-issue-failed-to-perform-any-bulk-index-operations-500-internal-server-error/273308/5 "2021-05-20T12:28:28Z")

</div>

> [@warkolm](#):
>
> , Elasticsearch doesn't look healthy

this is the current health  
curl 192.168.0.3:9200/\_cat/health  
1621546769 21:39:29 bnCluster yellow 1 1 9 9 0 0 1 0 - 90.0%

and result of GET /\_cluster/allocation/explain  
{  
"index" : "filebeat-7.12.1-2021.05.16-000001",  
"shard" : 0,  
"primary" : false,  
"current\_state" : "unassigned",  
"unassigned\_info" : {  
"reason" : "CLUSTER\_RECOVERED",  
"at" : "2021-05-20T21:28:51.972Z",  
"last\_allocation\_status" : "no\_attempt"  
},  
"can\_allocate" : "no",  
"allocate\_explanation" : "cannot allocate because allocation is not permitted to any of the nodes",  
"node\_allocation\_decisions" : [  
{  
"node\_id" : "4uhwxTw2QP-6gNanEk5-3g",  
"node\_name" : "debian",  
"transport\_address" : "127.0.0.1:9300",  
"node\_attributes" : {  
"xpack.installed" : "true",  
"transform.node" : "true"  
},  
"node\_decision" : "no",  
"deciders" : [  
{  
"decider" : "same\_shard",  
"decision" : "NO",  
"explanation" : "a copy of this shard is already allocated to this node [[filebeat-7.12.1-2021.05.16-000001][0], node[4uhwxTw2QP-6gNanEk5-3g], [P], s[STARTED], a[id=iyK3JBbyQmq6MhrkJtCQ0g]]"  
}  
]  
}  
]  
}  
and the only thing unique in logs i see is Illegal state exception: there are no ingest nodes in this cluster unable to forward request to an ingest node

---

<div class="post-metadata">

**Author:** ![khanio99](https://avatars.discourse-cdn.com/v4/letter/k/839c29/32.png) [@khanio99](https://discuss.elastic.co/u/khanio99)\
**Post date:** [May 21, 2021, 3:33pm UTC](https://discuss.elastic.co/t/help-needed-i-m-having-the-issue-failed-to-perform-any-bulk-index-operations-500-internal-server-error/273308/6 "2021-05-21T15:33:58Z")

</div>

ok guys stopped and restarted services in order of  
elasticsearch  
kibana  
filebeat  
logstash fixed it  
but now i have my index when i want to visualize it ,  
yellow open filebeat-7.12.1-2021.05.16-000001 AeD0qkH9TmSJRWhkrnNIbg 1 1 0 0 208b 208b  
have just started there is not much data in there but i want to be sure its working because,

 ![Screenshot_20210521_113247](https://us1.discourse-cdn.com/elastic/original/3X/f/7/f70b165ba0e89db743cf0df27e4bc07d143830f5.png)  
it says no data recieved

---

<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 18, 2021, 5:34pm UTC](https://discuss.elastic.co/t/help-needed-i-m-having-the-issue-failed-to-perform-any-bulk-index-operations-500-internal-server-error/273308/7 "2021-06-18T17:34:12Z")

</div>

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