Skip to content
This repository has been archived by the owner on Aug 20, 2021. It is now read-only.

Elastic search error when running zeebe #114

Closed
michelefa1988 opened this issue Jun 16, 2021 · 3 comments · Fixed by #117
Closed

Elastic search error when running zeebe #114

michelefa1988 opened this issue Jun 16, 2021 · 3 comments · Fixed by #117
Labels
bug Something isn't working

Comments

@michelefa1988
Copy link

When installing the helm chart with in build elastic search (using default settings), I get the following error

Does anyone know what could be causing this? Such an error is thrown by botheebe-operate and zeebe-cluster-helm, running docker image 1.0.0

at io.camunda.zeebe.util.sched.ActorThread.run(ActorThread.java:191) [zeebe-util-1.0.0.jar:1.0.0] Caused by: org.elasticsearch.client.ResponseException: method [PUT], host [http://elasticsearch-master:9200], URI [/_component_template/zeebe-record], status line [HTTP/1.1 405 Method Not Allowed] {"error":"Incorrect HTTP method for uri [/_component_template/zeebe-record] and method [PUT], allowed: [POST]","status":405} at org.elasticsearch.client.RestClient.convertResponse(RestClient.java:326) ~[elasticsearch-rest-client-7.12.1.jar:7.12.1] at org.elasticsearch.client.RestClient.performRequest(RestClient.java:296) ~[elasticsearch-rest-client-7.12.1.jar:7.12.1] at org.elasticsearch.client.RestClient.performRequest(RestClient.java:270) ~[elasticsearch-rest-client-7.12.1.jar:7.12.1] at io.camunda.zeebe.exporter.ElasticsearchClient.putComponentTemplate(ElasticsearchClient.java:258) ~[zeebe-elasticsearch-exporter-1.0.0.jar:1.0.0] ... 14 more 2021-06-16 09:43:52.630 [Broker-0-Exporter-2] [Broker-0-zb-fs-workers-0] WARN io.camunda.zeebe.broker.exporter.elasticsearch - Error on exporting record with key 4503599627370497 io.camunda.zeebe.exporter.ElasticsearchExporterException: Failed to put component template at io.camunda.zeebe.exporter.ElasticsearchClient.putComponentTemplate(ElasticsearchClient.java:263) ~[zeebe-elasticsearch-exporter-1.0.0.jar:1.0.0] at io.camunda.zeebe.exporter.ElasticsearchClient.putComponentTemplate(ElasticsearchClient.java:217) ~[zeebe-elasticsearch-exporter-1.0.0.jar:1.0.0] at io.camunda.zeebe.exporter.ElasticsearchExporter.createComponentTemplate(ElasticsearchExporter.java:183) ~[zeebe-elasticsearch-exporter-1.0.0.jar:1.0.0] at io.camunda.zeebe.exporter.ElasticsearchExporter.createIndexTemplates(ElasticsearchExporter.java:133) ~[zeebe-elasticsearch-exporter-1.0.0.jar:1.0.0] at io.camunda.zeebe.exporter.ElasticsearchExporter.export(ElasticsearchExporter.java:80) ~[zeebe-elasticsearch-exporter-1.0.0.jar:1.0.0] at io.camunda.zeebe.broker.exporter.stream.ExporterContainer.export(ExporterContainer.java:151) ~[zeebe-broker-1.0.0.jar:1.0.0] at io.camunda.zeebe.broker.exporter.stream.ExporterContainer.exportRecord(ExporterContainer.java:138) ~[zeebe-broker-1.0.0.jar:1.0.0] at io.camunda.zeebe.broker.exporter.stream.ExporterDirector$RecordExporter.export(ExporterDirector.java:425) ~[zeebe-broker-1.0.0.jar:1.0.0] at io.camunda.zeebe.util.retry.BackOffRetryStrategy.run(BackOffRetryStrategy.java:51) ~[zeebe-util-1.0.0.jar:1.0.0] at io.camunda.zeebe.util.sched.ActorJob.invoke(ActorJob.java:76) [zeebe-util-1.0.0.jar:1.0.0] at io.camunda.zeebe.util.sched.ActorJob.execute(ActorJob.java:39) [zeebe-util-1.0.0.jar:1.0.0] at io.camunda.zeebe.util.sched.ActorTask.execute(ActorTask.java:122) [zeebe-util-1.0.0.jar:1.0.0] at io.camunda.zeebe.util.sched.ActorThread.executeCurrentTask(ActorThread.java:94) [zeebe-util-1.0.0.jar:1.0.0] at io.camunda.zeebe.util.sched.ActorThread.doWork(ActorThread.java:78) [zeebe-util-1.0.0.jar:1.0.0] at io.camunda.zeebe.util.sched.ActorThread.run(ActorThread.java:191) [zeebe-util-1.0.0.jar:1.0.0] Caused by: org.elasticsearch.client.ResponseException: method [PUT], host [http://elasticsearch-master:9200], URI [/_component_template/zeebe-record], status line [HTTP/1.1 405 Method Not Allowed] {"error":"Incorrect HTTP method for uri [/_component_template/zeebe-record] and method [PUT], allowed: [POST]","status":405} at org.elasticsearch.client.RestClient.convertResponse(RestClient.java:326) ~[elasticsearch-rest-client-7.12.1.jar:7.12.1] at org.elasticsearch.client.RestClient.performRequest(RestClient.java:296) ~[elasticsearch-rest-client-7.12.1.jar:7.12.1] at org.elasticsearch.client.RestClient.performRequest(RestClient.java:270) ~[elasticsearch-rest-client-7.12.1.jar:7.12.1] at io.camunda.zeebe.exporter.ElasticsearchClient.putComponentTemplate(ElasticsearchClient.java:258) ~[zeebe-elasticsearch-exporter-1.0.0.jar:1.0.0] ... 14 more 2021-06-16 09:44:02.635 [Broker-0-Exporter-2] [Broker-0-zb-fs-workers-0] WARN io.camunda.zeebe.broker.exporter.elasticsearch - Error on exporting record with key 4503599627370497 io.camunda.zeebe.exporter.ElasticsearchExporterException: Failed to put component template at io.camunda.zeebe.exporter.ElasticsearchClient.putComponentTemplate(ElasticsearchClient.java:263) ~[zeebe-elasticsearch-exporter-1.0.0.jar:1.0.0] at io.camunda.zeebe.exporter.ElasticsearchClient.putComponentTemplate(ElasticsearchClient.java:217) ~[zeebe-elasticsearch-exporter-1.0.0.jar:1.0.0] at io.camunda.zeebe.exporter.ElasticsearchExporter.createComponentTemplate(ElasticsearchExporter.java:183) ~[zeebe-elasticsearch-exporter-1.0.0.jar:1.0.0] at io.camunda.zeebe.exporter.ElasticsearchExporter.createIndexTemplates(ElasticsearchExporter.java:133) ~[zeebe-elasticsearch-exporter-1.0.0.jar:1.0.0] at io.camunda.zeebe.exporter.ElasticsearchExporter.export(ElasticsearchExporter.java:80) ~[zeebe-elasticsearch-exporter-1.0.0.jar:1.0.0] at io.camunda.zeebe.broker.exporter.stream.ExporterContainer.export(ExporterContainer.java:151) ~[zeebe-broker-1.0.0.jar:1.0.0] at io.camunda.zeebe.broker.exporter.stream.ExporterContainer.exportRecord(ExporterContainer.java:138) ~[zeebe-broker-1.0.0.jar:1.0.0] at io.camunda.zeebe.broker.exporter.stream.ExporterDirector$RecordExporter.export(ExporterDirector.java:425) ~[zeebe-broker-1.0.0.jar:1.0.0] at io.camunda.zeebe.util.retry.BackOffRetryStrategy.run(BackOffRetryStrategy.java:51) ~[zeebe-util-1.0.0.jar:1.0.0] at io.camunda.zeebe.util.sched.ActorJob.invoke(ActorJob.java:76) [zeebe-util-1.0.0.jar:1.0.0] at io.camunda.zeebe.util.sched.ActorJob.execute(ActorJob.java:39) [zeebe-util-1.0.0.jar:1.0.0] at io.camunda.zeebe.util.sched.ActorTask.execute(ActorTask.java:122) [zeebe-util-1.0.0.jar:1.0.0] at io.camunda.zeebe.util.sched.ActorThread.executeCurrentTask(ActorThread.java:94) [zeebe-util-1.0.0.jar:1.0.0] at io.camunda.zeebe.util.sched.ActorThread.doWork(ActorThread.java:78) [zeebe-util-1.0.0.jar:1.0.0] at io.camunda.zeebe.util.sched.ActorThread.run(ActorThread.java:191) [zeebe-util-1.0.0.jar:1.0.0] Caused by: org.elasticsearch.client.ResponseException: method [PUT], host [http://elasticsearch-master:9200], URI [/_component_template/zeebe-record], status line [HTTP/1.1 405 Method Not Allowed] {"error":"Incorrect HTTP method for uri [/_component_template/zeebe-record] and method [PUT], allowed: [POST]","status":405} at org.elasticsearch.client.RestClient.convertResponse(RestClient.java:326) ~[elasticsearch-rest-client-7.12.1.jar:7.12.1] at org.elasticsearch.client.RestClient.performRequest(RestClient.java:296) ~[elasticsearch-rest-client-7.12.1.jar:7.12.1] at org.elasticsearch.client.RestClient.performRequest(RestClient.java:270) ~[elasticsearch-rest-client-7.12.1.jar:7.12.1] at io.camunda.zeebe.exporter.ElasticsearchClient.putComponentTemplate(ElasticsearchClient.java:258) ~[zeebe-elasticsearch-exporter-1.0.0.jar:1.0.0]

@michelefa1988
Copy link
Author

Any updates on this?

@nitram509
Copy link

I'm experiencing the same issue, using Docker and Minikube locally.
This relates to issue #115

I was able to fix this, by using newer version of Elasticsearch 7.10.1
I did change this line in my values.yaml file.

elasticsearch:
  imageTag: 7.10.1

Attention: version 7.5.1 did fail as well with the above error.

@michelefa1988
Copy link
Author

michelefa1988 commented Jul 21, 2021

I can confirm that updating elastic search setting as described above does fix the issue

elasticsearch: imageTag: 7.10.1

celanthe added a commit to celanthe/zeebe-cluster-helm that referenced this issue Jul 21, 2021
This PR updates the elasticsearch and kibana image tags from 6.8.5 to 7.10.1. 

Ref: camunda-community-hub#114 camunda-community-hub#115
celanthe added a commit to celanthe/zeebe-cluster-helm that referenced this issue Jul 21, 2021
This PR updates the elasticsearch and kibana image tags from 6.8.5 to 7.10.1. 

Ref: camunda-community-hub#114 camunda-community-hub#115
@falko falko linked a pull request Aug 2, 2021 that will close this issue
@falko falko added bug Something isn't working and removed triage labels Aug 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants