<@U04S8PLJWMT> Problem: Airbyte Helm Chart V2 depl...
# ask-ai
d
@kapa.ai Problem: Airbyte Helm Chart V2 deployment failing with persistent "java.io.IOException: Is a directory" error preventing web UI access. Current Status: Infrastructure Working: • GKE cluster with Workload Identity • External Secrets Operator correctly configured • Cloud SQL database connected • LoadBalancer service with external IP • All secrets properly synced to airbyte-config-secrets Airbyte Chart Issue: • Server/worker pods crash with "Is a directory" error • Chart expects GCS credentials at /secrets/gcs-log-creds/gcp.json • Despite correct storageSecretName and credentialsJsonPath configuration What We've Tried: 1. Multiple credential approaches: inline JSON, external secrets, pure Workload Identity 2. Chart configuration variants: secretName vs storageSecretName, different paths 3. Volume mounting verification: Secret exists with correct gcp.json key 4. Pod restarts: Fresh deployments with updated config Technical Details: Current values.yaml (following Chart V2 docs) global: storage: type: "GCS" storageSecretName: "airbyte-config-secrets" # External Secret managed gcs: projectId: "${project_id}" credentialsJsonPath: "/secrets/gcs-log-creds/gcp.json" Chart Version: airbyte-2.0.12 Error Location: io.airbyte.commons.storage.StorageClientKt.gcsClient(StorageClient.kt:519) Questions for Community: 1. Known Chart V2 bugs with GCS volume mounting? 2. Working Chart versions for GCS storage? 3. Alternative storage configs that actually work? 4. Volume mounting workarounds for this specific error? Our analysis suggests this is a Helm chart templating bug where the secret volume isn't properly mounted despite correct configuration. Anyone else hit this issue?
k
Short answer: yes—there have been Helm chart issues around GCS credentials/secret mounting in recent versions, and the symptoms you describe match known inconsistencies. What’s known from the sources: - In several chart versions, components reference different keys/secret names for GCS, causing mounts to point at a non-existent or wrong secret. In particular, some templates default to airbyte-config-secrets while others create/use release-name-gcs-log-creds unless storage.storageSecretName is set, leading to mismatches. [[Using GCS storage bug](https://github.com/airbytehq/airbyte/issues/48502); [workload-api-server inconsistency](https://github.com/airbytehq/airbyte/issues/44525)]. - Community reports indicate the correct key is storageSecretName (not secretName) for newer charts; using secretName can break things. [[Discussion thread](https://github.com/airbytehq/airbyte/issues/44525)]. - Docs for V2 chart show GCS examples using global.storage.secretName or storageSecretName inconsistently across pages; the recommended V2 form uses storageSecretName with credentialsJsonPath or credentialsPath. [[External logging (Next)](https://docs.airbyte.com/platform/next/enterprise-setup/implementation-guide#configuring-external-logging); [Storage values (Next)](https://docs.airbyte.com/platform/next/deploying-airbyte/integrations/storage#values)]. - When no storageSecretName is set and you rely on credentialsJson, the chart may create release-name-gcs-log-creds but worker/launcher still look for airbyte-config-secrets unless overridden via env vars. A known workaround is setting CONTAINER_ORCHESTRATOR_SECRET_NAME to the created secret name. [[Using GCS storage bug](https://github.com/airbytehq/airbyte/issues/48502)]. Suggestions to get unblocked: 1) Ensure a single, consistent secret reference: - Keep global.storage.type: "GCS". - Set global.storage.storageSecretName to the actual secret name that contains key gcp.json. - In that secret, ensure the key is exactly gcp.json and the file content is valid JSON (not a directory). The “Is a directory” error often occurs when the path points to a directory mount path instead of a file—so use credentialsJsonPath: /secrets/gcs-log-creds/gcp.json and confirm the volume mounts that exact file path, not just the directory. [[Storage values (Next)](https://docs.airbyte.com/platform/next/deploying-airbyte/integrations/storage#values)]. 2) If the chart still references the wrong secret name, apply the known workaround: - Add env var overrides for affected pods (worker and workload-launcher at minimum):
Copy code
extraEnv:   - name: CONTAINER_ORCHESTRATOR_SECRET_NAME     value: <your-secret-name>   - name: CONTAINER_ORCHESTRATOR_SECRET_MOUNT_PATH     value: /secrets/gcs-log-creds
This aligns the pods with your secret and mount path. [[Using GCS storage bug](https://github.com/airbytehq/airbyte/issues/48502); [issue thread sample values](https://github.com/airbytehq/airbyte/issues/44525)]. 3) Prefer storageSecretName over secretName: - Multiple reports indicate storageSecretName is the correct key for recent charts; secretName can lead to mismatches. [[workload-api-server inconsistency](https://github.com/airbytehq/airbyte/issues/44525)]. 4) Chart versions: - One user reports success on 1.1.1 with storageSecretName; others on 1.2.0 needed the env var workaround. Your 2.0.12 issue likely inherits similar template logic. If possible, try a version where the fix landed for workload-api-server consistency (see PR reference in the thread) or temporarily pin to 1.1.1/1.2.x with the env var workaround. [[workload-api-server inconsistency](https://github.com/airbytehq/airbyte/issues/44525); [Using GCS storage bug](https://github.com/airbytehq/airbyte/issues/48502)]. 5) Double-check the docs-aligned config: - V2-style example (using storageSecretName and credentialsJsonPath):
Copy code
global:   storage:     type: "GCS"     storageSecretName: airbyte-config-secrets     bucket:       log: <bucket>       state: <bucket>       workloadOutput: <bucket>     gcs:       projectId: <project-id>       credentialsJsonPath: /secrets/gcs-log-creds/gcp.json
Ensure your secret airbyte-config-secrets contains key gcp.json. [[External logging (Next)](https://docs.airbyte.com/platform/next/enterprise-setup/implementation-guide#configuring-external-logging); [Storage values (Next)](https://docs.airbyte.com/platform/next/deploying-airbyte/integrations/storage#values)]. Answers to your questions: 1) Known bugs? Yes—several known inconsistencies with GCS secret naming/mounting across components. [[Using GCS storage bug](https://github.com/airbytehq/airbyte/issues/48502); [workload-api-server inconsistency](https://github.com/airbytehq/airbyte/issues/44525)]. 2) Working versions? Reports of success on 1.1.1 with storageSecretName; 1.2.0 worked with env var overrides. The sources don’t confirm 2.0.12 specifically. [[workload-api-server inconsistency](https://github.com/airbytehq/airbyte/issues/44525); [Using GCS storage bug](https://github.com/airbytehq/airbyte/issues/48502)]. 3) Alternative configs? You can embed base64 credentials via global.storage.gcs.credentialsJson (chart creates release-name-gcs-log-creds), but then set CONTAINER_ORCHESTRATOR_SECRET_NAME to match, or explicitly create and use storageSecretName. [[Using GCS storage bug](https://github.com/airbytehq/airbyte/issues/48502); [issue thread sample values](https://github.com/airbytehq/airbyte/issues/44525)]. 4) Workarounds? Set CONTAINER_ORCHESTRATOR_SECRET_NAME (and optionally CONTAINER_ORCHESTRATOR_SECRET_MOUNT_PATH) via extraEnv to point worker/launcher at the correct secret and path; ensure the secret contains gcp.json and the path ends with gcp.json, not just the directory. [[Using GCS storage bug](https://github.com/airbytehq/airbyte/issues/48502)]. Limitations: The sources don’t list a definitive fix in chart v2.0.12; if the above doesn’t resolve it, consider opening an issue with your values and rendered manifests.
d
@kapa.ai Anything wrong in this values file for the Helm releasee?
Copy code
# Airbyte Helm Chart V2 Values
global:
  serviceAccount:
    create: false
    name: ${airbyte_ksa_name}

  airbyteUrl: "http://${airbyte_server_ip}:8001"

  auth:
    enabled: false

  # Chart V2 structured database configuration (Cloud SQL)
  database:
    type: external
    secretName: "airbyte-config-secrets"
    host: ${database_host}
    port: 5432
    name: ${database_name}
    userSecretKey: "database-user"
    passwordSecretKey: "database-password"

  # Chart V2 workloads configuration for connector jobs
  workloads:
    resources:
      requests:
        cpu: "100m"
        memory: "256Mi"
      limits:
        cpu: "1"
        memory: "2Gi"
    kube:
      nodeSelector:
        workload_type: "jobs"
      tolerations:
        - key: "workload"
          value: "jobs"
          effect: "NoSchedule"
          operator: "Equal"

  # Chart V2 storage configuration - Use LOCAL storage (filesystem)
  storage:
    type: "LOCAL"
    storageClassName: "standard-rwo"
    volumeSize: "200Gi"

# Server configuration
server:
  service:
    type: "LoadBalancer"
    loadBalancerSourceRanges: ${jsonencode(allowed_source_ranges)}
  
  # Production server resource configuration
  resources:
    requests:
      cpu: "500m"
      memory: "1Gi"
    limits:
      cpu: "2"
      memory: "4Gi"
  
  # Production probe timeouts (critical for 1.8.x startup)
  livenessProbe:
    initialDelaySeconds: 180
    timeoutSeconds: 30
  
  readinessProbe:
    initialDelaySeconds: 180
    timeoutSeconds: 30
  
  # Node pool assignment
  nodeSelector:
    workload_type: "static"

# Worker configuration
worker:
  replicaCount: 2
  maxSyncWorkers: 3
  maxCheckWorkers: 2
  
  # Production worker resources
  resources:
    requests:
      cpu: "500m"
      memory: "1Gi"
    limits:
      cpu: "2"
      memory: "4Gi"
  
  # Node pool assignment
  nodeSelector:
    workload_type: "static"

# Temporal configuration
temporal:
  nodeSelector:
    workload_type: "static"

# Workload launcher configuration (V2 key: workloadLauncher)
workloadLauncher:
  nodeSelector:
    workload_type: "static"

# Disable internal database and use external CloudSQL
postgresql:
  enabled: false

# Disable internal MinIO - using LOCAL storage instead
minio:
  enabled: false
k
A message from kapa.ai
Thanks for sharing your values. Two things stand out against the Chart V2 docs that could explain the GCS credentials/path issue and the “Is a directory” error you’re seeing: 1) You’ve configured LOCAL storage, not GCS Your values set global.storage.type: "LOCAL" and provide storageClassName/volumeSize, but no GCS block. If you intend to use GCS, switch to type GCS and provide the required GCS fields plus the secret reference and path to gcp.json. Example (V2 syntax):
Copy code
global:   storage:     type: GCS     storageSecretName: airbyte-config-secrets   # secret that contains key: gcp.json     bucket:       log: <bucket>       state: <bucket>       workloadOutput: <bucket>       activityPayload: <bucket>     gcs:       projectId: <project-id>       credentialsJsonPath: /secrets/gcs-log-creds/gcp.json
Docs show the V2 storage block and that the secret must contain a gcp.json key at the specified path. [[Next community upgrade](https://docs.airbyte.com/platform/next/deploying-airbyte/chart-v2-community#update-your-valuesyaml-file); [Next enterprise upgrade](https://docs.airbyte.com/platform/next/enterprise-setup/chart-v2-enterprise#update-your-valuesyaml-file)]. 2) Use the exact V2 keys for storage secret and path V2 examples use storage.secretName (or storageSecretName in some pages) plus gcs.credentialsJsonPath that points to a file, not just a directory. If the path resolves to a directory mount, Java will throw “Is a directory.” Ensure: - The secret named in storage.(storage)SecretName exists. - It contains key gcp.json. - credentialsJsonPath ends with /gcp.json. [[Next enterprise upgrade](https://docs.airbyte.com/platform/next/enterprise-setup/chart-v2-enterprise#update-your-valuesyaml-file); [Next community upgrade](https://docs.airbyte.com/platform/next/deploying-airbyte/chart-v2-community#update-your-valuesyaml-file)]. Your database and other sections look aligned with V2 (database.name instead of database.database, external Postgres with postgresql.enabled: false). [[Next enterprise implementation](https://docs.airbyte.com/platform/next/enterprise-setup/implementation-guide#configuring-the-airbyte-database); [External DB integration](https://docs.airbyte.com/platform/next/deploying-airbyte/integrations/database)]. Actionable changes if you want GCS: - Change global.storage.type from LOCAL to GCS. - Add the gcs block with projectId and credentialsJsonPath as above. - Point storageSecretName/secretName to the secret that has gcp.json. These match the V2 guidance for external log storage. [[Next enterprise upgrade](https://docs.airbyte.com/platform/next/enterprise-setup/chart-v2-enterprise#update-your-valuesyaml-file); [Next community upgrade](https://docs.airbyte.com/platform/next/deploying-airbyte/chart-v2-community#update-your-valuesyaml-file)]. If you truly want LOCAL storage, remove any GCS credential expectations from your environment, because the chart won’t mount gcs-log-creds when type=LOCAL. [[Next community upgrade](https://docs.airbyte.com/platform/next/deploying-airbyte/chart-v2-community#update-your-valuesyaml-file)].