Exception when starting Camunda Optimize

Hi,

When I am starting Optimize demo version in Linux, I am getting the below exception. I am using Camunda 7.13.0 and I have dependencies added in my springboot applications POM file -

org.camunda.bpm.springboot camunda-bpm-spring-boot-starter-rest 7.13.0-ee org.camunda.bpm camunda-engine-rest-jaxrs2 7.13.0-ee provided

I have following configured in my Optimize environment-config.yaml

A base URL that will be used for connections to the Camunda Engine REST API.

rest: 'http://IP:Port/engine-rest/engine'

Optimize directly to a dedicated process instance in Cockpit

webapps:
  # Defines the endpoint where to find the camunda webapps
  endpoint: 'http://IP:Port/camunda'

10:47:20.792 [main] WARN o.s.w.c.s.XmlWebApplicationContext - Exception encountered during context initialization - cancelling refresh attem
pt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‚ÄėentitiesService‚Äô defined in URL [jar:fil
e:/appl_bin/software/camunda-optimize-3.1.0-demo/optimize-backend-3.1.0.jar!/org/camunda/optimize/service/EntitiesService.class]: Unsatisfied
dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException:
Error creating bean with name ‚ÄėcollectionService‚Äô defined in URL [jar:file:/appl_bin/software/camunda-optimize-3.1.0-demo/optimize-backend-3.
1.0.jar!/org/camunda/optimize/service/collection/CollectionService.class]: Unsatisfied dependency expressed through constructor parameter 0;
nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‚ÄėauthorizedCollectionServ
ice’ defined in URL [jar:file:/appl_bin/software/camunda-optimize-3.1.0-demo/optimize-backend-3.1.0.jar!/org/camunda/optimize/service/securit
y/AuthorizedCollectionService.class]: Unsatisfied dependency expressed through constructor parameter 1; nested exception is org.springframewo
rk.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‚ÄėidentityService‚Äô defined in URL [jar:file:/appl_bin/software/
camunda-optimize-3.1.0-demo/optimize-backend-3.1.0.jar!/org/camunda/optimize/service/IdentityService.class]: Unsatisfied dependency expressed
through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean w
ith name ‚ÄėapplicationAuthorizationService‚Äô defined in URL [jar:file:/appl_bin/software/camunda-optimize-3.1.0-demo/optimize-backend-3.1.0.jar
!/org/camunda/optimize/service/security/ApplicationAuthorizationService.class]: Unsatisfied dependency expressed through constructor paramete
r 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‚ÄėengineContextFactory‚Äô: Invoc
ation of init method failed; nested exception is org.camunda.optimize.service.exceptions.OptimizeRuntimeException: While checking the Engine
version, following error occurred: Status code: 404,
this means you either configured a wrong endpoint or you have an unsupported engine version < 7.11.13
10:47:20.805 [main] ERROR o.s.web.context.ContextLoader - Context initialization failed

@Shyam In Camunda server, did you enabled authorization? If yes, then configure like this in optimize (environment-config.yaml):

engines:
  'camunda-bpm':
    name: default
    defaultTenant:
      id: null
      name: null
    rest: 'http://localhost:8080/engine-rest'
    importEnabled: true
    eventImportEnabled: false
    authentication:
      enabled: true
      password: 'demo'
      user: 'demo'
    webapps:
      endpoint: 'http://localhost:8080/camundaenterprise'
      enabled: true

Webapp url should be like this only
webapps:
endpoint: 'http://localhost:8080/camunda"
enabled: true

I’ve overridden the webapps context path :slight_smile:

1 Like