Skip to content

Commit

Permalink
Stop Chainsafe sync, add 2>&1 to logging
Browse files Browse the repository at this point in the history
Will try syncing manually in a tmux session instead. Seems sync
does not get completed in 24h causing conflict between
s3 sync jobs
  • Loading branch information
kuzdogan committed Mar 9, 2023
1 parent e95cc07 commit e8033ec
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions services/s3sync/login_sync_s3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
# 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"

0 comments on commit e8033ec

Please sign in to comment.