Tom Dobson
09/26/2025, 11:45 AM2025-09-26 12:43:57io.micronaut.data.exceptions.DataAccessException: Error executing PERSIST: ERROR: duplicate key value violates unique constraint "pk_connector_rollout"
2025-09-26 12:43:57 Detail: Key (id)=(0952af1d-c23b-408e-87cf-ea4d0709e5ae) already exists.
2025-09-26 12:43:57 at io.micronaut.data.runtime.operations.internal.BaseOperations.failed(BaseOperations.java:141)
2025-09-26 12:43:57 at io.micronaut.data.runtime.operations.internal.BaseOperations.persist(BaseOperations.java:90)
2025-09-26 12:43:57 at io.micronaut.data.runtime.operations.internal.EntityOperations.persist(EntityOperations.java:31)
2025-09-26 12:43:57 at io.micronaut.data.jdbc.operations.DefaultJdbcRepositoryOperations.lambda$persist$20(DefaultJdbcRepositoryOperations.java:733)
2025-09-26 12:43:57 at io.micronaut.data.jdbc.operations.DefaultJdbcRepositoryOperations.lambda$executeWrite$24(DefaultJdbcRepositoryOperations.java:830)
2025-09-26 12:43:57 at io.micronaut.data.connection.support.AbstractConnectionOperations.executeWithNewConnection(AbstractConnectionOperations.java:167)
2025-09-26 12:43:57 at io.micronaut.data.connection.support.AbstractConnectionOperations.execute(AbstractConnectionOperations.java:114)
2025-09-26 12:43:57 at io.micronaut.data.jdbc.operations.DefaultJdbcRepositoryOperations.executeWrite(DefaultJdbcRepositoryOperations.java:827)
2025-09-26 12:43:57 at io.micronaut.data.jdbc.operations.DefaultJdbcRepositoryOperations.persist(DefaultJdbcRepositoryOperations.java:729)
2025-09-26 12:43:57 at io.micronaut.data.runtime.intercept.DefaultSaveEntityInterceptor.intercept(DefaultSaveEntityInterceptor.java:45)
2025-09-26 12:43:57 at io.micronaut.data.runtime.intercept.DataIntroductionAdvice.intercept(DataIntroductionAdvice.java:84)
2025-09-26 12:43:57 at io.micronaut.aop.chain.MethodInterceptorChain.proceed(MethodInterceptorChain.java:143)
2025-09-26 12:43:57 at io.airbyte.data.repositories.ConnectorRolloutRepository$Intercepted.save(Unknown Source)
2025-09-26 12:43:57 at io.airbyte.data.services.impls.data.ConnectorRolloutServiceDataImpl.insertConnectorRollout(ConnectorRolloutServiceDataImpl.kt:65)
2025-09-26 12:43:57 at io.airbyte.config.init.ApplyDefinitionsHelper.applyReleaseCandidates$io_airbyte_airbyte_config_init(ApplyDefinitionsHelper.kt:241)
2025-09-26 12:43:57 at io.airbyte.config.init.ApplyDefinitionsHelper.applySourceDefinition(ApplyDefinitionsHelper.kt:202)
2025-09-26 12:43:57 at io.airbyte.config.init.ApplyDefinitionsHelper.apply(ApplyDefinitionsHelper.kt:106)
2025-09-26 12:43:57 at io.airbyte.config.init.ApplyDefinitionsHelper.apply$default(ApplyDefinitionsHelper.kt:75)
2025-09-26 12:43:57 at io.airbyte.cron.jobs.DefinitionsUpdater.updateDefinitions(DefinitionsUpdater.kt:41)
2025-09-26 12:43:57 at io.airbyte.cron.jobs.$DefinitionsUpdater$Definition$Exec.dispatch(Unknown Source)
2025-09-26 12:43:57 at io.micronaut.context.AbstractExecutableMethodsDefinition$DispatchedExecutableMethod.invoke(AbstractExecutableMethodsDefinition.java:456)
2025-09-26 12:43:57 at io.micronaut.inject.DelegatingExecutableMethod.invoke(DelegatingExecutableMethod.java:86)
2025-09-26 12:43:57 at io.micronaut.context.bind.DefaultExecutableBeanContextBinder$ContextBoundExecutable.invoke(DefaultExecutableBeanContextBinder.java:152)
2025-09-26 12:43:57 at io.micronaut.scheduling.processor.ScheduledMethodProcessor.lambda$scheduleTask$2(ScheduledMethodProcessor.java:160)
2025-09-26 12:43:57 at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572)
2025-09-26 12:43:57 at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:358)
2025-09-26 12:43:57 at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
2025-09-26 12:43:57 at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
2025-09-26 12:43:57 at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
2025-09-26 12:43:57 at java.base/java.lang.Thread.run(Thread.java:1583)
2025-09-26 12:43:57Caused by: org.postgresql.util.PSQLException: ERROR: duplicate key value violates unique constraint "pk_connector_rollout"
2025-09-26 12:43:57 Detail: Key (id)=(0952af1d-c23b-408e-87cf-ea4d0709e5ae) already exists.
2025-09-26 12:43:57 at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2734)
2025-09-26 12:43:57 at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2421)
2025-09-26 12:43:57 at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:372)
2025-09-26 12:43:57 at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:518)
2025-09-26 12:43:57 at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:435)
2025-09-26 12:43:57 at org.postgresql.jdbc.PgPreparedStatement.executeWithFlags(PgPreparedStatement.java:196)
2025-09-26 12:43:57 at org.postgresql.jdbc.PgPreparedStatement.executeUpdate(PgPreparedStatement.java:157)
2025-09-26 12:43:57 at com.zaxxer.hikari.pool.ProxyPreparedStatement.executeUpdate(ProxyPreparedStatement.java:61)
2025-09-26 12:43:57 at com.zaxxer.hikari.pool.HikariProxyPreparedStatement.executeUpdate(HikariProxyPreparedStatement.java)
2025-09-26 12:43:57 at io.micronaut.data.jdbc.operations.DefaultJdbcRepositoryOperations$JdbcEntityOperations.executeUpdate(DefaultJdbcRepositoryOperations.java:1261)
2025-09-26 12:43:57 at io.micronaut.data.jdbc.operations.DefaultJdbcRepositoryOperations$JdbcEntityOperations.execute(DefaultJdbcRepositoryOperations.java:1230)
2025-09-26 12:43:57 at io.micronaut.data.runtime.operations.internal.BaseOperations.persist(BaseOperations.java:84)
2025-09-26 12:43:57 ... 28 common frames omittedkapa.ai
09/26/2025, 11:46 AMconnector_rollout table with an id that already exists. This is causing the logs to be spammed with errors after your upgrade from v1.8.2/chart v2.0.12 to v1.8.3/chart v2.0.13. ### What is the connector_rollout Table? The connector_rollout table tracks rollout states for connector definitions. The id column is a primary key, so each rollout must have a unique id. There is also a unique index on actor_definition_id for certain states, but your error is specifically about the primary key constraint on id [[source]](https://docs.airbyte.com/platform/next/understanding-airbyte/database-data-catalog#connector_rollout). ### Why is This Happening? - The error is triggered when Airbyte's background process (likely the DefinitionsUpdater) tries to insert a rollout with an id that already exists in the table. - This can happen if the upgrade process or a previous operation left duplicate or conflicting rollout records in the database, or if the upgrade logic is not properly handling existing rollouts. ### Is This a Known Issue? There is no explicit mention of this exact issue in the provided documentation or GitHub issues for the specific chart version you referenced. However, similar issues with duplicate keys and database constraints have been reported in other contexts, often after upgrades or schema changes [[source]](https://github.com/airbytehq/airbyte/issues/21208). ### What Can You Do? - Check for Existing Rollouts: Inspect your connector_rollout table for duplicate or conflicting entries. You may need to manually resolve duplicates if they exist. - Backup Your Database: Before making any changes, ensure you have a backup of your Airbyte database [[source]](https://docs.airbyte.com/platform/deploying-airbyte/chart-v2-community#how-to-upgrade). - Contact Airbyte Support or File an Issue: Since this appears to be a recurring problem after upgrades, and there is no documented fix for this specific scenario, it may be best to reach out to Airbyte support or file a GitHub issue with your findings and logs. ### Additional Notes - Airbyte should still function, but the repeated error logs indicate something is not right with the rollout management logic. - If you are comfortable with SQL, you can query the connector_rollout table to look for duplicate id values or other anomalies. In summary: The error is due to a primary key conflict in the connector_rollout table, likely caused by upgrade logic or pre-existing data. The knowledge sources do not provide a direct fix, so manual inspection and/or contacting Airbyte support is recommended. Always back up your database before making changes.