forked from camenlx/zoc-bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Ca.Men edited this page Jul 15, 2018
·
3 revisions
- sudo apt-get install git zip
- sudo apt install awscli
- ln -s ~/zeroone/zeroone-cli zeroone-cli
- ln -s ~/zeroonetest/zeroone-cli zeroone-cli_testnet
- vi linearize-mainnet.cfg ; edit rpcuser, rpcpass, rpcport and $HOME by real path
- vi linearize-testnet.cfg ; edit rpcuser, rpcpass, rpcport and $HOME by real path
- aws configure
git config remote.origin.url https://$GITUSERNAME:$GITTOKEN@github.com/$GITPROJECT/$GITREPONAME
- add scanner crontab
30 3 * * * cd $HOME/zoc-bootstrap && ./bootstrap.sh >genbootstrap.log 2>&1
- add cleaner crontab
30 2 * * * cd $HOME/zoc-bootstrap && ./cleanbaks.sh >>rmoldbootstrap.log 2>&1
Many times aws s3 cp
fails with error:
('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
One possible known workaround is to add --region buckedregion
at the end of aws s3 cp
cmd.
Other configs that may help the vps to cope with fast aws s3:
cat ~/.aws/config
[default]
aws_access_key_id = foo
aws_secret_access_key = bar
s3 =
max_concurrent_requests = 5
max_queue_size = 10
multipart_threshold = 8MB
multipart_chunksize = 4MB
max_bandwidth = 200KB/s
use_accelerate_endpoint = false
addressing_style = auto
payload_signing_enabled = false