From e8033ecd879cf19988346a11efb7063c13e5f83a Mon Sep 17 00:00:00 2001 From: Kaan Uzdogan Date: Thu, 9 Mar 2023 16:45:03 +0100 Subject: [PATCH] Stop Chainsafe sync, add 2>&1 to logging Will try syncing manually in a tmux session instead. Seems sync does not get completed in 24h causing conflict between s3 sync jobs --- services/s3sync/login_sync_s3.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/services/s3sync/login_sync_s3.sh b/services/s3sync/login_sync_s3.sh index 1afd51bec..25f4b3762 100755 --- a/services/s3sync/login_sync_s3.sh +++ b/services/s3sync/login_sync_s3.sh @@ -10,10 +10,10 @@ echo "$(date) Syncing AWS at $BUCKET_NAME/$TAG" echo "$(date) Sync AWS complete" # Sync to Chainsafe Storage S3 -/usr/local/bin/aws configure set aws_access_key_id $CHAINSAFE_S3_ACCESS_KEY_ID -/usr/local/bin/aws configure set aws_secret_access_key $CHAINSAFE_S3_SECRET_ACCESS_KEY -/usr/local/bin/aws configure set s3.max_concurrent_requests 2 # Chainsafe Storage S3 concurrency is limited +# /usr/local/bin/aws configure set aws_access_key_id $CHAINSAFE_S3_ACCESS_KEY_ID +# /usr/local/bin/aws configure set aws_secret_access_key $CHAINSAFE_S3_SECRET_ACCESS_KEY +# /usr/local/bin/aws configure set s3.max_concurrent_requests 2 # Chainsafe Storage S3 concurrency is limited -echo "$(date) Syncing Chainsafe S3 at $BUCKET_NAME" -/usr/local/bin/aws s3 sync /app/repository $BUCKET_NAME/$TAG --endpoint-url https://buckets.chainsafe.io > "/app/logs/s3sync-chainsafe-$(date '+%Y-%m-%dZ%H:%M').log" -echo "$(date) Syncing Chainsafe S3 complete" \ No newline at end of file +# echo "$(date) Syncing Chainsafe S3 at $BUCKET_NAME" +# /usr/local/bin/aws s3 sync /app/repository $BUCKET_NAME/$TAG --endpoint-url https://buckets.chainsafe.io > "/app/logs/s3sync-chainsafe-$(date '+%Y-%m-%dZ%H:%M').log 2>&1" +# echo "$(date) Syncing Chainsafe S3 complete"