# "There are no ingest nodes in this cluster, unable to forward request to an ingest node" errors

**URL:** <https://discuss.elastic.co/t/there-are-no-ingest-nodes-in-this-cluster-unable-to-forward-request-to-an-ingest-node-errors/332701>\
**Category:** APM\
**Tags:** docker, nodejs\
**Created:** [May 6, 2023, 8:48am UTC](https://discuss.elastic.co/t/there-are-no-ingest-nodes-in-this-cluster-unable-to-forward-request-to-an-ingest-node-errors/332701 "2023-05-06T08:48:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![khteh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/khteh/32/147573_2.png) [@khteh](https://discuss.elastic.co/u/khteh)\
**Post date:** [May 6, 2023, 8:48am UTC](https://discuss.elastic.co/t/there-are-no-ingest-nodes-in-this-cluster-unable-to-forward-request-to-an-ingest-node-errors/332701/1 "2023-05-06T08:48:57Z")

</div>

**Kibana version** : 8.7.1

**Elasticsearch version** : 8.7.1

**APM Server version** : 8.7.1

**APM Agent language and version** : Node.JS 19

**Browser version** :

**Original install method (e.g. download page, yum, deb, from source, etc.) and version**:

**Fresh install or upgraded from other version?**

**Is there anything special in your setup?** For example, are you using the Logstash or Kafka outputs? Are you using a load balancer in front of the APM Servers? Have you changed index pattern, generated custom templates, changed agent configuration etc.

**Description of the problem including expected versus actual behavior. Please include screenshots (if relevant)**:

```auto
apiVersion: apm.k8s.elastic.co/v1
kind: ApmServer
metadata:
  name: my-apmserver
  labels:
    app: apmserver
    component: eck
spec:
  version: 8.7.1
  count: 3
  secureSettings:
    - secretName: ny-es-elastic-user
  config:
    output:
      elasticsearch:
        hosts: ["my-es-internal-http.default:9200"]
        username: elastic
        password: "${elastic}"
        protocol: "https"
        ssl.certificate_authorities:
          ["/usr/share/apm-server/config/elasticsearch-ca/tls.crt"]
  podTemplate:
    spec:
      containers:
        - name: apm-server
          volumeMounts:
            - mountPath: /usr/share/apm-server/config/elasticsearch-ca
              name: elasticsearch-ca
              readOnly: true
      volumes:
        - name: elasticsearch-ca
          secret:
            defaultMode: 420
            optional: false
            secretName: elasticsearch-eck-ca # This is the secret that holds the Elasticsearch CA cert

```

```auto
[my-apm-server-985bdf477-hkpfv apm-server] {"log.level":"error","@timestamp":"2023-05-06T08:44:10.367Z","log.origin":{"file.name":"go-docappender@v0.1.0/appender.go","file.line":256},"message":"bulk indexing request failed","service.name":"apm-server","error":{"message":"flush failed: [500 Internal Server Error] {\"error\":{\"root_cause\":[{\"type\":\"illegal_state_exception\",\"reason\":\"There are no ingest nodes in this cluster, unable to forward request to an ingest node.\"}],\"type\":\"illegal_state_exception\",\"reason\":\"There are no ingest nodes in this cluster, unable to forward request to an ingest node.\"},\"status\":500}"},"ecs.version":"1.6.0"} 

```

What should I do?

**Steps to reproduce** :  
1.  
2.  
3.

**Errors in browser console (if relevant)**:

**Provide logs and/or server output (if relevant)**:

---

<div class="post-metadata">

**Author:** ![axw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/axw/32/28197_2.png) [@axw](https://discuss.elastic.co/u/axw)\
**Post date:** [May 8, 2023, 12:55am UTC](https://discuss.elastic.co/t/there-are-no-ingest-nodes-in-this-cluster-unable-to-forward-request-to-an-ingest-node-errors/332701/2 "2023-05-08T00:55:42Z")

</div>

@khteh are you also using ECK to set up Elasticsearch? The error suggests that none of your Elasticsearch nodes have the "ingest" role. See [Node configuration | Elastic Cloud on Kubernetes [2.7] | Elastic](https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-node-configuration.html) for how to set that up.

---

<div class="post-metadata">

**Author:** ![khteh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/khteh/32/147573_2.png) [@khteh](https://discuss.elastic.co/u/khteh)\
**Post date:** [May 9, 2023, 3:02am UTC](https://discuss.elastic.co/t/there-are-no-ingest-nodes-in-this-cluster-unable-to-forward-request-to-an-ingest-node-errors/332701/3 "2023-05-09T03:02:10Z")

</div>

Resolved. Thanks.

---

<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:** [May 29, 2023, 11:02pm UTC](https://discuss.elastic.co/t/there-are-no-ingest-nodes-in-this-cluster-unable-to-forward-request-to-an-ingest-node-errors/332701/4 "2023-05-29T23:02:40Z")

</div>

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