<@U04S8PLJWMT> I got this when trying to upgrade f...
# ask-ai
r
@kapa.ai I got this when trying to upgrade from 1.2 to 1.7 ERROR Failed to install airbyte/airbyte Helm Chart ERROR Unable to install Airbyte locally ERROR unable to install airbyte chart: unable to install helm: failed to create patch: The order in patch list: [map[name:AIRBYTE_EDITION valueFrommap[configMapKeyRefmap[key:AIRBYTE_EDITION name:airbyte-abctl-airbyte-env]]] map[name:MICROMETER_METRICS_STEP valueFrommap[configMapKeyRefmap[key:MICROMETER_METRICS_STEP name:airbyte-abctl-airbyte-env]]] map[name:MICROMETER_METRICS_OTLP_ENABLED valueFrommap[configMapKeyRefmap[key:MICROMETER_METRICS_OTLP_ENABLED name:airbyte-abctl-airbyte-env]]] map[name:OTEL_COLLECTOR_ENDPOINT valueFrommap[configMapKeyRefmap[key:OTEL_COLLECTOR_ENDPOINT name:airbyte-abctl-airbyte-env]]] map[name:MICROMETER_METRICS_STATSD_ENABLED valueFrommap[configMapKeyRefmap[key:MICROMETER_METRICS_STATSD_ENABLED name:airbyte-abctl-airbyte-env]]] map[name:SEGMENT_WRITE_KEY valueFrommap[configMapKeyRefmap[key:SEGMENT_WRITE_KEY name:airbyte-abctl-airbyte-env]]] map[name:TRACKING_STRATEGY valueFrommap[configMapKeyRefmap[key:TRACKING_STRATEGY name:airbyte-abctl-airbyte-env]]] map[name:AB_JWT_SIGNATURE_SECRET valueFrommap[secretKeyRefmap[key:jwt-signature-secret name:airbyte-auth-secrets]]] map[name:AB_JWT_SIGNATURE_SECRET valueFrommap[secretKeyRefmap[key:jwt-signature-secret name:airbyte-auth-secrets]]] map[name:MICRONAUT_ENVIRONMENTS valueFrommap[configMapKeyRefmap[key:WORKERS_MICRONAUT_ENVIRONMENTS name:airbyte-abctl-airbyte-env]]] map[name:AIRBYTE_API_AUTH_HEADER_NAME value:X-Airbyte-Auth] map[name:AIRBYTE_API_AUTH_HEADER_VALUE value:Internal worker] map[name:API_AUTHORIZATION_ENABLED value:true]] doesn't match $setElementOrder list: [map[name:AIRBYTE_VERSION] map[name:AIRBYTE_EDITION] map[name:INTERNAL_API_HOST] map[name:AIRBYTE_API_HOST] map[name:MICROMETER_METRICS_ENABLED] map[name:MICROMETER_METRICS_STEP] map[name:MICROMETER_METRICS_OTLP_ENABLED] map[name:OTEL_COLLECTOR_ENDPOINT] map[name:MICROMETER_METRICS_STATSD_ENABLED] map[name:MICROMETER_METRICS_STATSD_FLAVOR] map[name:SEGMENT_WRITE_KEY] map[name:STATSD_HOST] map[name:STATSD_PORT] map[name:TEMPORAL_HOST] map[name:TRACKING_STRATEGY] map[name:WORKLOAD_API_BEARER_TOKEN] map[name:AB_JWT_SIGNATURE_SECRET] map[name:MICRONAUT_ENVIRONMENTS] map[name:AB_JWT_SIGNATURE_SECRET] map[name:AIRBYTE_API_AUTH_HEADER_NAME] map[name:AIRBYTE_API_AUTH_HEADER_VALUE] map[name:API_AUTHORIZATION_ENABLED] map[name:DATABASE_HOST] map[name:DATABASE_PORT] map[name:DATABASE_DB] map[name:DATABASE_USER] map[name:DATABASE_PASSWORD] map[name:DATABASE_URL] map[name:AIRBYTE_INSTALLATION_ID]]
k
The error you are encountering:
Copy code
unable 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.