Reset and troubleshooting
Complete reset
Occasionally you may need to perform a comlpete reset of your node due to data corruption or misconfiguration. Resetting will remove all data in ~/.terra/data
and the addressbook in ~/.terra/config/addrbook.json
and reset the node to genesis state.
To perform a complete reset of your Terrad state, execute the following command in your terminal:
Running this command successfully will produce the following log:
After resetting, make sure the addressbook contains peer addresses and is in the correct spot. If not, download an adressbook and place it in ~/.terra/config/
.
Change Genesis
To change the genesis version, delete ~/.terra/config/genesis.json
.
You can recreate a genesis version via the following steps:
Reset personal data
You may be unable to use your node and its associated accounts after changing your personal data. Do not perform this action unless your node is disposable.
To change your personal data to a pristine state, delete both ~/.terra/config/priv_validator_state.json
and ~/.terra/config/node_key.json
.
Node health
A healthy node will have the following files in place and populated:
- Addressbook
~/.terra/config/addrbook.json
- Genesis file
~/.terra/config/genesis.json
- Validator state
~/.terra/config/priv_validator_state.json
- Node key
~/.terra/config/node_key.json
Resync
You can proceed to resync manually or using a snapshot.