From e103279cc89f97bc8bc7ddf6788e0969870c78d2 Mon Sep 17 00:00:00 2001 From: Andrey Arapov Date: Wed, 6 Dec 2023 13:58:10 +0100 Subject: [PATCH] feat(storj/uplink): do not use threads otherwise it has high chances to fail https://forum.storj.io/t/uplink-failed-to-upload-enough-pieces-needed-at-least-80-but-got-78/24417 fixes #682 --- README.md | 2 +- run.sh | 2 +- snapshot.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 682ac94e0..35b18fdfc 100644 --- a/README.md +++ b/README.md @@ -258,7 +258,7 @@ Snapshots older than a specified time can also be deleted. Finally a JSON metada |`S3_SECRET`|S3 secret key| | | |`S3_HOST`|The S3 API host|`https://s3.filebase.com`|`s3.us-east-1.amazonaws.com`| |`STORJ_ACCESS_GRANT`|DCS Storj Access Grant token (replaces `S3_KEY`, `S3_SECRET`, `S3_HOST`| | | -|`STORJ_UPLINK_ARGS`|DCS Storj Uplink arguments|`-p 4 -t 4 --progress=false`|`-p 8 -t 8 --parallelism-chunk-size 256M --progress=false`| +|`STORJ_UPLINK_ARGS`|DCS Storj Uplink arguments|`-p 4 --progress=false`|`-p 4 --parallelism-chunk-size 256M --progress=false`| |`SNAPSHOT_PATH`|The S3 path to upload snapshots to, including the bucket| |`cosmos-snapshots/akash`| |`SNAPSHOT_PREFIX`|The prefix for the snapshot filename|`$CHAIN_ID`|`snapshot`| |`SNAPSHOT_TIME`|The time the snapshot will run|`00:00:00`|`09:00:00`| diff --git a/run.sh b/run.sh index 0a84491a5..bbcd2e3bc 100755 --- a/run.sh +++ b/run.sh @@ -54,7 +54,7 @@ export AWS_SECRET_ACCESS_KEY=$S3_SECRET export S3_HOST="${S3_HOST:-https://s3.filebase.com}" export STORJ_ACCESS_GRANT=$STORJ_ACCESS_GRANT -storj_args="${STORJ_UPLINK_ARGS:--p 4 -t 4 --progress=false}" +storj_args="${STORJ_UPLINK_ARGS:--p 4 --progress=false}" if [ -n "$STORJ_ACCESS_GRANT" ]; then uplink access import --force --interactive=false default "$STORJ_ACCESS_GRANT" diff --git a/snapshot.sh b/snapshot.sh index e603dfa7d..955e79a47 100755 --- a/snapshot.sh +++ b/snapshot.sh @@ -53,7 +53,7 @@ while true; do echo "$TIME: Running snapshot" aws_args="--endpoint-url ${S3_HOST}" - storj_args="${STORJ_UPLINK_ARGS:--p 4 -t 4 --progress=false}" + storj_args="${STORJ_UPLINK_ARGS:--p 4 --progress=false}" s3_uri_base="s3://${SNAPSHOT_PATH}" storj_uri_base="sj://${SNAPSHOT_PATH}" timestamp=$(date +"%Y-%m-%dT%H:%M:%S")