<@U04S8PLJWMT> I've installed Airbyte Community lo...
# ask-ai
m
@kapa.ai I've installed Airbyte Community locally on my computer via
abctl local install
to test some integrations (eg. connect to a database to perform CDC, read csv file, etc). All instalation went well and I can connect to Airbyte via localhost:8000. However, I couldn't execute any integration like connecting to an existing RDS (Postgres) or reading a csv file from a public website. Both sources are acessible using other tools (like dbeaver for RDS), but the connection test in Airbyte return error 502 and the Worker's pod log return an unauthorized error (below). Am I missing something?
Copy code
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.airbyte.api.client.ApiException: Unauthorized
	at io.airbyte.workload.api.client.WorkloadApiClient.unit(WorkloadApiClient.kt:405)
	at io.airbyte.workload.api.client.WorkloadApiClient.workloadCreate(WorkloadApiClient.kt:50)
	at io.airbyte.workers.sync.WorkloadClient.createWorkload(WorkloadClient.kt:44)
	... 20 common frames omitted
k
Based on the error message and your description, it appears that your Airbyte Community installation via
abctl local install
is encountering an "Unauthorized" error when the worker pod tries to execute tasks, resulting in 502 errors for integration tests. This specific error pattern—`io.airbyte.api.client.ApiException: Unauthorized` in the worker logs—has been reported in Airbyte issues when there are problems with Kubernetes authentication, particularly with the workload launcher or when secrets (like dataplane credentials) are missing or not properly initialized. For example, a similar stack trace and 502 errors have been observed when the workload launcher cannot find required secrets or when the dataplane credentials are not set up correctly after installation or upgrade. In some cases, users have resolved this by deleting certain records from the Airbyte database and reinstalling, which forces Airbyte to recreate the necessary secrets and credentials. Here’s a relevant workaround:
Copy code
bash export KUBECONFIG="$HOME/.airbyte/abctl/abctl.kubeconfig" 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 running these commands, try reinstalling Airbyte with
abctl local install
again. This process should recreate the required dataplane credentials and secrets, which may resolve the unauthorized error you’re seeing. This workaround has been confirmed to work for similar issues in Airbyte Community installations using `abctl`[Workload launcher unauthorized error workaround](https://github.com/airbytehq/airbyte/issues/58587). If this does not resolve the issue, ensure that your Kubernetes cluster and Airbyte pods have the correct permissions and that all required secrets are present. Also, make sure you are using a supported and up-to-date version of Airbyte, as some issues have been fixed in recent releases. If you continue to experience issues, please provide more details about your Airbyte version and any additional error logs, as there may be other configuration or environment-specific factors at play.
m
@kapa.ai ok, I did the workaround and reinstalled the Airbyte again, but the same I'm facing the same error. The Airbyte's components versions are: helm: release installed successfully: airbyte-2-1755608581/airbyte-2.0.8 airbyte/connector-builder-server:1.8.0 airbyte/cron:1.8.0 airbyte/db:1.7.0-17 airbyte/server:1.8.0 airbyte/worker:1.8.0 airbyte/workload-api-server:1.8.0 airbyte/workload-launcher:1.8.0 temporalio/auto-setup:1.27.2 is it possible that this specific version has problem? How can I downgrade to a stable version?
k
A message from kapa.ai
Yes, it is possible that the specific version you are using (Airbyte 1.8.0 components with Helm chart 2.0.8) has issues, especially since there have been several recent reports of authentication and connectivity problems with newer Airbyte releases. Users have reported similar "Unauthorized" errors and 502s, and in many cases, downgrading to a previous stable version resolved the issue. How to Downgrade Airbyte with abctl You can downgrade your Airbyte installation using the
--chart-version
flag with
abctl local install
. For example, to downgrade to version 1.6.4 (which has been reported as a stable workaround for similar issues), you can run:
Copy code
bash abctl local install --chart-version 1.6.4
This approach has been confirmed by users who faced similar networking and authorization issues with newer versions. After downgrading, they were able to connect to sources and destinations successfully again [see: abctl downgrade workaround](https://github.com/airbytehq/airbyte/issues/62463) and [connector builder 502 workaround](https://github.com/airbytehq/airbyte/issues/61677). Note: - Downgrading may require a clean install, and you may lose existing data unless you have persistent storage configured. - You can check available chart versions on [ArtifactHub](https://artifacthub.io/packages/helm/airbyte/airbyte). If you continue to experience issues after downgrading, please share any new error logs or behaviors you observe.
m
@kapa.ai after downgrading for the recommended version, the UI is showing this error after create a new connection: { "url": "http://localhost:8000/workspaces/563dd92f-a2cf-4fcb-87c0-882f7f8c1c8a/source/3d59a893-bfab-44ca-946e-23800b4df5bf", "airbyteVersion": "1.6.4", "errorType": "HttpError", "errorConstructor": "qu", "error": { "i18nKey": "errors.http.default", "i18nParams": { "status": 409 }, "name": "HttpError", "requestId": "r9L6CZAJwoRLDRQdRzsL6X", "request": { "url": "/api/v1/web_backend/connections/list", "method": "post", "headers": { "Content-Type": "application/json" }, "data": { "workspaceId": "563dd92f-a2cf-4fcb-87c0-882f7f8c1c8a", "sourceId": [ "3d59a893-bfab-44ca-946e-23800b4df5bf" ] } }, "status": 409, "response": { "message": "Failed to access database. Check the server logs for more information", "exceptionClassName": "io.airbyte.commons.server.errors.ConflictException", "exceptionStack": [], "rootCauseExceptionStack": [] } }, "stacktrace": "HttpError: errors.http.default\n at RRe (http://localhost:8000/assets/core-o4xqm0aixp.js:121:153678)\n at async JTt.fn.refetchInterval [as queryFn] (http://localhost:8000/assets/core-o4xqm0aixp.js:355:24429)", "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36", "featureFlags": {} }
k
A message from kapa.ai
New message text here