Upgrade zend daemon using apt

Upgrade zend daemon using apt

NOTICE: Support for Ubuntu 18.04 and Debian 8 and 9 have been deprecated with ZEND 4.1.0. These distributions will no longer be able to upgrade using apt. You can still build ZEND from source for these distributions.

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

  • Upgrading the zend daemon

 

Description

Command

Description

Command

1

Upgrading the zend daemon

2

Update the zen.list to point to the new HorizenOffical git repo and update the apt cache and Install zen, this will upgrade the zend daemon if a new version is available

 

 

 

Update zen.list file to use the horizenofficial git repo

sudo sed -i 's/[zZ][eE][nN][cC][aA][sS][hH][oO][fF][fF][iI][cC][iI][aA][lL]/HorizenOfficial/g' /etc/apt/sources.list.d/zen.list

Update the apt cache and confirm the repo update following the steps bellow (if prompted)

sudo apt-get update

When running sudo apt-get update you might get an error like this:

To fix this please accept the change in origin by pressing y + ENTER if this dialog appears:

Update the apt cache and Install zen, this will upgrade the zend daemon if a new version is available

sudo rm -r /var/lib/apt/lists/* && sudo apt-get update && sudo apt-get install zen -y
3

Download the required parameters for zend

 

NOTE: This will only download parameters that are missing

zen-fetch-params
4

Stop zend after the upgrade has completed

For installations using systemd (assumes the unit file is named 'zend.service')

sudo systemctl stop zend

For installations using monit

sudo monit stop zend

For installations manually running zend

zen-cli stop && sleep 5
5

Check zend's version

 

***CHECK FOR "Zen Daemon version v4.1.0"***

 

zend --version
6

Start zend monitoring services after the upgrade has been completed

For installations using systemd (assumes the unit file is named 'zend.service')

sudo systemctl start zend

For installations using monit

sudo monit start zend

For installations manually running zend

zend
7

Restarting zentracker

8

Restart zentracker after zend has restarted

For installations using systemd

sudo systemctl restart zentracker

For installations using pm2 (assumes the tracker is running as the only or first process, numbered 0)

pm2 restart 0