What can I do about this error : Checking for Dock...
# ask-ai
b
What can I do about this error : Checking for Docker insta abctl local install --low-resource-mode INFO Using Kubernetes provider: Provider: kind Kubeconfig: /home/btoepfer/.airbyte/abctl/abctl.kubeconfig Context: kind-airbyte-abctl SUCCESS Found Docker installation: version 27.5.1 SUCCESS Existing cluster 'airbyte-abctl' found SUCCESS Cluster 'airbyte-abctl' validation complete INFO Patching image airbyte/db:1.7.0-17 INFO Pulling image airbyte/cron:1.8.5 INFO Pulling image airbyte/db:1.7.0-17 INFO Pulling image airbyte/server:1.8.5 INFO Pulling image airbyte/worker:1.8.5 INFO Pulling image airbyte/workload-api-server:1.8.5 INFO Pulling image airbyte/workload-launcher:1.8.5 INFO Pulling image temporalio/auto-setup:1.27.2 INFO Namespace 'airbyte-abctl' already exists INFO Persistent volume 'airbyte-local-pv' created INFO Persistent volume claim 'airbyte-storage-pvc' created INFO Persistent volume 'airbyte-volume-db' already exists INFO Persistent volume claim 'airbyte-volume-db-airbyte-db-0' already exists INFO Starting Helm Chart installation of 'airbyte/airbyte' (version: 2.0.17) ERROR Failed to install airbyte/airbyte Helm Chart ERROR Unable to install Airbyte locally ERROR unable to install airbyte chart: unable to install helm: cannot patch "airbyte-abctl-cron" with kind Deployment: Deployment.apps "airbyte-abctl-cron" is invalid: spec.selector: Invalid value: v1.LabelSelector{MatchLabels:map[string]string{"airbyte":"cron", "app.kubernetes.io/instance":"airbyte-abctl", "app.kubernetes.io/name":"cron"}, MatchExpressions:[]v1.LabelSelectorRequirement(nil)}: field is immutable && failed to create patch: The order in patch list: [map[name:AB_COOKIE_SECURE valueFrommap[configMapKeyRefmap[key:AB_COOKIE_SECURE name:airbyte-abctl-airbyte-env]]] map[name:AB_COOKIE_SAME_SITE NTAINER_CPU_LIMIT] map[name:DISCOVER_JOB_MAIN_CONTAINER_CPU_REQUEST] map[name:DISCOVER_JOB_MAIN_CONTAINER_MEMORY_LIMIT] map[name:DISCOVER_JOB_MAIN_CONTAINER_MEMORY_REQUEST] map[name:FILE_TRANSFER_EPHEMERAL_STORAGE_LIMIT] map[name:FILE_TRANSFER_EPHEMERAL_STORAGE_REQUEST] map[name:REPLICATION_ORCHESTRATOR_CPU_LIMIT] map[name:REPLICATION_ORCHESTRATOR_CPU_REQUEST] map[name:REPLICATION_ORCHESTRATOR_MEMORY_LIMIT] map[name:REPLICATION_ORCHESTRATOR_MEMORY_REQUEST] map[name:SIDECAR_MAIN_CONTAINER_CPU_LIMIT] map[name:SIDECAR_MAIN_CONTAINER_CPU_REQUEST] map[name:SIDECAR_MAIN_CONTAINER_MEMORY_LIMIT] map[name:SIDECAR_MAIN_CONTAINER_MEMORY_REQUEST] map[name:AIRBYTE_INSTALLATION_ID] map[name:JOB_RESOURCE_VARIANT_OVERRIDE] map[name:WEBAPP_URL]]
k
The error you are encountering during
abctl local install --low-resource-mode
is a known issue with Airbyte's Helm chart installation process. There are two main problems in your error message: 1. Immutable field error:
Copy code
cannot patch "airbyte-abctl-cron" with kind Deployment: Deployment.apps "airbyte-abctl-cron" is invalid: spec.selector: Invalid value: ... field is immutable
This means that Kubernetes does not allow changing the
spec.selector
field of an existing Deployment. This typically happens when you try to upgrade or re-install Airbyte with a Helm chart that modifies selectors for existing Deployments. The only workaround is to delete the affected Deployments (or the entire namespace) before re-installing, but be aware this will remove any data not stored in persistent volumes. 2. Failed to create patch: The order in patch list:
Copy code
failed to create patch: The order in patch list: [...]
This is a known bug in Airbyte's Helm chart and
abctl
tool, especially when switching between install modes (like toggling
--low-resource-mode
). The environment variable patch list order does not match what Kubernetes expects, causing the install to fail. This issue is being tracked and is not yet fully resolved in the latest versions of Airbyte and abctl. See the official documentation and GitHub issue for more details: [Failed to Create Patch Order in Patch List](https://docs.airbyte.com/platform/1.7/deploying-airbyte/troubleshoot-deploy#failed-to-create-patch-order-in-patch-list) [GitHub Issue #114](https://github.com/airbytehq/abctl/pull/114) What you can do: - If you are not concerned about losing your current Airbyte deployment state, delete the existing Airbyte namespace and re-run the install:
Copy code
bash   kubectl delete namespace airbyte-abctl   abctl local install --low-resource-mode
- If you need to preserve data, ensure your persistent volumes are not deleted with the namespace, or manually delete only the problematic Deployments (like
airbyte-abctl-cron
) before re-installing. - Avoid switching between install modes (
--low-resource-mode
and default) on the same cluster, as this can trigger the patch order bug. - Monitor the [official troubleshooting documentation](https://docs.airbyte.com/platform/1.7/deploying-airbyte/troubleshoot-deploy#failed-to-create-patch-order-in-patch-list) for updates and fixes. Status: This is a known, unresolved issue. The Airbyte team is working on a fix, but as of now, the only reliable workaround is to clean up the existing resources before re-installing Airbyte with your desired options. If you continue to encounter issues, consider downgrading to a previous working version of the Helm chart and abctl, as some users have reported success with this approach in related GitHub issues. [Source: Airbyte Troubleshooting Docs](https://docs.airbyte.com/platform/1.7/deploying-airbyte/troubleshoot-deploy#failed-to-create-patch-order-in-patch-list)