<@U04S8PLJWMT> I am trying to upgrade my airbyte v...
# ask-ai
e
@kapa.ai I am trying to upgrade my airbyte version. Running
abctl local install
gives me this error:
Copy code
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.
k
The error message you are seeing:
Copy code
FATAL:  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!
e
@kapa.ai can you provide step by step instructions to upgrade the PostgresSQL version?
k
A message from kapa.ai
I'm sorry, but the knowledge sources provided do not contain step-by-step instructions for upgrading the PostgreSQL version used by Airbyte, nor do they describe the official process for migrating Airbyte's internal database between major PostgreSQL versions. What is clear from the sources is: - Airbyte does not automatically migrate or upgrade the internal database when you change the underlying PostgreSQL version. If you attempt to use a data directory from an older PostgreSQL version (e.g., 13) with a newer server (e.g., 17), you will encounter compatibility errors, as you have seen. - You are responsible for backing up and restoring your Airbyte database if you change the database version or move to an external database. Manual intervention is required for such migrations, and there is no built-in Airbyte feature to automate this process at this time [Connecting to an External Postgres database](https://discuss.airbyte.io/t/2903), [How to import/export Airbyte to a new instance](https://discuss.airbyte.io/t/3514). Summary: The knowledge sources do not provide official, step-by-step instructions for upgrading the PostgreSQL version for Airbyte. If you need to perform this upgrade, you would typically need to use standard PostgreSQL tools (such as `pg_dump`/`pg_restore` or
pg_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.
e
@kapa.ai when did airbyte start using PostgresSQL version 17.5?
k
A message from kapa.ai
I'm sorry, but the knowledge sources do not specify exactly when Airbyte started using PostgreSQL version 17.5 as the default or supported version. The available information confirms that Airbyte has tested and works with PostgreSQL 17.1 and later, and there are discussions about upgrading from older versions (such as 13) to newer ones, including version 17. However, there is no explicit mention of the adoption date or release version for PostgreSQL 17.5 in Airbyte's official documentation or release notes provided here [Minimal Postgres Version Supported as External Database](https://github.com/airbytehq/airbyte/issues/48542), [Upgrade default Postgres version](https://github.com/airbytehq/airbyte/issues/50947). If you need the exact version or date when PostgreSQL 17.5 became the default, you may need to consult Airbyte's official changelogs or GitHub repository for more detailed release information.