<@U04S8PLJWMT> I am trying to upgrade helmfile ver...
# ask-ai
a
@kapa.ai I am trying to upgrade helmfile version from 1.7.1 to 1.8.1 introducing an external ingress with spec as defined in the ingress doc:
Copy code
spec:                                                                                                                                                                                                                                                        
  rules:                                                                                                                                                                                                                                                     
  - host: localhost                                                                                                                                                                                           
   http:                                                                                                                                                                                                                                                    
     paths:                                                                                                                                                                                                                                                 
     - backend:                                                                                                                                                                                                                                             
         service:                                                                                                                                                                                                                                           
           name: localhost                                                                                                                                                                                            
           port:                                                                                                                                                                                                                                            
             number: 80                                                                                                                                                                                                                                     
       path: /api/v1/connector_builder                                                                                                                                                                                                                      
       pathType: Prefix                                                                                                                                                                                                                                     
     - backend:                                                                                                                                                                                                                                             
         service:                                                                                                                                                                                                                                           
           name: airbyte-airbyte-server-svc                                                                                                                                                                                                                 
           port:                                                                                                                                                                                                                                            
             number: 8001                                                                                                                                                                                                                                   
       path: /                                                                                                                                                                                                                                              
       pathType: Prefix                                                                                                                                                                                                                                     
 status:                                                                                                                                                                                                                                                      
 loadBalancer: {}
In the bootloader pod I see the following error
Error executing PERSIST: ERROR: duplicate key value violates unique constraint "pk_connector_rollout"
. The service is on EKS and I am on the OSS version of airbyte. Any ideas on how to fix this
k
The error you're encountering,
ERROR: duplicate key value violates unique constraint "pk_connector_rollout"
, is a known issue when upgrading Airbyte to versions 1.8.0/1.8.1, especially when migrating to the new Helm v2 chart. This error indicates that there is already a record in the
connector_rollout
table with the same primary key (
id
), and the upgrade process is attempting to insert a duplicate entry. This issue has been reported by other users during upgrades, particularly when moving from a working v1.8.x release with the v1 chart to the v2 Helm chart. The error is not related to your ingress configuration, but rather to the database migration or initialization logic during the upgrade process. The logs and issue reports do not provide a direct fix, but confirm that this is a known problem during upgrades in this version range [1.8.0/1.8.1: duplicate key value violates unique constraint "pk_connector_rollout"](https://github.com/airbytehq/airbyte/issues/65134). What you can do: - Double-check that your database is not being initialized from scratch or with conflicting data during the upgrade. - Review the upgrade and migration steps to ensure that the database schema and data are consistent before and after the upgrade. - If you have a backup, you may need to restore your database to a consistent state before retrying the upgrade. - Monitor the GitHub issue above for any official patches or recommended migration steps from the Airbyte team. Note: The ingress configuration you provided is correct for Airbyte 1.7+ and should not be the cause of this database error. The root cause is at the database level, not the ingress or service routing level. If you need more detailed troubleshooting steps, you may need to provide additional logs or context, or follow up on the referenced GitHub issue for updates from the Airbyte maintainers. At this time, the knowledge sources do not provide a step-by-step resolution for this specific database constraint violation during upgrade, but confirm it is a recognized issue in the community and with the Airbyte team [1.8.0/1.8.1: duplicate key value violates unique constraint "pk_connector_rollout"](https://github.com/airbytehq/airbyte/issues/65134).
A message from kapa.ai
The error you're seeing,
ERROR: duplicate key value violates unique constraint "pk_connector_rollout"
, is a known issue when upgrading Airbyte to versions 1.8.0/1.8.1, especially when moving to the new Helm v2 chart. This error is related to the database migration process, not your ingress configuration. It means that during the upgrade, Airbyte is trying to insert a record into the
connector_rollout
table with an
id
that already exists, violating the primary key constraint. This has been reported by other users during upgrades, particularly when switching chart versions or migrating databases [1.8.0/1.8.1: duplicate key value violates unique constraint "pk_connector_rollout"](https://github.com/airbytehq/airbyte/issues/65134). Key points: - Your ingress spec looks mostly correct, but note that the service name for the connector builder should be
airbyte-airbyte-connector-builder-server-svc
, not
localhost
. Using
localhost
as a service name will not work in Kubernetes. - The database error is not caused by ingress misconfiguration, but by a conflict in the
connector_rollout
table during the upgrade process. What you can do: - Ensure your database is not being re-initialized or seeded with conflicting data during the upgrade. - Double-check that you are not running any jobs or scripts that might insert duplicate rollout records. - If you have a database backup, consider restoring it to a consistent state before retrying the upgrade. - Monitor the referenced GitHub issue for any updates or official migration guidance from the Airbyte team. Summary: The root cause is a database constraint violation during upgrade, not an ingress issue. The knowledge sources do not provide a direct fix, but confirm this is a known problem during upgrades in this version range. You may need to coordinate with your DBA or follow up on the GitHub issue for further resolution steps [1.8.0/1.8.1: duplicate key value violates unique constraint "pk_connector_rollout"](https://github.com/airbytehq/airbyte/issues/65134). If you need to fix your ingress, update the service name for the connector builder path as follows:
Copy code
yaml - backend:     service:       name: airbyte-airbyte-connector-builder-server-svc       port:         number: 80   path: /api/v1/connector_builder   pathType: Prefix
But this will not resolve the database error; it only ensures correct routing for the connector builder API [Update ingress for version 1.7 and later](https://docs.airbyte.com/platform/deploying-airbyte/integrations/ingress-1-7).
a
@kapa.ai Additionally info I am using an external database is on RDS. The config is still using helm v1. The webapp is removed to use the server and I see a white screen when I try to access airbyte
k
A message from kapa.ai
Thank you for the additional context. Here’s what is clear from the knowledge sources: 1. White Screen After Upgrade: The white screen is likely due to the removal of the
webapp
in Airbyte 1.8.x. The UI is now served by the
server
service, not a separate
webapp
service. If your ingress or service routing is still pointing to the old
webapp
, or if your Helm values are not updated to reflect this change, the UI will not load properly and may show a blank page. You must update your ingress to route UI traffic to the
server
service instead of the removed
webapp
 [Update ingress for version 1.7 and later](https://docs.airbyte.com/platform/deploying-airbyte/integrations/ingress-1-7). 2. Helm v1 Chart with Airbyte 1.8.x: The knowledge sources and GitHub issues indicate that using the Helm v1 chart with Airbyte 1.8.x can cause issues, especially since the chart may still reference the
webapp
service, which no longer exists in 1.8.x. Users have reported that the v1 chart does not provide a migration path for ingress and UI access after the webapp removal, and you may need to manually create or update your ingress resources to point to the
server
service [[helm] Missing ingress resource after chart 1.8 disables webapp section](https://github.com/airbytehq/airbyte/issues/64941). 3. External Database (RDS): The duplicate key error in the
connector_rollout
table is a database-level issue and is not directly related to your ingress or UI configuration. This error has been reported by others during upgrades and is not specific to using RDS, but rather to the upgrade process and how the database migrations are handled [1.8.0/1.8.1: duplicate key value violates unique constraint "pk_connector_rollout"](https://github.com/airbytehq/airbyte/issues/65134). What you should do: - Update your ingress to route all UI and API traffic to the
server
service, not
webapp
. - Consider upgrading to the Helm v2 chart if possible, as the v1 chart is not designed for Airbyte 1.8.x and above, and does not handle the webapp removal gracefully. - Check your database migrations and ensure there are no duplicate entries in the
connector_rollout
table before retrying the upgrade. Summary: The white screen is due to the webapp removal and likely incorrect ingress or Helm chart configuration. The database error is a separate known issue during upgrades. The knowledge sources do not provide a direct fix for the database error, but confirm these are recognized upgrade challenges in this version range. If you need more specific migration steps, you may need to follow up on the referenced GitHub issues or wait for further guidance from the Airbyte team.
a
@kapa.ai The bootloader completed the setup with this error
Error executing PERSIST: ERROR: duplicate key value violates unique constraint "pk_connector_rollout"
is this expected
k
A message from kapa.ai
No, it is not expected for the bootloader to complete setup with the error
Error executing PERSIST: ERROR: duplicate key value violates unique constraint "pk_connector_rollout"
. This error indicates that during the upgrade or initialization process, Airbyte attempted to insert a record into the
connector_rollout
table with an
id
that already exists, violating the primary key constraint. This is a known issue reported by other users when upgrading to Airbyte versions 1.8.0/1.8.1, especially when using the new Helm v2 chart or migrating databases. The error suggests a problem with the migration or data consistency, and it is not part of the normal or successful setup process [1.8.0/1.8.1: duplicate key value violates unique constraint "pk_connector_rollout"](https://github.com/airbytehq/airbyte/issues/65134). If you encounter this error, it means there is a conflict in your database that should be addressed before considering the setup complete.
A message from kapa.ai
The error
Error executing PERSIST: ERROR: duplicate key value violates unique constraint "pk_connector_rollout"
during your upgrade from Airbyte 1.7.1 to 1.8.1 is not expected and indicates a database migration issue. This happens when Airbyte tries to insert a record into the
connector_rollout
table with an
id
that already exists, violating the primary key constraint. This issue has been reported by other users upgrading to 1.8.x, especially when using the new Helm v2 chart or migrating databases. It is not related to your ingress configuration, but rather to the database state and migration logic during the upgrade process [1.8.0/1.8.1: duplicate key value violates unique constraint "pk_connector_rollout"](https://github.com/airbytehq/airbyte/issues/65134). Key points: - The error is a known issue and is not part of a successful or normal setup. - Your ingress spec also has a misconfiguration: the service name should not be
localhost
. For the connector builder, it should be
airbyte-airbyte-connector-builder-server-svc
as per the documentation [Update ingress for version 1.7 and later](https://docs.airbyte.com/platform/deploying-airbyte/integrations/ingress-1-7#deploying-with-helm). What you should do: - Correct your ingress configuration to use the proper service names. - Address the database error by ensuring there are no duplicate entries in the
connector_rollout
table before retrying the upgrade. - Monitor the referenced GitHub issue for updates or official migration guidance from the Airbyte team, as the knowledge sources do not provide a direct fix for this database error. In summary, the error is not expected and must be resolved for a successful upgrade. The ingress misconfiguration should also be fixed, but it is not the cause of the database error.