<@U04S8PLJWMT> Seeing the following while syncing ...
# ask-ai
a
@kapa.ai Seeing the following while syncing from a sql server source
Copy code
io.airbyte.cdk.integrations.source.relationaldb.state.FailedRecordIteratorException: java.lang.RuntimeException: java.lang.RuntimeException: com.microsoft.sqlserver.jdbc.SQLServerException: An error occurred during the current command (Done status 0). Could not allocate space for object 'dbo.SORT temporary run storage: 140850374377472' in database 'tempdb' because the 'PRIMARY' filegroup is full due to lack of storage space or database files reaching the maximum allowed size. Note that UNLIMITED files are still limited to 16TB. Create the necessary space by dropping objects in the filegroup, adding additional files to the filegroup, or setting autogrowth on for existing files in the filegroup.
k
The error message you are seeing indicates that the SQL Server source database's tempdb has run out of space during the sync process. Specifically, the error:
Copy code
Could not allocate space for object 'dbo.SORT temporary run storage: ...' in database 'tempdb' because the 'PRIMARY' filegroup is full due to lack of storage space or database files reaching the maximum allowed size.
This is a database-level issue where tempdb does not have enough space to handle the operations required by Airbyte during the sync. This can happen when syncing large tables or when the sync operation requires significant sorting or temporary storage. What you can do: - Increase the size of tempdb or add additional files to the tempdb filegroup. - Ensure autogrowth is enabled for tempdb files. - Free up space in tempdb by dropping unnecessary objects or restarting the SQL Server instance if possible. - Monitor tempdb usage during large syncs to anticipate and mitigate space issues. While the knowledge sources do not provide a SQL Server-specific workaround for this exact error, similar issues have been reported with other databases (like Postgres) where large syncs or normalization steps can exhaust temporary storage, leading to failures. The general advice is to ensure that both the Airbyte instance and the source/destination databases have sufficient disk space and memory to handle large data volumes and temporary file requirements during syncs. For example, in Postgres, increasing the [temp_file_limit](https://postgresqlco.nf/doc/en/param/temp_file_limit/) or ensuring enough disk space for temporary files is recommended in similar scenarios [source](https://docs.airbyte.com/integrations/sources/postgres/postgres-troubleshooting#troubleshooting). If you continue to encounter this issue, you may also want to review your Airbyte resource allocations and batch sizes, as very large batches can increase tempdb usage. If you need more detailed guidance specific to SQL Server and Airbyte, the knowledge sources do not provide further information on this particular error.