When I use the values.yaml File, the installation ...
# ask-ai
b
When I use the values.yaml File, the installation gives me an error : 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-server" with kind Deployment: Deployment.apps
k
The error you are encountering—`unable to install airbyte chart: unable to install helm: cannot patch "airbyte-abctl-server" with kind Deployment: Deployment.apps`—is a known issue when installing Airbyte using
abctl
and a custom
values.yaml
file. This error is often related to problems with patching Kubernetes Deployments, particularly due to mismatches in the order of environment variables or immutable fields in the deployment spec. From the knowledge sources, several users have reported similar errors, especially with recent Airbyte versions and the use of custom values files. The root cause is typically: - Environment variable order mismatch: Helm tries to patch the deployment, but the order of environment variables in the patch does not match the expected
$setElementOrder
list, causing the patch to fail. This is a known issue and is being tracked and fixed by the Airbyte team. See the documentation and related GitHub issues for more details: [Failed to Create Patch Order in Patch List](https://docs.airbyte.com/platform/deploying-airbyte/troubleshoot-deploy#failed-to-create-patch-order-in-patch-list) and [GitHub Issue #60918](https://github.com/airbytehq/airbyte/issues/60918). - Immutable field changes: If you attempt to change immutable fields (like
spec.selector
) in a Kubernetes Deployment via Helm, the patch will fail. This can happen if you change certain values in your
values.yaml
or if the chart version changes how selectors are defined. This is also reported in [GitHub Issue #65129](https://github.com/airbytehq/airbyte/issues/65129). Workarounds and Recommendations: 1. Clean Uninstall and Reinstall: If you have previously installed Airbyte and are now changing your
values.yaml
, try uninstalling Airbyte completely (
abctl local uninstall
) and then reinstalling with your updated values file. This can help avoid patching issues with immutable fields. 2. Avoid Switching Modes: Do not switch between
--low-resource-mode
and normal mode using the same installation, as this can trigger the patch order issue. 3. Use Compatible Versions: Some users have found that downgrading to a specific chart version (e.g.,
1.7.2
) resolves the issue. You can specify the chart version with:
Copy code
abctl local install --chart-version=1.7.2 --values ./values.yaml
[GitHub Issue #65129](https://github.com/airbytehq/airbyte/issues/65129) 4. Monitor for Fixes: The Airbyte team is aware of these issues and is working on fixes. You can track progress and updates in the [official troubleshooting documentation](https://docs.airbyte.com/platform/deploying-airbyte/troubleshoot-deploy#failed-to-create-patch-order-in-patch-list) and the linked GitHub issues. If these steps do not resolve your issue, you may need to wait for an upstream fix from the Airbyte team, as this is a known and actively addressed problem. Summary: Your error is a known issue related to Helm patching and environment variable order or immutable fields in Kubernetes deployments. Try a full uninstall/reinstall, avoid switching install modes, or use a different chart version as a workaround. The Airbyte team is working on a permanent fix. [Failed to Create Patch Order in Patch List](https://docs.airbyte.com/platform/deploying-airbyte/troubleshoot-deploy#failed-to-create-patch-order-in-patch-list) [GitHub Issue #60918](https://github.com/airbytehq/airbyte/issues/60918) [GitHub Issue #65129](https://github.com/airbytehq/airbyte/issues/65129)