<@U04S8PLJWMT> after upgrade on 1.8 faced weird er...
# ask-ai
d
@kapa.ai after upgrade on 1.8 faced weird error
Copy code
2025-08-20 10:38:23,174 [workflow-method-check_1fcb21cb-c4fb-41b1-ad70-898d2f5b59da-0198c708-16c8-73bc-9292-0b98bac5c4bb]	WARN	i.t.i.s.WorkflowExecutionHandler(throwAndFailWorkflowExecution):188 - Workflow execution failure WorkflowId='check_1fcb21cb-c4fb-41b1-ad70-898d2f5b59da', RunId=0198c708-16c8-73bc-9292-0b98bac5c4bb, WorkflowType='ConnectorCommandWorkflow'
io.temporal.failure.ActivityFailure: Activity with activityType='StartCommand' failed: 'Activity task failed'. scheduledEventId=5, startedEventId=6, activityId=2a80d739-96a7-32f2-8d5c-09858bf1ded4, identity='1@airbyte-v2-worker-7bb45b44ff-v64sj', retryState=RETRY_STATE_MAXIMUM_ATTEMPTS_REACHED
	at java.base/java.lang.Thread.getStackTrace(Thread.java:2451)
	at io.temporal.internal.sync.ActivityStubBase.execute(ActivityStubBase.java:49)
	at io.temporal.internal.sync.ActivityInvocationHandler.lambda$getActivityFunc$0(ActivityInvocationHandler.java:83)
	at io.temporal.internal.sync.ActivityInvocationHandlerBase.invoke(ActivityInvocationHandlerBase.java:68)
	at jdk.proxy2/jdk.proxy2.$Proxy103.startCommand(Unknown Source)
	at io.airbyte.workers.temporal.workflows.ConnectorCommandWorkflowImpl.run(ConnectorCommandWorkflow.kt:255)
	at ConnectorCommandWorkflowImplProxy.run$accessor$aBshZ9Xc(Unknown Source)
	at ConnectorCommandWorkflowImplProxy$auxiliary$7r7CF55Z.call(Unknown Source)
	at io.airbyte.micronaut.temporal.TemporalActivityStubInterceptor.execute(TemporalActivityStubInterceptor.kt:72)
	at ConnectorCommandWorkflowImplProxy.run(Unknown Source)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at io.temporal.internal.sync.POJOWorkflowImplementationFactory$POJOWorkflowImplementation$RootWorkflowInboundCallsInterceptor.execute(POJOWorkflowImplementationFactory.java:426)
	at io.temporal.internal.sync.POJOWorkflowImplementationFactory$POJOWorkflowImplementation.execute(POJOWorkflowImplementationFactory.java:374)
	at io.temporal.internal.sync.WorkflowExecutionHandler.runWorkflowMethod(WorkflowExecutionHandler.java:71)
	at io.temporal.internal.sync.SyncWorkflow.lambda$start$0(SyncWorkflow.java:144)
	at io.temporal.internal.sync.CancellationScopeImpl.run(CancellationScopeImpl.java:103)
	at io.temporal.internal.sync.WorkflowThreadImpl$RunnableWrapper.run(WorkflowThreadImpl.java:107)
	at io.temporal.worker.ActiveThreadReportingExecutor.lambda$submit$0(ActiveThreadReportingExecutor.java:54)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: io.temporal.failure.ApplicationFailure: message='com.nimbusds.jose.KeyLengthException: The secret length must be at least 256 bits', type='dev.failsafe.FailsafeException', nonRetryable=false
	at dev.failsafe.SyncExecutionImpl.executeSync(SyncExecutionImpl.java:196)
	at dev.failsafe.CallImpl.execute(CallImpl.java:33)
	at dev.failsafe.okhttp.FailsafeCall.execute(FailsafeCall.java:121)
	at io.airbyte.api.client.generated.WorkspaceApi.getWorkspaceWithHttpInfo(WorkspaceApi.kt:3322)
	at io.airbyte.api.client.generated.WorkspaceApi.getWorkspace(WorkspaceApi.kt:441)
	at io.airbyte.workers.workload.DataplaneGroupResolver.getDataplaneGroupId(DataplaneGroupResolver.kt:44)
	at io.airbyte.workers.workload.DataplaneGroupResolver.resolveForCheck(DataplaneGroupResolver.kt:20)
	at io.airbyte.workers.commands.CheckCommand.buildWorkloadCreateRequest(CheckCommand.kt:63)
	at io.airbyte.workers.commands.CheckCommand.buildWorkloadCreateRequest(CheckCommand.kt:31)
	at io.airbyte.workers.commands.WorkloadCommandBase.start(WorkloadCommandBase.kt:26)
	at io.airbyte.workers.temporal.workflows.ConnectorCommandActivityImpl.startCommand$lambda$0(ConnectorCommandWorkflow.kt:142)
	at io.airbyte.workers.temporal.workflows.ConnectorCommandActivityImpl.withInstrumentation$lambda$5(ConnectorCommandWorkflow.kt:200)
	at io.airbyte.commons.timer.Stopwatch.time(Stopwatch.kt:45)
	at io.airbyte.workers.temporal.workflows.ConnectorCommandActivityImpl.withInstrumentation(ConnectorCommandWorkflow.kt:200)
	at io.airbyte.workers.temporal.workflows.ConnectorCommandActivityImpl.withInstrumentation$default(ConnectorCommandWorkflow.kt:170)
	at io.airbyte.workers.temporal.workflows.ConnectorCommandActivityImpl.startCommand(ConnectorCommandWorkflow.kt:140)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at io.temporal.internal.activity.RootActivityInboundCallsInterceptor$POJOActivityInboundCallsInterceptor.executeActivity(RootActivityInboundCallsInterceptor.java:64)
	at io.temporal.internal.activity.RootActivityInboundCallsInterceptor.execute(RootActivityInboundCallsInterceptor.java:43)
	at io.temporal.internal.activity.ActivityTaskExecutors$BaseActivityTaskExecutor.execute(ActivityTaskExecutors.java:107)
	at io.temporal.internal.activity.ActivityTaskHandlerImpl.handle(ActivityTaskHandlerImpl.java:124)
	at io.temporal.internal.worker.ActivityWorker$TaskHandlerImpl.handleActivity(ActivityWorker.java:290)
	at io.temporal.internal.worker.ActivityWorker$TaskHandlerImpl.handle(ActivityWorker.java:254)
	at io.temporal.internal.worker.ActivityWorker$TaskHandlerImpl.handle(ActivityWorker.java:217)
	at io.temporal.internal.worker.PollTaskExecutor.lambda$process$1(PollTaskExecutor.java:96)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: io.temporal.failure.ApplicationFailure: message='The secret length must be at least 256 bits', type='com.nimbusds.jose.KeyLengthException', nonRetryable=false
	at com.nimbusds.jose.crypto.impl.MACProvider.<init>(MACProvider.java:181)
	at com.nimbusds.jose.crypto.MACSigner.<init>(MACSigner.java:76)
	at io.micronaut.security.token.jwt.signature.secret.SecretSignature.sign(SecretSignature.java:72)
	at io.airbyte.api.client.auth.InternalClientTokenInterceptor.generateToken(InternalClientTokenInterceptor.kt:69)
	at io.airbyte.api.client.auth.InternalClientTokenInterceptor.intercept(InternalClientTokenInterceptor.kt:30)
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
	at io.airbyte.api.client.interceptor.ThrowOn5xxInterceptor.intercept(ThrowOn5xxInterceptor.kt:14)
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
	at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:201)
	at okhttp3.internal.connection.RealCall.execute(RealCall.kt:154)
	at dev.failsafe.okhttp.FailsafeCall.lambda$execute$0(FailsafeCall.java:117)
	at dev.failsafe.Functions.lambda$get$0(Functions.java:46)
	at dev.failsafe.internal.RetryPolicyExecutor.lambda$apply$0(RetryPolicyExecutor.java:74)
	at dev.failsafe.SyncExecutionImpl.executeSync(SyncExecutionImpl.java:187)
	... 28 common frames omitted
k
Based on the error message you provided after upgrading to Airbyte 1.8:
Copy code
Caused by: io.temporal.failure.ApplicationFailure: message='com.nimbusds.jose.KeyLengthException: The secret length must be at least 256 bits', type='dev.failsafe.FailsafeException', nonRetryable=false ... Caused by: io.temporal.failure.ApplicationFailure: message='The secret length must be at least 256 bits', type='com.nimbusds.jose.KeyLengthException', nonRetryable=false
This error indicates that a secret used for JWT signing (likely the
AB_JWT_SIGNATURE_SECRET
or a similar key) is too short. The underlying library (Nimbus JOSE) requires the secret to be at least 256 bits (32 bytes) long. What to do: - Check your environment variables or configuration for the JWT signature secret. - Ensure that the value for
AB_JWT_SIGNATURE_SECRET
(or the relevant secret) is at least 32 characters long and is sufficiently random. - If you are using Helm or another deployment method, make sure the secret is set correctly and not truncated or duplicated. Related Fixes in 1.8: The release notes for Airbyte 1.8 mention a fix for a duplicate
AB_JWT_SIGNATURE_SECRET
key that prevented upgrades with Helm, which could be related if your deployment method is Helm or if the secret was misconfigured during the upgrade process. Ensuring the secret is set correctly and only once should resolve this error[Airbyte 1.8 Release Notes](https://docs.airbyte.com/release_notes/v-1.8#fixes). If you continue to see this error after correcting the secret, double-check that all pods/services are using the updated secret and that there are no conflicting or legacy values present. If the problem persists and you have verified the secret length, please provide more details about your deployment method and how secrets are managed, as there may be an issue with how the secret is being injected into your environment.