Steps to apply snapshot for recovery
Steps to recover the broken sharder from the snapshots
Snapshots for sharder is maintained periodically. So in case if any sharder is broken, it can be recovered with the help of zus team.
Steps that will be executed using script are:
Stop the existing sharder and postgres on the server.
Script will create a backup of an older data and move it to the
data_backup
.Snapshot will be downloaded from zus s3 bucket.
Files will be extracted to the required folder automatically.
Required fix will be updated via sharder image tag.
Sharder will be started again.
Run the following command:
wget -N https://raw.githubusercontent.com/0chain/zcnwebappscripts/as-deploy/0chain/sharder_snapshot_recovery.sh; bash sharder_snapshot_recovery.sh v1.13.5 sharder1_0chain_net 21Mar2024
It will take several hours to complete the script. Once is it completed you can verify it using below steps/commands.
Check if container started successfully
Both sharder-1
& sharder-postgres-1
needs to be in running status.
sudo docker ps -a | grep "sharder"

Confirming that your sharder is available on public URL
If all the previous steps have been successfully executed, sharder should be available on below url:
https://<domain_name>/sharder01/
The sharder diagnostics page can be reached from the below url:
https://<domain_name>/sharder01/_diagnostics
Please check for any errors
If you see any errors, or cannot access the services on your domain, please contact support.
Last updated