Failed to activate jobs for worker worker#barWorker and job type bar, io.grpc.StatusRuntimeException: UNAUTHENTICATED: Failed to parse bearer token, see cause for details

Hi everyone, i have issue when using the spring boot for about 5 minutes then it throws this error:

It seems like the access token has expired and I don’t know how to refresh it or set it never expire? I’ve already deployed Camunda self-managed with Keyloak existing.
This is my configuration in Spring Boot
image

Hello @BevisDev ,

which version of the spring-boot-starter-camunda are you using?

Jonathan

hi @jonathan.lukas
i’m using version 8.4.0
image

Hello @BevisDev ,

please use 8.4.2: Release 8.4.2 · camunda-community-hub/spring-zeebe · GitHub

This contains the fix: backport/8.4: fix(common-authentication): Token not refreshed by jonathanlukas · Pull Request #632 · camunda-community-hub/spring-zeebe · GitHub

I hope this solves your issue.

Jonathan

hi @jonathan.lukas
Looks like version 8.4.2 takes token based on Operate instead of Zeebe. When I upgraded the version, I got an error when retrieving Product

Previously I configured like this
image

Hello @BevisDev ,

do you need to use the Operate client?

if not, you can disable it.

Jonathan

Hello @BevisDev ,

also, the common properties are not meant to be used for zeebe.

Instead, you can use the zeebe.client.cloud properties:

zeebe:
  client:
    broker:
      gateway-address: ${gateway-address}
    security:
      plaintext: true
    cloud:
      client-id: ${camunda.zeebe.client-id}
      client-secret: ${camunda.zeebe.client-secret}
      auth-url: ${camunda.host}/auth/realms/${camunda.keycloak.realm}/protocol/openid-connect/token

I hope this helps

Jonathan

Thanks @jonathan.lukas
It solved my issue.

1 Like

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