Hi! Yesterday we got Java errors in our connectors...
# replication-troubleshooting
c
Hi! Yesterday we got Java errors in our connectors causing many jobs to crash. Today I restarted and upgraded our Airbyte instance using abctl local install --secret --values. It is now upgraded to 1.8.1. I got an error but the Airbyte service got activated, only the UI couldn't be reached, I needed to update abctl to the latest version. It's now done. I noticed the EC2 instance reaches 92% of storage capacity. Note that we are using an external RDS database. When I want to re install Airbyte using abctl local install --secret --values, i get this error that looks like a postgres issue:
Copy code
failed to determine if any previous psql version exists: error reading pgdata version file: open /home/ec2-user/.airbyte/abctl/data/airbyte-volume-db/pgdata/PG_VERSION: permission denied
Do you think extending temporarily the storage of the eC2 instance to 400Go would work ?
k
Short answer: increasing EC2 disk space alone is unlikely to fix this specific error. The message indicates a filesystem permission problem on the local abctl Postgres data directory, not just lack of space: failed to determine if any previous psql version exists: error reading pgdata version file: open /home/ec2-user/.airbyte/abctl/data/airbyte-volume-db/pgdata/PG_VERSION: permission denied Similar abctl installs have failed due to filesystem permission/ownership issues on the Postgres data dir and MinIO storage; resolving involved clearing/recreating the local abctl data or fixing permissions, not only adding disk. Users have fixed comparable errors by: - Removing abctl’s local data and reinstalling: - rm -rf ~/.airbyte/abctl/data then run abctl local install again; or abctl local uninstall --persisted before reinstall (this cleared stuck state and permissions issues) ([Migration schema error fix](https://github.com/airbytehq/airbyte/issues/58864)). - Addressing permission errors like “wrong ownership” and “Permission denied” on /var/lib/postgresql/data/pgdata and MinIO /storage by ensuring the underlying volume/path is writable by the container; these manifest as DB connection failures during bootloader/helm install and require fixing host volume permissions, not just more space ([abctl install fails with postgres permissions error](https://github.com/airbytehq/airbyte/issues/41063), [failure to connect to airbyte-db postgresql](https://github.com/airbytehq/airbyte/issues/54199), [Colima permission issues](https://github.com/airbytehq/airbyte/issues/54995), [Windows storage perms](https://github.com/airbytehq/airbyte/issues/40641)). Given you use external RDS for Airbyte metadata, the local Postgres persistent volume is still created by abctl for the control plane chart unless configured otherwise. The error references the local PG data path under ~/.airbyte/abctl/data. Recommended steps: 1) Free or expand disk to avoid general failures (92% full can cause cascading issues), but also fix the permission issue. 2) Stop Airbyte: abctl local uninstall (consider --persisted if you want to fully reset local state). 3) Remove the local data dir: rm -rf ~/.airbyte/abctl/data (this is commonly required after partial/failed installs) ([Migration schema error fix](https://github.com/airbytehq/airbyte/issues/58864)). 4) Re-run abctl local install --secret --values. 5) If you still hit permission errors, ensure the ~/.airbyte/abctl directory is accessible by your user and Docker (e.g., sudo chmod -R 755 ~/.airbyte/abctl), as some users needed to adjust perms on that path on EC2 before install succeeded ([abctl cycling/EC2 note](https://github.com/airbytehq/airbyte/issues/41992)). 6) If using ARM instances, ensure docker platform/arch is correct per your environment; resource/instance reboots have also helped some users with abctl install issues ([local install failing, EC2 reboot/resize helped](https://github.com/airbytehq/airbyte/issues/44931), [EC2 reboot helped](https://github.com/airbytehq/airbyte/issues/41992)). If after clearing ~/.airbyte/abctl/data you still see PG_VERSION permission denied, it’s almost certainly a host filesystem permission mapping problem on that path; fix ownership/permissions or recreate the directory and try again.
c
@kapa.ai With these steps: (2) Stop Airbyte: abctl local uninstall (consider --persisted if you want to fully reset local state). 3) Remove the local data dir: rm -rf ~/.airbyte/abctl/data (this is commonly required after partial/failed installs) (Migration schema error fix).)
How likely it is that I will loose all my airbyte connections data ?
k
A message from kapa.ai
- abctl local uninstall (without --persisted) stops Airbyte but preserves data. Docs state uninstall “will not” remove data so you can reinstall later with data preserved (both “Deploying Airbyte > abctl” and Quickstart pages) ([Full reference](https://docs.airbyte.com/platform/deploying-airbyte/abctl#reference); [Quickstart](https://docs.airbyte.com/platform/using-airbyte/getting-started/oss-quickstart#uninstall-airbyte)). - Removing ~/.airbyte/abctl/data will delete local abctl-managed volumes/state. That is intended for a clean reset and is likely to remove locally persisted resources (e.g., local Postgres/MinIO data) used by abctl, as shown in the “Resetting the developer environment” guides which pair uninstall --persisted with rm -rf ~/.airbyte (a full wipe) ([Resetting env](https://docs.airbyte.com/platform/contributing-to-airbyte/developing-locally#resetting-the-airbyte-developer-environment)). A user fixed install issues by removing that directory; it implies data there is not preserved ([GitHub issue](https://github.com/airbytehq/airbyte/issues/58864)). Given you use an external RDS for metadata, your connection definitions should live in RDS. Deleting ~/.airbyte/abctl/data would primarily affect local abctl volumes (not RDS), but the knowledge sources do not explicitly guarantee safety for every customization. If you want zero risk to connection configs, avoid rm -rf ~/.airbyte/abctl/data and do not use --persisted. If you do need a clean reset, back up first, or verify that your deployment is indeed pointed at RDS for all metadata before deleting local data (the docs don’t provide a definitive guarantee here).
c
@kapa.ai So, I managed to fix the permission denied issue with chmod command. Thank you. Now I have another problem while installing airbyte using abctl. 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 pre-install: 1 error occurred: * pod airbyte-abctl-bootloader failed
k
A message from kapa.ai
This error means the airbyte-bootloader pod failed during Helm’s pre-install hook. The docs note this is commonly due to the bootloader not being able to connect to airbyte-db or failing its initialization checks; abctl >0.15.0 prints bootloader logs to help pinpoint the cause ([Troubleshooting abctl](https://docs.airbyte.com/platform/deploying-airbyte/troubleshoot-deploy)). Please fetch the bootloader logs to see the exact failure: - If using the abctl-kind cluster: - docker exec -it airbyte-abctl-control-plane kubectl -n airbyte-abctl logs airbyte-abctl-airbyte-bootloader ([tip to inspect bootloader logs](https://github.com/airbytehq/airbyte/issues/44928)). Common next checks based on similar reports: - Verify airbyte-db and minio pods are Running and not in BackOff, and inspect their logs for permission/ownership issues (frequent cause after host permission fixes) ([Windows/WSL permissions](https://github.com/airbytehq/airbyte/issues/40641), [Postgres wrong ownership](https://github.com/airbytehq/airbyte/issues/41063), [Colima perms](https://github.com/airbytehq/airbyte/issues/54995)). - If you’re on Apple M4, there is an open issue where the bootloader fails; maintainers suspect a JVM issue on M4. If applicable, please note this and follow the thread for updates ([abctl bootloader failed on M4](https://github.com/airbytehq/airbyte/issues/50429), [discussion](https://github.com/airbytehq/airbyte/discussions/45458)). If the bootloader log shows migration/initialization failures, re-running with --verbose helps surface the precise error string so we can advise the exact fix ([Troubleshooting abctl](https://docs.airbyte.com/platform/deploying-airbyte/troubleshoot-deploy)).
c
@kapa.ai could the problem be due to the fact that I used chmod in the folder ?
k
A message from kapa.ai
Possibly yes. Several abctl install failures are caused by filesystem ownership/permissions on the Postgres and MinIO data paths. If chmod changed modes without fixing ownership to what Postgres expects, the bootloader can still fail because it cannot connect to a healthy airbyte-db (e.g., “wrong ownership” or “invalid permissions” on pgdata causes DB to crash-loop, then bootloader pre-install hook fails) ([abctl install fails with postgres permissions error](https://github.com/airbytehq/airbyte/issues/41063), [failure to connect to airbyte-db postgresql](https://github.com/airbytehq/airbyte/issues/54199), [Colima permission issues](https://github.com/airbytehq/airbyte/issues/54995), [Windows storage perms](https://github.com/airbytehq/airbyte/issues/40641), [Troubleshooting abctl](https://docs.airbyte.com/platform/deploying-airbyte/troubleshoot-deploy)). What to check next: - Ensure airbyte-db and minio pods are Running; if not, inspect their logs for “wrong ownership/invalid permissions” messages. The bootloader error is often secondary to DB not starting ([Troubleshooting abctl](https://docs.airbyte.com/platform/deploying-airbyte/troubleshoot-deploy)). - If logs show pgdata permission/ownership errors, correct both permissions and ownership on the abctl data dirs (the specific required owner UID/GID isn’t documented in these sources, but the errors explicitly cite “wrong ownership/invalid permissions”). - Re-run abctl with --verbose and read the bootloader logs to confirm it’s failing while waiting for DB connectivity ([Troubleshooting abctl](https://docs.airbyte.com/platform/deploying-airbyte/troubleshoot-deploy)).
c
@kapa.ai actually, when looking into the logs of the bootloader, looks like the external database is not ready:
Copy code
ERROR   i.m.m.h.i.HealthResult$Builder(exception):123 - Health indicator [<host_of_db>:5432/db-airbyte] reported exception: java.sql.SQLTransientConnectionException: HikariPool-1 - Connection is not available, request timed out after 30000ms (total=0, active=0, idle=0, waiting=1)

java.sql.SQLTransientConnectionException: HikariPool-1 - Connection is not available, request timed out after 30000ms (total=0, active=0, idle=0, waiting=1)
Is it possible that upgrading abctl to last version caused issues in the values and secret config files for connecting to the external db?
k
A message from kapa.ai
It’s possible, but not certain. Similar “HikariPool… timed out” bootloader failures usually mean Airbyte can’t reach or authenticate to the external Postgres (networking, DNS/hostname, security groups/ACLs, or wrong creds), not that abctl itself broke the values. In past Helm/abctl cases the fix was to verify that: - The bootloader pod env resolves to the intended external DB host/port/user/db and pulls DATABASE_USER/PASSWORD from the expected Secret (e.g., airbyte-config-secrets) (users validated this via kubectl describe pod; misconfig or missing secret caused timeouts) ([helm external RDS notes](https://github.com/airbytehq/airbyte/issues/48854)). - Security group/firewall allows connections from the cluster to RDS; connection timeouts were resolved by adjusting SG rules even when env vars looked correct ([RDS SG fix example](https://github.com/airbytehq/airbyte/issues/48854)). - The database exists and is reachable; some installs failed with db “does not exist” until it was created manually (for local PG), which presents similarly in bootloader logs ([db-airbyte missing example](https://github.com/airbytehq/airbyte/issues/45456)). Also note on Helm chart values: older keys like externalDatabase were deprecated in favor of global.database; mismatched values can cause the bootloader to point to the wrong DB. One user observed externalDatabase values not used by templates and had to switch to global.database.* for the DB settings (and ensure type is set correctly), otherwise services targeted the wrong host/db name ([chart values note](https://github.com/airbytehq/airbyte/issues/43328)). If your upgrade changed chart version, double-check you’re using the current keys and that your Secret name/keys match what the chart expects. What to do next: - kubectl describe the bootloader to confirm DATABASE_HOST/PORT/DB and that DATABASE_USER/PASSWORD are sourced from your Secret; correct if mismatched (as shown in the RDS thread) ([env/secret check example](https://github.com/airbytehq/airbyte/issues/48854)). - Verify RDS ingress (SG/NACL) and that the db “db-airbyte” exists and credentials are valid (timeouts and auth failures are common root causes) ([RDS connectivity timeout example](https://discuss.airbyte.io/t/1264)). - If you were using externalDatabase.* values, migrate to global.database.* per current chart behavior, and ensure the chart’s database.type aligns with external usage (users reported confusion here) ([values change context](https://github.com/airbytehq/airbyte/issues/43328)).
c
@kapa.ai here is what I get when launching the install using --verbose
Copy code
DEBUG   helm: Pod airbyte-abctl-bootloader running
                                                                                                                      DEBUG   helm: Add/Modify event for airbyte-abctl-bootloader: MODIFIED
                                                                                                                      DEBUG   helm: Pod airbyte-abctl-bootloader running
                                                                                                                      DEBUG   helm: Add/Modify event for airbyte-abctl-bootloader: MODIFIED
                                                                                                                      DEBUG   helm: warning: Upgrade "airbyte-abctl" failed: pre-upgrade hooks failed: 1 error occurred:
                * pod airbyte-abctl-bootloader failed
                                                                                                                      DEBUG   helm: release upgrade failed: pre-upgrade hooks failed: 1 error occurred:
                * pod airbyte-abctl-bootloader failed
                                                                                                                      ERROR   Failed to install airbyte/airbyte Helm Chart
                                                                                                                      DEBUG   looking at airbyte-abctl-bootloader
            Failed()
                                                                                                                      DEBUG   found logs:  Unsetting empty environment variable 'AB_INSTANCE_
                                                                                                                      DEBUG   looking at airbyte-minio-0
            Running()
                                                                                                                      DEBUG   found logs:  MinIO Object Storage Server
          Copyright: 2015-2023 M
                                                                                                                      ERROR   Unable to install Airbyte locally
  DEBUG   Received unexpected event: *v1.Status
  DEBUG   Event watcher completed.
  ERROR   unable to install airbyte chart: unable to install helm: pre-upgrade hooks failed: 1 error occurred:
                * pod airbyte-abctl-bootloader failed
k
A message from kapa.ai
Thanks for the verbose output. That pattern (“pod …-bootloader failed” with only “Unsetting empty environment variable 'AB_INSTANCE_” in the scraped logs) is consistent with the generic bootloader pre-install failure noted in the troubleshooting guide, which usually means the bootloader can’t complete its initialization checks (most commonly, cannot reach the database) rather than a Helm bug by itself (see “Airbyte Bootloader failed to start”) ([Troubleshooting abctl](https://docs.airbyte.com/platform/deploying-airbyte/troubleshoot-deploy)). Given your earlier bootloader logs showed Hikari timeouts to your external Postgres, focus on verifying external DB connectivity from inside the cluster: - Ensure the DB host/port/db/user are correctly injected into the bootloader pod (kubectl describe the bootloader and check env sourced from your Secret/values) and match the chart keys you’re using for external DB. Mismatched or missing values commonly lead to these timeouts ([Troubleshooting abctl](https://docs.airbyte.com/platform/deploying-airbyte/troubleshoot-deploy)). - Confirm the DB is reachable from the cluster (security group/firewall/NACL allow 5432 from the kind/k8s nodes) and the target database exists and accepts your credentials. Similar cases report bootloader failing until DB connectivity/auth were fixed ([Troubleshooting abctl](https://docs.airbyte.com/platform/deploying-airbyte/troubleshoot-deploy)). Next step to pinpoint: fetch full bootloader logs (abctl >0.15 prints them) and check for explicit DB connection errors; the guide calls this out as the typical root cause for this exact error ([Troubleshooting abctl](https://docs.airbyte.com/platform/deploying-airbyte/troubleshoot-deploy)).
c
@kapa.ai with airbyte 1.8.1 and latest version of abctl, what should be the formatting of the secrets.yaml and values.yaml if I have an external database
k
A message from kapa.ai
New message text here
c
The issue was this : - If you are on older Helm chart V1, the key is database (not name). For 1.8.1 with latest abctl, use the V2 format above (Next/Current docs show V1 vs V2 side-by-side). Since I recently updated abctl, I had to change database.database into database.name in the values.yaml
l
@kapa.ai is there a chance that this last message is the solution to this:
Copy code
failed to determine if any previous psql version exists: error reading pgdata version file: open /home/ssm-user/.airbyte/abctl/data/airbyte-volume-db/pgdata/PG_VERSION: permission denied
for my case trying to upgrade from v1.6.0-v1.7.0 using abctl version v0.30.1 ?
k
A message from kapa.ai
Possibly related, but not a confirmed “solution.” - The error you’re seeing points to a filesystem permission problem on the local abctl Postgres data path (pgdata/PG_VERSION “permission denied”), which matches several reports where abctl installs failed due to wrong ownership/permissions on the Postgres volume and/or MinIO storage. Those cases were resolved by fixing permissions/ownership or clearing the local abctl data, not by changing DB values for external Postgres ([abctl install fails with postgres permissions error](https://github.com/airbytehq/airbyte/issues/41063), [Colima permission issues](https://github.com/airbytehq/airbyte/issues/54995), [Windows storage perms](https://github.com/airbytehq/airbyte/issues/40641)). - In contrast, the “external DB” configuration/values guidance addresses Hikari/connection timeouts (can’t reach/auth to RDS), which is a different failure mode from “permission denied” reading a local PG_VERSION file. There’s no indication in the sources that switching to the new values format alone fixes local filesystem permission errors. The recommended fixes for permission issues were: ensure the directory is writable by the container, or remove the local abctl data dir and reinstall (users confirmed rm -rf ~/.airbyte/abctl/data followed by reinstall resolved similar states) ([Colima permission logs](https://github.com/airbytehq/airbyte/issues/54995), [Windows storage perms](https://github.com/airbytehq/airbyte/issues/40641)). So, for your upgrade from 1.6.0→1.7.0 on abctl v0.30.1: - Fix the local data path permissions/ownership (or clear ~/.airbyte/abctl/data and reinstall) to address the PG_VERSION “permission denied” issue. Then verify external DB connectivity separately if you hit Hikari timeouts afterward ([abctl postgres perms errors](https://github.com/airbytehq/airbyte/issues/41063), [Colima perms](https://github.com/airbytehq/airbyte/issues/54995)).
l
Hi @Camille Lemaitre I am trying to find a reliable solution to this issue when upgrading from v1.6.0 to v1.7.0, which I see you and many community members have had:
Copy code
failed to determine if any previous psql version exists: error reading pgdata version file: open /home/ssm-user/.airbyte/abctl/data/airbyte-volume-db/pgdata/PG_VERSION: permission denied
Our Environment: • current version 1.6.0 • self-managed community • running on an EC2 instance (t3a.xlarge) • running abctl v0.30.1 Did you ever manage to find a viable solution that you could possibly share the step by step process? 🙏 *please @ me in the your response so I get a notification
c
Hi @loganeales, you need to go up a bit in the thread, I resolved the problem of permissions using this answer:
5) If you still hit permission errors, ensure the ~/.airbyte/abctl directory is accessible by your user and Docker (e.g., sudo chmod -R 755 ~/.airbyte/abctl), as some users needed to adjust perms on that path on EC2 before install succeeded (abctl cycling/EC2 note).