Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zen 2.0.22 info #144

Open
jurgis opened this issue Nov 15, 2020 · 0 comments
Open

zen 2.0.22 info #144

jurgis opened this issue Nov 15, 2020 · 0 comments

Comments

@jurgis
Copy link

jurgis commented Nov 15, 2020

I do appreciate all the hard work which has been put in to create and update this repository.
But servers need to be updated ...

In case somebody else is still waiting for docker repository https://hub.docker.com/r/whenlambomoon/zend/tags to be rebuilt
so you can restart zen-node services and be upgraded to 2.0.22
https://blog.horizen.io/mandatory-software-upgrade-download-zen-2-0-22-now/

I gave up and moved to gitlab and set up CI there: https://gitlab.com/crypto1/docker-zen-node

Here are some ansible scripts which I used to update nodes, first one and then the rest

# change zend repo and upgrade (first use -l zen-server1, then -l '!zen-server1')
ansible zennodes -i hosts/hosts -m shell -a 'docker pull registry.gitlab.com/crypto1/docker-zen-node/zend:latest' -l zen-server1
ansible zennodes -i hosts/hosts -m shell -a 'sudo sed -i 's@whenlambomoon/zend:[email protected]/crypto1/docker-zen-node/zend:latest@g' /etc/systemd/system/zen-node.service' -l zen-server1

ansible zennodes -i hosts/hosts -m shell -a 'sudo cat /etc/systemd/system/zen-node.service' -l zen-server1
ansible zennodes -i hosts/hosts -m shell -a 'sudo systemctl daemon-reload' -l zen-server1
ansible zennodes -i hosts/hosts -m shell -a 'sudo systemctl restart zen-node' -l zen-server1
ansible zennodes -i hosts/hosts -m shell -a 'docker exec zen-node gosu user zen-cli getinfo | grep \"version' -l zen-server1
ansible zennodes -i hosts/hosts -m shell -a 'sudo systemctl restart zen-secnodetracker' -l zen-server1
ansible zennodes -i hosts/hosts -m shell -a 'docker logs zen-secnodetracker | tail -n 5' -l zen-server1

In case you do not use ansible here are the same scripts which you can execute one by one on the server

docker pull registry.gitlab.com/crypto1/docker-zen-node/zend:latest
sudo sed -i 's@whenlambomoon/zend:[email protected]/crypto1/docker-zen-node/zend:latest@g' /etc/systemd/system/zen-node.service
sudo cat /etc/systemd/system/zen-node.service
sudo systemctl daemon-reload
sudo systemctl restart zen-node
docker exec zen-node gosu user zen-cli getinfo | grep \"version
sudo systemctl restart zen-secnodetracker
docker logs zen-secnodetracker | tail -n 5

Add sudo before docker if you are not in the docker group.

You can also see other docker image tags here (need to log in to see them, not sure if it is a bug):
https://gitlab.com/crypto1/docker-zen-node/container_registry/1492098
Those which can be used are:

  • latest (which is the latest from ubuntu-16.04 for now)
  • ubuntu-16.04-latest (you can use this if you do not want to be upgraded to ubuntu 18.04 and 20.04 image later)
  • ubuntu-16.04-v2.0.22 (use this if you do not like that some changes could bring down your nodes)
  • ubuntu-18.04-latest (not tested yet, but the same as for ubuntu 16.04)
  • ubuntu-18.04-v2.0.22

I have not yet tested ubuntu-18.04 images so use at your own risk.
And image for ubuntu-20.04 had some issue and I did not have time to figure out what was wrong.

Good luck!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant