Migrate zend Installation From Source to APT Repository
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.
Logged in as the non-root user
Add the zen apt repository
Install zen
Description | Command | |
|---|---|---|
| 1 | Update the package cache | sudo apt-get update |
| 2 | Install pre-requisites (apt-transport-https, lsb-release) | sudo apt-get install apt-transport-https lsb-release |
| 3 | Stop zend - use the command relevant to your installation | For installations using systemd (assumes the unit file is named 'zend.service') sudo systemctl stop zendFor installations using monit sudo monit stop zendFor installations manually running zend zen-cli stop && sleep 5 |
| 4 | Add the Horizen repository to the 'sources.list' file | echo 'deb https://HorizenOfficial.github.io/repo/ '$(lsb_release -cs)' main' | sudo tee /etc/apt/sources.list.d/zen.list |
| 5 | Pull the gpg key used to sign Horizen packages | Pulling the gpg key may take some time, if it times out, run it again until it has been imported gpg --keyserver ha.pool.sks-keyservers.net --recv 219F55740BBF7A1CE368BA45FB7053CE4991B669
Alternate key server if the one above fails to respond gpg --keyserver keyserver.ubuntu.com --recv 219F55740BBF7A1CE368BA45FB7053CE4991B669 |
| 6 | Export the gpg key and add to apt, this enables package verification | gpg --export 219F55740BBF7A1CE368BA45FB7053CE4991B669 | sudo apt-key add -
|
| 7 | Update the package cache again with the Horizen repository now added as a source | sudo apt-get update |
| 8 | Install the zend daemon | sudo apt-get install zen -y |
| 9 | Download the required parameters for zend NOTE: This will only download parameters that are missing | zen-fetch-params |
| 10 | Check zend's version ***CHECK FOR "Zen Daemon version v4.1.0"*** | zend --version |
| 11 | 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 zendFor installations using monit sudo monit start zendFor installations manually running zend zend |
| 12 | Restarting zentracker | |
| 13 | Restart zentracker after zend has restarted | For installations using systemd (assumes the unit file is named 'zentracker.service') sudo systemctl restart zentrackerFor installations using pm2 (assumes the tracker is running as the only or first process, numbered 0) pm2 restart 0 |