Move VPS

Backup file

  1. Save old mnemonic

  2. Backup the folder validator_keys to your local or any other desired location.

You can use Termius to easily backup the folder validator_keys, or use another method if you prefer.

image

Run node on new vps

Reminder: If you want to use the same VPS to run the old node again, you need to stop the node and back up the dill folder using the following command:

ps -ef | grep dill-node | grep -v grep | awk '{print $2}' | xargs kill
mv dill dillbackup

1. Update and install packages for compiling

cd $HOME && source <(curl -s https://github.com/CzLuckyStar/NODE-VALIDATOR/blob/main/BINARIES/update-binary.sh)

2. Download Light Validator Binary

curl -O https://dill-release.s3.ap-southeast-1.amazonaws.com/linux/dill.tar.gz
curl -O ttps://dill-release.s3.ap-southeast-1.amazonaws.com/macos/dill.tar.gz

3. Extract the package

tar -xzvf dill.tar.gz && cd dill

4. Generate Validator Keys with existing mnemonic (fill your old mnemonic)

This command will generate validator keys with existing mnemonic in the ./validator_keys directory.

./dill_validators_gen existing-mnemonic --num_validators=1 --chain=andes --folder=./

5. Update deposit data & old keystore

  • Delete the two files, deposit data and keystore, in the folder validator_key.

  • Copy the two old files, deposit data and keystore, saved during the backup step back into the folder validator_key, you can use Termius.

6. Import Validator Keys

During this process, set and save your keystore password.

./dill-node accounts import --andes --wallet-dir ./keystore --keys-dir validator_keys/ --accept-terms-of-use

7. Save Password to a File

Replace <your-password> with your actual password.

echo <your-password> > walletPw.txt

8. Start Light Validator Node

./start_light.sh -p walletPw.txt

9. Verify Node is Running

Run the following command to check if the node is up and running:

tail -f $HOME/dill/light_node/logs/dill.log
curl -s localhost:3500/eth/v1/beacon/headers | jq
ps -ef | grep dill
./health_check.sh -v

END

Last updated