Posted on

Update ZEN Secure node zend daemon

As we all know Zen version 2.0.11 has been released to solves some blockchain indexing issues on secure nodes. The current version 2.0.10 will be deprecated in April and hence all Secure Nodes need to be updated before then.

For higher up-time and better performance, we recommend using Contabo VPS for hosting secure nodes.

Here are few simple steps to update the zend daemon on your ZEN secure nodes:

  • Updating the zend daemon from new APT repo:

The APT repo has just been updated with the SSL/TLS bug fix. To install the updated daemon with minimal downtime you can do the following:

sudo apt-get update
sudo apt-get install zen
zen-cli stop (then wait for 5 seconds)
zend

You can verify that you are at the latest version by running:

zen-cli getnetworkinfo | grep version

 

  • This process will only work for those who built their zend from source not the APT repo:

To update the zend daemon on your secure nodes you would have needed to have built your zend daemon from source. If you did this, you can update your secure nodes by running the following:

Navigate to the zen directory, if you followed mine or Blockops guides this will be located in the zencash directory:

cd ~/zencash/zen/

Next we need to fetch the updated code:

git fetch origin
git checkout master

Note: if it asks you to ‘git pull’ please run

git pull

Now we need to build the daemon:

./zcutil/build.sh -j$(nproc)

Now we need to stop the zend daemon and update zend and zen-cli binaries in /usr/bin. This can be done by running the following commands, if you use monit to run your zend daemon.

sudo monit stop zend

wait for 5 seconds and then run:

sudo cp src/zend /usr/bin
sudo cp src/zen-cli /usr/bin
sudo monit start zend

If you do not use monit on your secure nodes you can stop the daemon by running:

zen-cli stop

(wait 5 seconds)

sudo cp src/zend /usr/bin
sudo cp src/zen-cli /usr/bin

And finally starting the daemon again:

zend

You can verify that you are at the latest version by running:

zen-cli getnetworkinfo | grep version
Leave a Reply

Your email address will not be published. Required fields are marked *