/
Upgrading Tracker Software (Legacy - PM2/Monit)

Upgrading Tracker Software (Legacy - PM2/Monit)

Use this page for common commands used to upgrade the node tracker software running on Secure, or Super Nodes

  • Upgrading the node tracker
  • Check tracker status

DescriptionCommand

Upgrading the node tracker
1Stop the running nodetracker process
pm2 stop 0
2Change directory to where the node tracker was cloned (~/nodetracker for the official guide) and update the git origin to use HorizenOfficial
cd ~/nodetracker
git remote set-url origin "$(git remote -v | grep origin | head -n1 | cut -d$'\t' -f 2 | cut -d ' ' -f 1 | sed 's/[zZ][eE][nN][cC][aA][sS][hH][oO][fF][fF][iI][cC][iI][aA][lL]/HorizenOfficial/g')"
3Update git with the new repository URL and retrieve the latest source code
git checkout -- package.json
git pull

NOTE: If git returns an error regarding any files run the following command (replacing 'filename' with the file returned in the error message) and repeat the commands above

git checkout -- filename
4Install the Node Tracker with npm
NODE_ENV=production npm install

Optional - Run nodetracker setup to update configuration settings
5

NOTE: The nodetracker only permits a single setting to be changed at a time between reconnects (IP, FQDN, T-Address, Stake Address)

  • Enter/Return through all settings not needing to be updated
  • To update stake address, see Change Staking Address
node setup.js

Start the nodetracker and check it's status
6Remove the old pm2 process for the nodetracker
pm2 delete 0
7Start the nodetracker process with pm2 and save it
pm2 start app.js --name nodetracker
pm2 save
8

Verify the status after restarting by following the logs and checking for valid output, exit by pressing CTRL + c


pm2 logs



© 2020 Horizen. All rights reserved.


Related content

升级tracker软件(Legacy - PM2 / Monit)
升级tracker软件(Legacy - PM2 / Monit)
More like this
Upgrading Tracker Software (systemd)
Upgrading Tracker Software (systemd)
More like this
升级tracker软件(systemd)
升级tracker软件(systemd)
More like this
Actualización de Software del Rastreador (Tracker) (Legacy - PM2/Monit)
Actualización de Software del Rastreador (Tracker) (Legacy - PM2/Monit)
More like this
Migration from Secure Node to Super Node
Migration from Secure Node to Super Node
More like this
Actualización de software del rastreador (tracker) (systemd)
Actualización de software del rastreador (tracker) (systemd)
More like this