Camunda Optimize Exception when setting up

Hi,

I am pulling the docker image of optimize. I have installed elastic search separately and I am maintaining optimize configuration in a yaml file.

docker run -d --name optimize -p Port1:Port1 -p Port2:Port2 -v ABSOLUTE_PATH_ON_HOST_TO_CONFIGURATION_FILE:/elk/optimise/environment/environment-config.yaml:ro -e OPTIMIZE_ELASTICSEARCH_HOST= -e OPTIMIZE_ELASTICSEARCH_HTTP_PORT=ElasticSearchPort registry.camunda.cloud/optimize-ee/optimize:3.2.0

I am getting the below error -

12:57:59.901 [main] INFO o.c.o.s.e.OptimizeElasticsearchClientFactory - Initializing Elasticsearch rest client…
12:58:00.339 [main] INFO o.c.o.s.e.OptimizeElasticsearchClientFactory - Elasticsearch client has successfully been started
12:58:00.576 [main] INFO o.c.o.s.e.s.ElasticSearchSchemaManager - Updating Optimize schema…
12:58:01.188 [main] INFO o.c.o.s.e.s.ElasticSearchSchemaManager - Creating or updating template with name optimize-variable-update-instance_
v2
12:58:01.251 [main] INFO o.c.o.s.e.s.ElasticSearchSchemaManager - Creating or updating template with name optimize-event_v3
12:58:01.531 [main] INFO o.c.o.s.e.s.ElasticSearchSchemaManager - Finished updating Optimize schema.
12:58:01.988 [main] ERROR o.c.o.s.util.EngineVersionChecker - Engine with alias [{camunda-bpm}] didn’t respond. Can not verify this engine’s
version
javax.ws.rs.ProcessingException: java.net.ConnectException: Connection refused (Connection refused)

I have not mentioned camunda-bpm in my configuration. Not sure why Optimize is looking for engine with alias name as camunda-bpm. Any pointers on this?

Regards
Shyam

Do you have the Camunda engine running?

Niall,

I have multiple camunda engines which I have configured in my environment-config.yaml

‘Service1’:
name: default
defaultTenant:
id: null
name: null
rest: ‘http://IP:Port/engine-rest’
importEnabled: true
eventImportEnabled: false
authentication:
enabled: true
password: ‘XXXXXX’
user: ‘XXXXXX’
webapps:
endpoint: ‘http://IP:PORT/camundaenterprise’
enabled: true
‘Service2’:
name: default
defaultTenant:
id: null
name: null
rest: ‘http://IP:PORT/engine-rest’
importEnabled: true
eventImportEnabled: false
authentication:
enabled: true
password: ‘XXXXXX’
user: ‘XXXXXX’
webapps:
endpoint: ‘http://IP:PORT/camundaenterprise’
enabled: true

@aravindhrs - any pointers regarding this issue?

Regards
Shyam

Has it worked before? If so did you change anything since then?
Are you able to contact the rest API for the engines you’re trying to connect optimize to?

Hi @Shyam,

I think if you want to apply a custom config, you need to replace “ABSOLUTE_PATH_ON_HOST_TO_CONFIGURATION_FILE” in the command with your actual local path to the custom config, it looks like you accidentally replaced the container path instead. Have a look at the docs here.

Hope that helps!
Helene

1 Like