Eu Shaun Lim
08/22/2025, 12:57 AMabctl local install gives me this error:
WARNING Encountered an issue deploying Airbyte:
Pod: airbyte-db-0.185df09f708e69b7
Reason: BackOff
Message: Back-off restarting failed container airbyte-db-container in pod airbyte-db-0_airbyte-abctl(3b170fa0-57db-49d7-87fd-509521a8c888)
Count: 6
Logs: PostgreSQL Database directory appears to contain a database; Skipping initialization
2025-08-22 00:53:54.219 UTC [16] FATAL: database files are incompatible with server
2025-08-22 00:53:54.219 UTC [16] DETAIL: The data directory was initialized by PostgreSQL version 13, which is not compatible with this version 17.5.kapa.ai
08/22/2025, 12:58 AMFATAL: database files are incompatible with server DETAIL: The data directory was initialized by PostgreSQL version 13, which is not compatible with this version 17.5. indicates that your existing Airbyte PostgreSQL data directory was created with PostgreSQL 13, but the new Airbyte deployment is trying to use PostgreSQL 17.5. PostgreSQL does not support running a newer server version on a data directory created by an older version without a proper upgrade/migration of the database files. What this means for your upgrade: - Airbyte's upgrade process does not automatically handle major PostgreSQL version upgrades or migrations of the underlying database files. - If you attempt to start a newer PostgreSQL container (v17.5) with an old data directory (v13), you will get this incompatibility error. How to resolve: - You need to either: 1. Migrate your PostgreSQL data from v13 to v17.5 using a tool like pg_upgrade or by dumping and restoring your database (using pg_dump and pg_restore). 2. Remove the old data directory if you do not need to preserve your existing Airbyte data (this will result in data loss). Relevant context from knowledge sources: - Similar issues have been reported when the data directory permissions or ownership are incorrect, or when the database is not accessible, but your specific error is about version incompatibility, which is a different class of problem. The knowledge sources do not provide a step-by-step guide for handling a PostgreSQL major version upgrade within Airbyte, but they do confirm that database initialization and compatibility are critical for successful upgrades and installations [abctl install fails with postgres permissions error](https://github.com/airbytehq/airbyte/issues/41063). Recommendation: - If you need to preserve your data, perform a database migration outside of Airbyte before running abctl local install again. - If you are okay with starting fresh, delete the existing PostgreSQL data directory used by Airbyte and re-run the installation. If you need more detailed steps for migrating your PostgreSQL data, please let me know!Eu Shaun Lim
08/22/2025, 1:01 AMkapa.ai
08/22/2025, 1:01 AMkapa.ai
08/22/2025, 1:01 AMpg_upgrade), but these steps are not documented in the Airbyte documentation provided here. If you need further assistance, I recommend consulting the official PostgreSQL documentation for upgrading between major versions, or seeking guidance from the Airbyte community for any Airbyte-specific considerations.Eu Shaun Lim
08/22/2025, 1:05 AMkapa.ai
08/22/2025, 1:05 AMkapa.ai
08/22/2025, 1:05 AM