sp33dy
11/04/2025, 2:46 PM2025-11-04 14:43:45,785 [main] ERROR i.a.b.ApplicationKt(main):28 - Unable to bootstrap Airbyte environment.
org.jooq.exception.DataAccessException]; ERROR: type "job_status" already existskapa.ai
11/04/2025, 2:47 PMorg.jooq.exception.DataAccessException]; ERROR: type "job_status" already exists indicates that the Airbyte bootloader is attempting to create a PostgreSQL enum type (job_status) that already exists in your external database. This typically happens if you have dropped only the tables but not the custom types or other schema objects in your database. Key points from the knowledge sources: - The Airbyte database schema includes custom enum types such as job_status, job_config_type, etc. These are not dropped when you only drop tables; you must also drop these types if you want a truly clean slate for a fresh install. - The official upgrade and restore instructions recommend dropping and recreating the entire public schema to ensure all objects (tables, types, etc.) are removed before restoring or redeploying Airbyte. For example: sh kubectl exec -n airbyte -it airbyte-db-0 -- bash -c "psql -U airbyte -d db-airbyte -c 'DROP SCHEMA public CASCADE; CREATE SCHEMA public;'" This command drops the entire schema, including all tables, types, and other objects, and then recreates it, ensuring a clean environment for Airbyte to initialize properly [How to upgrade](https://docs.airbyte.com/platform/1.8/deploying-airbyte/chart-v2-community#how-to-upgrade), [Deploy Airbyte](https://docs.airbyte.com/platform/1.8/deploying-airbyte/chart-v2-community#deploy-airbyte). What you should do: - Instead of dropping only the tables, drop and recreate the entire schema as shown above. This will remove the job_status type and any other leftover objects, allowing Airbyte to bootstrap the environment without conflicts. Summary: Drop and recreate the schema (not just tables) in your external database before deploying Airbyte Helm chart v2. This will resolve the "type already exists" error and allow a clean deployment. If you need the exact command, here it is again: sh psql -U <user> -d <database> -c 'DROP SCHEMA public CASCADE; CREATE SCHEMA public;' Replace <user> and <database> with your actual database credentials. For more details, see the official documentation on upgrading and restoring Airbyte with Helm chart V2 [here](https://docs.airbyte.com/platform/1.8/deploying-airbyte/chart-v2-community#how-to-upgrade).