Update Fullnode With New Releases
When devnet
is wiped and updated with newer versions, you will need to update your fullnode as well. If you do not, your fullnode will not continue to synchronize with the network. To update your fullnode, follow these steps:
If you built the fullnode from aptos-core source code
Shutdown your fullnode.
Delete the data folder (the directory path is what you specified in the configuration file, e.g.,
fullnode.yaml
).- The default data folder is
/opt/aptos/data
.
- The default data folder is
Delete the
genesis.blob
file andwaypoint.txt
file (depending on how you configured it, you might not have this file and may instead have awaypoint
directly in your configuration file).If you use the Rust binary, pull the latest of
devnet
viagit checkout devnet && git pull
, and build the binary again.Download the new genesis.blob file and the new waypoint.
Update the configuration file (e.g.,
fullnode.yaml
) with the new waypoint (if you configure the waypoint directly there).Restart the fullnode.
See the Verify initial synchronization section for checking if the fullnode is syncing again.
If you run a fullnode via Docker
- Shutdown your fullnode
- Delete the entire directory which holds your fullnode config and data directory.
- Rerun the instructions on Approach #2: Using Docker
If you run a fullnode on GCP
Aptos devnet releases can be of two types:
- One with a data wipe to start over the Aptos blockchain
- Second type is only a software update without a data wipe
Upgrade with data wipe
You can increase the
era
number inmain.tf
to trigger a new data volume creation, which will start the node on a new DB.Update
image_tag
inmain.tf
.Update Terraform module for fullnode, run this in the same directory of your
main.tf
file:terraform get -update
Apply Terraform changes:
terraform apply
Upgrade without data wipe
Update
image_tag
inmain.tf
.Update Terraform module for fullnode, run this in the same directory of your
main.tf
file:terraform get -update
Apply Terraform changes:
terraform apply
# if you didn't update the image tag, terraform will show nothing to change, in this case, force helm update
terraform apply -var force_helm_update=true