- Newest
- Most votes
- Most comments
This issue with the S3 event integration and Auto COPY JOB stopping after approximately one hour without any apparent errors is concerning and requires further investigation. Here are some steps you can take to troubleshoot and potentially resolve the issue:
-
Check the system views: Query the SYS_COPY_JOB_DETAIL view to see if the Amazon S3 files have been loaded, are pending ingestion, or if there are any errors. This view can provide valuable information about the status of your COPY JOB.
-
Examine error logs: Consult the STL_ERROR and SYS_COPY_JOB_INFO system tables for any credential errors or indications that the integration has become inactive. These logs might reveal issues that are not immediately apparent.
-
Verify the S3 event integration status: Ensure that the S3 event integration remains active. Sometimes, the integration can become inactive due to issues with permissions or configurations.
-
Check IAM role permissions: Confirm that the IAM role used for the COPY JOB has the necessary permissions to access the S3 bucket and perform the copy operation. Ensure these permissions haven't expired or been revoked.
-
Monitor S3 bucket events: Verify that new file uploads to the S3 bucket are triggering the expected events. There might be an issue with the event notification configuration.
-
Review COPY JOB configuration: Double-check the COPY JOB configuration, especially the AUTO ON setting, to ensure it's set to automatically detect and load new files.
-
Check for S3 bucket name restrictions: Ensure that your S3 bucket name doesn't contain a period (.), as this can prevent the creation of S3 event integrations.
-
Examine Redshift cluster status: Verify that the Redshift cluster isn't paused, as COPY JOBS don't run when the cluster is in a paused state.
-
Consider COPY JOB limits: Be aware that there are limits on the number of COPY JOBS per cluster or workgroup (200 maximum) and per S3 bucket (35 maximum). Ensure you haven't exceeded these limits.
If the issue persists after checking these points, you may need to contact AWS support for further assistance. They can help investigate any potential service-related issues or provide more detailed troubleshooting steps based on your specific setup and configuration.
Sources
Create an S3 event integration to automatically copy files from Amazon S3 buckets - Amazon Redshift
Troubleshooting S3 event integration and COPY JOB errors - Amazon Redshift
COPY JOB - Amazon Redshift
answered 2 years ago
Relevant content
asked 2 years ago
asked a year ago
asked a year ago

found no errors in below tables for job, checked it already. SYS_COPY_JOB_INFO SYS_COPY_JOB_DETAIL STL_LOAD_ERRORS SYS_LOAD_ERROR_DETAIL