Pablo Martin Calvo
11/03/2025, 1:16 PM2025-11-03 10:39:10 replication-orchestrator INFO Sync summary: {
"status" : "failed",
"recordsSynced" : 0,
"bytesSynced" : 0,
"startTime" : 1762144237878,
"endTime" : 1762162750122,
"totalStats" : {
"bytesCommitted" : 0,
"bytesEmitted" : 4337589,
"destinationStateMessagesEmitted" : 0,
"destinationWriteEndTime" : 0,
"destinationWriteStartTime" : 1762144241065,
"meanSecondsBeforeSourceStateMessageEmitted" : 0,
"maxSecondsBeforeSourceStateMessageEmitted" : 0,
"maxSecondsBetweenStateMessageEmittedandCommitted" : 0,
"meanSecondsBetweenStateMessageEmittedandCommitted" : 0,
"recordsEmitted" : 1020,
"recordsCommitted" : 0,
"recordsFilteredOut" : 0,
"bytesFilteredOut" : 0,
"replicationEndTime" : 1762162750120,
"replicationStartTime" : 1762144237878,
"sourceReadEndTime" : 0,
"sourceReadStartTime" : 1762144241065,
"sourceStateMessagesEmitted" : 4
},
"streamStats" : [ {
"streamName" : "contacts",
"stats" : {
"bytesCommitted" : 0,
"bytesEmitted" : 1628270,
"estimatedBytes" : 0,
"estimatedRecords" : 0,
"recordsEmitted" : 217,
"recordsCommitted" : 0,
"recordsFilteredOut" : 0,
"bytesFilteredOut" : 0
}
}, {
"streamName" : "companies",
"stats" : {
"bytesCommitted" : 0,
"bytesEmitted" : 2161739,
"estimatedBytes" : 0,
"estimatedRecords" : 0,
"recordsEmitted" : 645,
"recordsCommitted" : 0,
"recordsFilteredOut" : 0,
"bytesFilteredOut" : 0
}
}, {
"streamName" : "deals_archived",
"stats" : {
"bytesCommitted" : 0,
"bytesEmitted" : 427772,
"estimatedBytes" : 0,
"estimatedRecords" : 0,
"recordsEmitted" : 130,
"recordsCommitted" : 0,
"recordsFilteredOut" : 0,
"bytesFilteredOut" : 0
}
}, {
"streamName" : "deals",
"stats" : {
"bytesCommitted" : 0,
"bytesEmitted" : 106164,
"estimatedBytes" : 0,
"estimatedRecords" : 0,
"recordsEmitted" : 19,
"recordsCommitted" : 0,
"recordsFilteredOut" : 0,
"bytesFilteredOut" : 0
}
}, {
"streamName" : "deal_pipelines",
"stats" : {
"bytesCommitted" : 0,
"bytesEmitted" : 13644,
"estimatedBytes" : 0,
"estimatedRecords" : 0,
"recordsEmitted" : 9,
"recordsCommitted" : 0,
"recordsFilteredOut" : 0,
"bytesFilteredOut" : 0
}
} ],
"performanceMetrics" : { }
}
2025-11-03 10:39:10 replication-orchestrator INFO Failures: [ {
"failureOrigin" : "destination",
"failureType" : "system_error",
"internalMessage" : "java.util.concurrent.CompletionException: java.lang.RuntimeException: org.postgresql.util.PSQLException: ERROR: canceling statement due to user request",
"externalMessage" : "Something went wrong in the connector. See the logs for more details.",
"metadata" : {
"attemptNumber" : 0,
"jobId" : 12654,
"from_trace_message" : true,
"connector_command" : "write"
},
"stacktrace" : "java.util.concurrent.CompletionException: java.lang.RuntimeException: org.postgresql.util.PSQLException: ERROR: canceling statement due to user request\n\tat java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:315)\n\tat java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:320)\n\tat java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1770)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)\n\tat java.base/java.lang.Thread.run(Thread.java:1583)\nCaused by: java.lang.RuntimeException: org.postgresql.util.PSQLException: ERROR: canceling statement due to user request\n\tat io.airbyte.integrations.base.destination.typing_deduping.DefaultTyperDeduper.prepareTablesFuture$lambda$4(DefaultTyperDeduper.kt:215)\n\tat java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768)\n\t... 3 more\nCaused by: org.postgresql.util.PSQLException: ERROR: canceling statement due to user request\n\tat org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2713)\n\tat org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2401)\n\tat org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:368)\n\tat org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:498)\n\tat org.postgresql.jdbc.PgStatement.execute(PgStatement.java:415)\n\tat org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:335)\n\tat org.postgresql.jdbc.PgStatement.executeCachedSql(PgStatement.java:321)\n\tat org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:297)\n\tat org.postgresql.jdbc.PgStatement.execute(PgStatement.java:292)\n\tat com.zaxxer.hikari.pool.ProxyStatement.execute(ProxyStatement.java:94)\n\tat com.zaxxer.hikari.pool.HikariProxyStatement.execute(HikariProxyStatement.java)\n\tat io.airbyte.cdk.db.jdbc.JdbcDatabase.executeWithinTransaction$lambda$1(JdbcDatabase.kt:47)\n\tat io.airbyte.cdk.db.jdbc.DefaultJdbcDatabase.execute(DefaultJdbcDatabase.kt:30)\n\tat io.airbyte.cdk.db.jdbc.JdbcDatabase.executeWithinTransaction(JdbcDatabase.kt:43)\n\tat io.airbyte.cdk.integrations.destination.jdbc.typing_deduping.JdbcDestinationHandler.execute(JdbcDestinationHandler.kt:169)\n\tat io.airbyte.integrations.destination.postgres.typing_deduping.PostgresDestinationHandler.execute(PostgresDestinationHandler.kt:73)\n\tat io.airbyte.integrations.base.destination.typing_deduping.TyperDeduperUtil.executeSoftReset(TyperDeduperUtil.kt:266)\n\tat io.airbyte.integrations.base.destination.typing_deduping.DefaultTyperDeduper.prepareTablesFuture$lambda$4(DefaultTyperDeduper.kt:188)\n\t... 4 more\n",
"timestamp" : 1762162750062
}, {
"failureOrigin" : "destination",
"failureType" : "destination_timeout",
"internalMessage" : "Last action 2 hours 0 minutes 5 seconds ago, exceeding the threshold of 2 hours.",
"externalMessage" : "Airbyte detected that the Destination didn't make progress in the last 2 hours 0 minutes 5 seconds, exceeding the configured 2 hours threshold. Airbyte will try reading again on the next sync. Please see https://docs.airbyte.com/understanding-airbyte/heartbeats for more info.",
"metadata" : {
"attemptNumber" : 0,
"jobId" : 12654,
"connector_command" : "write"
},
"stacktrace" : "io.airbyte.container.orchestrator.worker.io.DestinationTimeoutMonitor$TimeoutException: Last action 2 hours 0 minutes 5 seconds ago, exceeding the threshold of 2 hours.\n\tat io.airbyte.container.orchestrator.worker.WorkloadHeartbeatSender.sendHeartbeat(WorkloadHeartbeatSender.kt:94)\n\tat io.airbyte.container.orchestrator.worker.WorkloadHeartbeatSender$sendHeartbeat$1.invokeSuspend(WorkloadHeartbeatSender.kt)\n\tat kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)\n\tat kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)\n\tat java.base/java.lang.Thread.run(Thread.java:1583)\n",
"timestamp" : 1762151449070
}, {
"failureOrigin" : "replication",
"internalMessage" : "Broken pipe",
"externalMessage" : "Something went wrong during replication",
"metadata" : {
"attemptNumber" : 0,
"jobId" : 12654
},
"stacktrace" : "java.io.IOException: Broken pipe\n\tat java.base/sun.nio.ch.UnixFileDispatcherImpl.write0(Native Method)\n\tat java.base/sun.nio.ch.UnixFileDispatcherImpl.write(UnixFileDispatcherImpl.java:65)\n\tat java.base/sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:137)\n\tat java.base/sun.nio.ch.IOUtil.write(IOUtil.java:102)\n\tat java.base/sun.nio.ch.IOUtil.write(IOUtil.java:72)\n\tat java.base/sun.nio.ch.FileChannelImpl.write(Unknown Source)\n\tat java.base/sun.nio.ch.ChannelOutputStream.writeFully(ChannelOutputStream.java:68)\n\tat java.base/sun.nio.ch.ChannelOutputStream.write(ChannelOutputStream.java:105)\n\tat java.base/sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:309)\n\tat java.base/sun.nio.cs.StreamEncoder.implWrite(StreamEncoder.java:381)\n\tat java.base/sun.nio.cs.StreamEncoder.implWrite(StreamEncoder.java:357)\n\tat java.base/sun.nio.cs.StreamEncoder.lockedWrite(StreamEncoder.java:158)\n\tat java.base/sun.nio.cs.StreamEncoder.write(StreamEncoder.java:139)\n\tat java.base/java.io.OutputStreamWriter.write(OutputStreamWriter.java:219)\n\tat java.base/java.io.BufferedWriter.implFlushBuffer(BufferedWriter.java:178)\n\tat java.base/java.io.BufferedWriter.flushBuffer(BufferedWriter.java:163)\n\tat java.base/java.io.BufferedWriter.implWrite(BufferedWriter.java:334)\n\tat java.base/java.io.BufferedWriter.write(BufferedWriter.java:313)\n\tat java.base/java.io.Writer.write(Writer.java:278)\n\tat io.airbyte.container.orchestrator.worker.io.AirbyteMessageBufferedWriter.write(AirbyteMessageBufferedWriter.kt:29)\n\tat io.airbyte.container.orchestrator.worker.io.LocalContainerAirbyteDestination.acceptWithNoTimeoutMonitor(LocalContainerAirbyteDestination.kt:133)\n\tat io.airbyte.container.orchestrator.worker.io.LocalContainerAirbyteDestination.accept(LocalContainerAirbyteDestination.kt:92)\n\tat io.airbyte.container.orchestrator.worker.DestinationWriter.run(ReplicationTask.kt:97)\n\tat io.airbyte.container.orchestrator.worker.DestinationWriter$run$1.invokeSuspend(ReplicationTask.kt)\n\tat kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)\n\tat kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)\n\tat java.base/java.lang.Thread.run(Thread.java:1583)\n",
"timestamp" : 1762162750119
} ]
2025-11-03 10:39:10 replication-orchestrator INFO
2025-11-03 10:39:10 replication-orchestrator INFO Closing io.micronaut.context.propagation.instrument.execution.ContextPropagatingExecutorService@49099d93
2025-11-03 10:39:10 replication-orchestrator INFO ----- END REPLICATION -----
2025-11-03 10:39:10 replication-orchestrator INFO
2025-11-03 10:39:10 replication-orchestrator INFO Closing io.micronaut.context.propagation.instrument.execution.ContextPropagatingExecutorService@169c7543
2025-11-03 10:39:10 replication-orchestrator INFO Closing io.airbyte.container.orchestrator.worker.io.LocalContainerAirbyteDestination@24b263af
2025-11-03 10:39:10 replication-orchestrator WARN Attempted to close a destination which is already closed.
2025-11-03 10:39:10 replication-orchestrator ERROR Error closing resource io.airbyte.container.orchestrator.worker.io.LocalContainerAirbyteDestination@24b263af; recording failure but continuing.
2025-11-03 10:39:10 replication-orchestrator INFO Closing io.airbyte.container.orchestrator.worker.io.LocalContainerAirbyteSource@15ee4ff9
2025-11-03 10:40:10 replication-orchestrator WARN Failed to wait for exit value file /source/exitCode.txt to be found.
2025-11-03 10:40:10 replication-orchestrator ERROR Error closing resource io.airbyte.container.orchestrator.worker.io.LocalContainerAirbyteSource@15ee4ff9; recording failure but continuing.
2025-11-03 10:40:10 replication-orchestrator INFO Closing io.airbyte.container.orchestrator.worker.RecordSchemaValidator@1202f3a2
2025-11-03 10:40:10 replication-orchestrator INFO Closing io.airbyte.container.orchestrator.persistence.SyncPersistenceImpl@56794250
2025-11-03 10:40:10 replication-orchestrator INFO Returning output...kapa.ai
11/03/2025, 1:17 PMERROR: canceling statement due to user request - Airbyte reports: Airbyte detected that the Destination didn't make progress in the last 2 hours 0 minutes 5 seconds, exceeding the configured 2 hours threshold. - This means the destination connector (PostgreSQL) did not complete its write operation within the allowed time, so Airbyte cancelled it. 2. No Records Committed - The summary shows records were emitted from the source, but none were committed to the destination: "recordsEmitted" : 1020, "recordsCommitted" : 0, - This suggests the data was read from HubSpot, but the write to PostgreSQL failed or was too slow. 3. Possible Causes - Large or Complex Schema: HubSpot often has many custom properties, which can result in very large tables and complex SQL statements that are slow to process or even fail in some destinations. This is a known issue, especially with destinations like BigQuery and Redshift, but can also affect PostgreSQL if the schema is large or the data is complex. [See related discussion for BigQuery, but the root cause (large/complex schema) can apply to PostgreSQL as well.](https://github.com/airbytehq/airbyte/issues/62090) - Long-running SQL Statements: If the destination is processing a large MERGE or INSERT statement, it may lock tables or take too long, leading to timeouts or manual cancellations. [A similar issue was reported with table locks and long-running queries.](https://github.com/airbytehq/airbyte/issues/62467) - Resource Constraints: If your PostgreSQL instance is under-provisioned (CPU, memory, disk I/O), large syncs can easily exceed the timeout. 4. What You Can Do - Reduce the Number of Synced Fields: Uncheck unnecessary properties/fields in your HubSpot stream configuration to reduce the schema size and the amount of data being written. This has been confirmed to resolve similar issues for other users, though it can be time-consuming to identify which fields to exclude. - Increase Destination Resources: Ensure your PostgreSQL instance has enough resources to handle large syncs. - Increase Timeout Threshold: If possible, increase the timeout setting in Airbyte for the destination write operation. - Check for Table Locks: Make sure there are no lingering locks or long-running queries on your destination tables that could block the sync. - Review Destination Logs: Check the PostgreSQL logs for more details on what is causing the write to hang or fail. 5. Next Steps - Start by reducing the number of fields/properties you sync from HubSpot, focusing only on those you need. - Monitor the sync and destination logs for any specific errors or bottlenecks. - If the problem persists, consider upgrading your destination connector or database resources. If you need to identify which properties are problematic, you may need to iteratively uncheck fields and re-run the sync until it completes successfully, as there is no automated way to pinpoint the exact field from the logs provided. If you have recently upgraded Airbyte or the connectors, also check for any breaking changes or known issues with your specific versions. Summary: Your sync is failing because the write to PostgreSQL is taking too long or being blocked, likely due to a large or complex schema from HubSpot. Reduce the number of synced fields, check your destination resources, and review for table locks or long-running queries. This approach has resolved similar issues for other users syncing HubSpot data to various destinations. If you need more targeted help, please provide the Airbyte and connector versions, and any additional error logs from the destination.