Open mattimoller opened 1 year ago
Did you figure this out? I'm having the same error, but when upgrading FROM v0.42
Update: I'm not really sure what I did to get it working, but after trying many different versions and killing some containers it eventually worked.
Same issue here and couldn't find a way to fix it..
Same issue, different underlying error in the container:
Caused by: org.postgresql.util.PSQLException: ERROR: operator does not exist: character varying = non_breaking_change_preference_type
airbyte-bootloader | Hint: No operator matches the given name and argument types. You might need to add explicit type casts.
Were you able to figure out how to fix this? I am currently having the same challenge and not so experienced with airbyte to know what to troubleshoot
Here's a seciton of the logs in my console
airbyte-db | 2024-05-24 16:53:17.009 UTC [95] ERROR: operator does not exist: character varying = non_breaking_change_preference_type at character 64
airbyte-db | 2024-05-24 16:53:17.009 UTC [95] HINT: No operator matches the given name and argument types. You might need to add explicit type casts.
airbyte-db | 2024-05-24 16:53:17.009 UTC [95] STATEMENT: select id from connection where non_breaking_change_preference = cast($1 as "non_breaking_change_preference_type")
airbyte-bootloader | 2024-05-24 16:53:17 ERROR o.f.c.i.l.s.Slf4jLog(error):45 - Migration of schema "public" to version "0.44.4.002 - MigrateNonBreakingChangeToEnum" failed! Changes successfully rolled back.
I had the same issue trying to upgrade from version 0.42 to 0.59. Simply deleting the bootloader container (docker rm) and re-running docker compose up resolved the issue. Hope this helps!
in my case, I attempted a fresh installation from the latest master branch. The failing migration is from 0.44.4.001 ->0.44.4.002 as shown below:
airbyte-bootloader | 2024-06-11 16:00:05 INFO o.f.c.i.l.s.Slf4jLog(info):37 - Current version of schema "public": 0.44.4.001 airbyte-bootloader | 2024-06-11 16:00:05 INFO o.f.c.i.l.s.Slf4jLog(info):37 - Migrating schema "public" to version "0.44.4.002 - MigrateNonBreakingChangeToEnum" airbyte-db | 2024-06-11 16:00:05.807 UTC [79] ERROR: operator does not exist: character varying = non_breaking_change_preference_type at character 64
I found a workaround. Connect to postgres and run:
alter table connection
rename column non_breaking_change_preference to non_breaking_change_preference_bak;
alter table connection
add column non_breaking_change_preference non_breaking_change_preference_type default 'ignore';
non_breaking_change_preference_bak column can be removed afterwards. But seems to cause an issue on the UI:
Uodate.: This could be solved by dropping the column afterwards as airbyte uses a "select connection.*" operator
Environment
Current Behavior
When upgrading airbyte from 0.40.28 -> 0.42.0 the bootloader fails on docker compose up with error message "service "bootloader" didn't complete successfully: exit 255"
The bootloader logs show the following error: resource DATABASE_PORT=5432 not found.
Expected Behavior
Airbyte should start as expected on docker compose up command with new version
Logs
The bootloader logs from
docker compose logs -f bootloader
are attachedSteps to Reproduce
Are you willing to submit a PR?
Yes