<@U04S8PLJWMT> i.a.w.l.p.h.FailureHandler(handleSt...
# ask-ai
r
@kapa.ai i.a.w.l.p.h.FailureHandler(handleStageError):66 - Stage Pipeline Exception: io.airbyte.workload.launcher.pipeline.stages.model.StageError: io.airbyte.workers.exception.KubeClientException: Failed to create pod source-mysql-check-394-4-ptdwa. message: io.airbyte.workers.exception.KubeClientException: Failed to create pod source-mysql-check-394-4-ptdwa. stackTrace: [Ljava.lang.StackTraceElement;@f83d94Caused by: io.fabric8.kubernetes.client.KubernetesClientException: Failure executing: PATCH at: Message: Unauthorized. Received status: Status(apiVersion=v1, code=401, details=null, kind=Status, message=Unauthorized, metadata=ListMeta(_continue=null, remainingItemCount=null, resourceVersion=null, selfLink=null, additionalProperties={}), reason=Unauthorized, status=Failur
k
Based on the error message you're seeing, this is a Kubernetes authorization issue when Airbyte is trying to create pods. The error
Unauthorized. Received status: Status(apiVersion=v1, code=401
indicates that the service account being used doesn't have the necessary permissions to perform PATCH operations on pods. This is a known issue in Airbyte, particularly related to service account configuration. Here are the likely causes and solutions: ## Common Causes 1. Service Account Permissions Issue: The service account being used by the workload-launcher doesn't have proper RBAC permissions to create/patch pods in the Kubernetes cluster. 2. Service Account Name Mismatch: As documented in [this issue](https://github.com/airbytehq/airbyte/issues/49938), Airbyte may be trying to use a hardcoded service account name (
airbyte-admin
) even when you've configured a different service account name in your values.yaml. 3. Helm Upgrade Issue: According to [this issue](https://github.com/airbytehq/airbyte/issues/18731), helm upgrades can sometimes delete and recreate service accounts, causing authorization problems. ## Solutions to Try 1. Verify Service Account Exists: Check that the service account exists in your namespace:
Copy code
bash    kubectl get serviceaccount -n <your-namespace>
2. Check RBAC Permissions: Ensure your service account has the necessary role bindings to create and patch pods. 3. Workaround for Service Account Name Issue: If you're using a custom service account name, you may need to create an additional service account named
airbyte-admin
with the same permissions as a temporary workaround (as mentioned in [this issue](https://github.com/airbytehq/airbyte/issues/49938)). 4. Reinstall After Upgrade: If this occurred after a helm upgrade, you may need to perform a clean reinstall as suggested in [this comment](https://github.com/airbytehq/airbyte/issues/39512). The root cause is that the workload-launcher pod cannot authenticate properly with the Kubernetes API to create the connector pods needed for your sync operations.