Parity Upgrade Guide
Parity may need to be updated to prepare for a hard fork
This guide assumes you are running this playbook from the same machine you used initially deploy of your node. You should already have python
and ansible
installed, and the correct ssh keypair to root-access the node.
Running the update
1) Clone the poa-devops repository if you haven't done so before
or pull the latest changes
2) Create group_vars/all
file:
and change the following variables:
poa_role
- role of the node on the network (select one of these:bootnode
,validator
,moc
,explorer
)GENESIS_BRANCH
- either"sokol"
or"core"
or"dai"
or"kovan"
depending which network you're updating
DO NOT change other options
3) Create/edit hosts
file and put your node's ip address (assuming it's 192.0.2.1) there with the following header:
If you're updating an existing file, make sure you remove other tags [...]
and ips.
4) Run the playbook (change user: ubuntu to your user name, if necessary):
Verifying the update
Playbook run completes without errors.
1) Open network statistic webpage:
for sokol test network: https://sokol-netstat.poa.network
for core main network: https://core-netstat.poa.network
for dai network: https://dai-netstat.poa.network
for kovan network: https://kovan-netstat.poa.network
check that your node is "green" and is catching new blocks. It may take 5-6 minutes to fully start and reconnect.
2) Connect to the node
and check parity version (replace bootnode
with correct role name ,e.g. validator
):
sample output (version number may be different):
3) During the next day check the status of your node on network status webpage and associated functions (e.g. for validators - are block rewards still being sent from your mining key to your payout key?).
Rollback to the previous version (in case of problems)
If you get any errors please consult the POA Team first, most likely it is a minor issue and you don't need to rollback.
1) Connect to the node:
2) Switch to your home folder (replace bootnode
with correct role name):
3) Stop services:
4) Locate the backup folder:
it contains folders labeled by the time backup was created in format<year><month><day>T<hour><minute><second>
, e.g.
copy the version number that corresponds to this day. In the following examples we assume that it's 20180209T214517
.
5) Make sure you have your mining key data (keyfile, password, address) available to you.
6) Remove files from the new version:
7) Restore previous versions of these files from backup (note dots .
at the end of each line here, they are important):
8) Check parity version (must be previous one):
sample output (version number may be different):
9) Restart services
10) Open network statistic webpage:
for sokol test network: https://sokol-netstat.poa.network
for core main network: https://core-netstat.poa.network
for dai network: https://dai-netstat.poa.network
Check that your node is "green" and is catching new blocks. It may take 2-3 minutes to fully start and reconnect.
Last updated