<@U04S8PLJWMT> I am seeing this error after updati...
# ask-ai
l
@kapa.ai I am seeing this error after updating to helm chart 1.8.1
Copy code
java.lang.RuntimeException: Failed to initialize data-plane	at io.airbyte.workload.launcher.authn.DataplaneIdentityService.initialize(DataplaneIdentityService.kt:56)	at io.airbyte.workload.launcher.StartupApplicationEventListener.onApplicationEvent(StartupApplicationEventListener.kt:34)	at io.airbyte.workload.launcher.StartupApplicationEventListener.onApplicationEvent(StartupApplicationEventListener.kt:20)	at io.micronaut.context.event.ApplicationEventPublisherFactory.notifyEventListeners(ApplicationEventPublisherFactory.java:266)	at io.micronaut.context.event.ApplicationEventPublisherFactory$2.publishEvent(ApplicationEventPublisherFactory.java:226)	at io.micronaut.http.server.netty.discovery.NettyServiceDiscovery.onStart(NettyServiceDiscovery.java:54)	at io.micronaut.http.server.netty.discovery.$NettyServiceDiscovery$Definition$Exec.dispatch(Unknown Source)	at io.micronaut.context.AbstractExecutableMethodsDefinition$DispatchedExecutableMethod.invoke(AbstractExecutableMethodsDefinition.java:456)	at io.micronaut.context.DefaultBeanContext$BeanExecutionHandle.invoke(DefaultBeanContext.java:3987)	at io.micronaut.aop.chain.AdapterIntroduction.intercept(AdapterIntroduction.java:91)	at io.micronaut.aop.chain.MethodInterceptorChain.proceed(MethodInterceptorChain.java:143)	at io.micronaut.http.server.netty.discovery.NettyServiceDiscovery$ApplicationEventListener$onStart1$Intercepted.onApplicationEvent(Unknown Source)	at io.micronaut.context.event.ApplicationEventPublisherFactory.notifyEventListeners(ApplicationEventPublisherFactory.java:266)	at io.micronaut.context.event.ApplicationEventPublisherFactory$2.publishEvent(ApplicationEventPublisherFactory.java:226)	at io.micronaut.http.server.netty.NettyHttpServer.fireStartupEvents(NettyHttpServer.java:720)	at io.micronaut.http.server.netty.NettyHttpServer.start(NettyHttpServer.java:330)	at io.micronaut.http.server.netty.NettyHttpServer.start(NettyHttpServer.java:124)	at io.micronaut.runtime.Micronaut.start(Micronaut.java:81)	at io.airbyte.workload.launcher.ApplicationKt.main(Application.kt:10)Caused by: java.io.IOException: HTTP error: 500 Internal Server Error	at io.airbyte.api.client.interceptor.ThrowOn5xxInterceptor.intercept(ThrowOn5xxInterceptor.kt:16)	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)	at dev.failsafe.CallImpl.execute(CallImpl.java:33)	at dev.failsafe.okhttp.FailsafeCall.execute(FailsafeCall.java:121)	at io.airbyte.api.client.generated.DataplaneApi.initializeDataplaneWithHttpInfo(DataplaneApi.kt:2244)	at io.airbyte.api.client.generated.DataplaneApi.initializeDataplane(DataplaneApi.kt:364)	at io.airbyte.workload.launcher.authn.DataplaneIdentityService.initialize(DataplaneIdentityService.kt:41)
k
The error you are seeing after updating to Helm chart 1.8.1:
Copy code
java.lang.RuntimeException: Failed to initialize data-plane ... Caused by: java.io.IOException: HTTP error: 500 Internal Server Error ... at io.airbyte.api.client.generated.DataplaneApi.initializeDataplaneWithHttpInfo(DataplaneApi.kt:2244)
is related to a failure during the dataplane initialization process. This is a known issue that has affected several Airbyte users, especially around the 1.6.x–1.8.x releases. Possible Causes and Solutions: 1. Database State Issues: If you have previously upgraded or attempted to upgrade Airbyte, there may be stale or conflicting entries in the
dataplane
or
dataplane_client_credentials
tables in your Airbyte database. This can cause the dataplane initialization to fail with a 500 error. A workaround that has resolved this for others is to manually delete these entries from the database and then re-run the installation or upgrade. Here’s how you can do it (replace
airbyte-abctl
and database details as needed):
Copy code
bash    kind export kubeconfig -n airbyte-abctl    kubectl exec -it -n airbyte-abctl airbyte-db-0 -- /bin/bash    psql -U airbyte db-airbyte    delete from dataplane_client_credentials;    delete from dataplane;    \q    exit
After this, re-run your
abctl install
or Helm upgrade. This will allow Airbyte to recreate the dataplane and its credentials correctly. This workaround was confirmed by Airbyte contributors and users for similar issues in 1.6.x and 1.8.x releases [see details here](https://github.com/airbytehq/airbyte/issues/58587) and [here](https://github.com/airbytehq/airbyte/issues/65096). 2. Helm Chart Changes in 1.8.x: Starting with 1.8.0, Airbyte changed how dataplane credentials are managed. The bootloader now checks for valid credentials in the secret first and only re-initializes if they are missing or invalid. If you are using custom secrets or have manually set
dataplane-client-id
values, ensure they are valid and not conflicting with what Airbyte expects. This change is documented as being available from 1.8.0 onwards [see here](https://github.com/airbytehq/airbyte/issues/64159). Important: - Always back up your Airbyte database before making manual changes. - If you continue to see database schema or credential errors after this, you may need to restore your database to a pre-upgrade state, as some users have reported issues with schema mismatches after failed upgrades [see here](https://github.com/airbytehq/airbyte/issues/65096). If these steps do not resolve your issue, please provide additional logs or error messages for further troubleshooting.
l
@kapa.ai I do not see the dataplane or dataplane_client_credentials tables in my database
k
A message from kapa.ai
I'm sorry, but the knowledge sources do not contain explicit information about what to do if the
dataplane
or
dataplane_client_credentials
tables are missing from your Airbyte database. The available documentation and GitHub issues discuss troubleshooting steps involving these tables, but do not address their absence or provide guidance on how to recreate them if they are missing. If you are missing these tables, it may indicate a problem with your database migrations or installation process. Based on the issues reported, database migrations are responsible for creating and updating these tables, but there is no step-by-step recovery process documented in the provided sources for this specific scenario. If you continue to experience issues, I recommend checking your Airbyte deployment logs for migration errors and considering a fresh installation if possible. If you need further assistance, reaching out to the Airbyte community or support channels may be necessary, as this situation is not directly covered in the current documentation or issues provided.