I had the following error trying to upgrade my Air...
# ask-ai
m
I had the following error trying to upgrade my Airbyte installation via helm:
Copy code
$ helm repo add airbyte https://airbytehq.github.io/helm-charts
"airbyte" has been added to your repositories
$ helm repo update
Hang tight while we grab the latest from your chart repositories...
...Successfully got an update from the "airbyte" chart repository
Update Complete. ⎈Happy Helming!⎈
$ helm upgrade --install -f ./kubernetes/helm/values-prod.yaml -n airbyte airbyte airbyte/airbyte --version 1.6.3
Error: UPGRADE FAILED: parse error at (airbyte/templates/gcs-log-creds-secret.yaml:1): unclosed action
Cleaning up project directory and file based variables
00:01
ERROR: Job failed: command terminated with exit code 1
k
The error message you encountered during your Airbyte Helm upgrade:
Copy code
Error: UPGRADE FAILED: parse error at (airbyte/templates/gcs-log-creds-secret.yaml:1): unclosed action
indicates a syntax issue in the Helm chart template, specifically in the
gcs-log-creds-secret.yaml
file. This is a known issue that has been reported in the Airbyte community. The root cause is typically a malformed or incomplete Helm template directive (e.g., a missing closing
}}
or an incorrect conditional) in that file. From the knowledge sources, a similar issue was reported when upgrading Airbyte Helm charts, particularly when configuring GCS storage. In one case, the problem was traced to the conditional logic in the
gcs-log-creds-secret.yaml
template, where an unclosed or incorrect action in the template caused Helm to fail parsing the file. For example, a missing parenthesis or curly brace in a line like:
Copy code
yaml {{- if and (eq .Values.global.deploymentMode "oss" ) (eq (lower(default "" .Values.global.storage.type)"gcs" ) }}
or similar, would result in the "unclosed action" error you are seeing. The issue may also arise if the template expects certain values (like
global.storage.gcs.credentialsJson
) to be set, but they are missing or misconfigured in your
values-prod.yaml
file, causing the template logic to break unexpectedly [see related issue](https://github.com/airbytehq/airbyte/issues/39456). What you can do: 1. Check your values file: Ensure that all required values for GCS storage are correctly set in your
values-prod.yaml
. If you are not using GCS, make sure that any GCS-related configuration is either removed or commented out. 2. Check for template bugs: This error may be due to a bug in the Helm chart version you are using (1.6.3). There have been reports of such issues in previous versions, and sometimes they are fixed in later releases. Consider checking the [Airbyte Helm chart repository](https://airbytehq.github.io/helm-charts/index.yaml) or GitHub issues for any patches or updates. 3. Workaround: If you are blocked, you can try: - Upgrading to a newer Helm chart version if available. - Downgrading to a previous version that did not have this issue. - Manually editing the
gcs-log-creds-secret.yaml
template in your local chart to fix any obvious syntax errors (not recommended for production unless you know what you are doing). Summary: This is a Helm template syntax error, likely caused by a bug or misconfiguration in the GCS credentials secret template. Double-check your configuration and consider trying a different chart version if the problem persists. If you continue to encounter this issue, you may want to open a GitHub issue with the Airbyte team, referencing the error and your configuration. For more context, see the related discussion: [Helm chart template error with GCS credentials](https://github.com/airbytehq/airbyte/issues/39456).