Russell Osborne
07/14/2025, 7:21 PMkapa.ai
07/14/2025, 7:21 PMunable to install airbyte chart: unable to install helm: failed to create patch: The order in patch list: ... doesn't match $setElementOrder list: ... is a known issue when upgrading Airbyte, especially when using abctl or Helm. This error is related to the order of environment variables in Kubernetes deployments, which must match exactly between the patch and the existing resource. If the order does not match, Helm cannot apply the patch, and the upgrade fails. This issue has been reported by multiple users and is documented in Airbyte's troubleshooting guides. It often occurs when: - Upgrading Airbyte using abctl local install or Helm, especially across major versions. - There are changes or duplications in environment variables between versions. - You previously installed Airbyte without certain flags (like --low-resource-mode) and then try to install with them, or vice versa. Current Status: The Airbyte team is aware of this issue and is working on a fix, as referenced in their documentation and GitHub issues. There is no official workaround documented yet, but some users have reported that removing custom environment variable overrides from their values.yaml (if any) can help in some cases. However, this is not guaranteed to resolve the issue for all upgrade scenarios. References: - [Airbyte Docs: 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: abctl local install fails: Helm patch Deployment error due to env var order mismatch ($setElementOrder)](https://github.com/airbytehq/airbyte/issues/60918) - [GitHub Issue: Could not deploy latest (v1.6.0) airbyte community with abctl](https://github.com/airbytehq/airbyte/issues/58587) What you can do: - Monitor the [Airbyte abctl GitHub pull requests](https://github.com/airbytehq/abctl/pull/114) and issues for updates on a fix. - If you have custom environment variables in your values.yaml, try removing them and re-running the upgrade. - If possible, consider a fresh install and migration as a temporary workaround, though this may not be feasible for all setups. Unfortunately, until the Airbyte team releases a fix, this error may persist during upgrades between certain versions.