diff --git a/ansible/archival-snapshots/resources/diff_script.sh b/ansible/archival-snapshots/resources/diff_script.sh index 328ce1f97..c7fbc462f 100755 --- a/ansible/archival-snapshots/resources/diff_script.sh +++ b/ansible/archival-snapshots/resources/diff_script.sh @@ -16,9 +16,10 @@ SECONDS_PER_EPOCH=30 # Clear Upload List if [ -f "$UPLOAD_QUEUE" ]; then # Clear the contents of the file - > "$UPLOAD_QUEUE" + true > "$UPLOAD_QUEUE" fi + aws --profile prod --endpoint "$ENDPOINT" s3 ls "s3://forest-archive/mainnet/diff/" > "$UPLOADED_DIFFS" for i in $(seq 1 $DIFF_COUNT); do diff --git a/ansible/archival-snapshots/resources/main.sh b/ansible/archival-snapshots/resources/main.sh index 520605642..366497b2d 100755 --- a/ansible/archival-snapshots/resources/main.sh +++ b/ansible/archival-snapshots/resources/main.sh @@ -30,7 +30,7 @@ else fi echo "Starting forest daemon" -nohup $FOREST --no-gc --config ./config.toml --save-token ./admin_token --rpc-address 127.0.0.1:3456 --metrics-address 127.0.0.1:5000 > forest.log & +nohup $FOREST --no-gc --config ./config.toml --save-token ./admin_token --rpc-address 127.0.0.1:3456 --metrics-address 127.0.0.1:5000 > forest.log 2>&1 & FOREST_NODE_PID=$! sleep 30