GithubHelp home page GithubHelp logo

ansible-zencash-nodes's People

Contributors

alchemydc avatar blockzilladev avatar rmeleromira avatar spiral11 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ansible-zencash-nodes's Issues

The `lxc` module is not importable. Check the requirements.

Hi. I get the following error. Which I did not manage to resolve myself:

failed: [master01] (item={'changed': False, 'stat': {'exists': False}, 'invocation': {'module_args': {'path': '/var/lib/lxc/sec01.zennode.club/.configured', 'follow': False, 'get_checksum': True, 'get_mime': True, 'get_attributes': True, 'checksum_algorithm': 'sha1', 'get_md5': None}}, 'failed': False, 'item': 'secnode01', 'ansible_loop_var': 'item'}) => {"ansible_loop_var": "item", "changed": false, "item": {"ansible_loop_var": "item", "changed": false, "failed": false, "invocation": {"module_args": {"checksum_algorithm": "sha1", "follow": false, "get_attributes": true, "get_checksum": true, "get_md5": null, "get_mime": true, "path": "/var/lib/lxc/sec01.zennode.club/.configured"}}, "item": "secnode01", "stat": {"exists": false}}, "msg": "The lxc module is not importable. Check the requirements."

lxc-net issues

Running ubuntu 16.04 as ansible_host, when running nodes.yml playbook, I have trouble with lxc-net due to missing dnsmasq.conf file

Sep 06 10:56:16 blah lxc-net[18765]: dnsmasq: cannot read /etc/lxc/dnsmasq.conf: No such file or directory
Sep 06 10:56:16 blah dnsmasq[18809]: cannot read /etc/lxc/dnsmasq.conf: No such file or directory
Sep 06 10:56:16 blah dnsmasq[18809]: FAILED to start up
Sep 06 10:56:16 blah lxc-net[18765]: Failed to setup lxc-net.

lxc-create --version

2.0.11

Has to do with this:

  • name: Enable static lxc addresses
    lineinfile:
    path: /etc/default/lxc-net
    line: 'LXC_DHCP_CONFILE=/etc/lxc/dnsmasq.conf'
    register: lxc_net
    when: "groups['supernodes'] is defined"

Dont understand why it triggers, have to comment supernodes as it seems.

nodes failing

Running few nodes and they started failing. Zend unable to work, constantly restarting. Due to the error, seems like a corrupted wallet.dat file.

Tried:
-restarting container
-deleting and creating new container with restored wallet
-rsyncing blockchain data from good node

Currently running zend -reindex but it is slow as hell, 24h and still not complete

Error in question is :

Sep 20 07:09:56 z8 zend[13843]: zend: wallet/wallet.cpp:698: void CWallet::IncrementNoteWitnesses(const CBlockIndex*, const CBlock*, ZCIncrementalMerkleTree&): Assertion (nd->witnessHeight == -1) || (nd->witnessHeight == pindex->nHeight - 1)' failed.
`
Log output:

Sep 20 07:06:29 z8 systemd[1]: Starting ZenCash Node Server... Sep 20 07:06:29 z8 zend[13843]: Zen server starting Sep 20 07:06:29 z8 zend[13843]: Horizen version v2.0.18 (2019-07-03 18:36:44 +0000) Sep 20 07:06:29 z8 zend[13843]: AppInit2: parameter interaction: -externalip set -> setting -discover=0 Sep 20 07:06:29 z8 zend[13843]: Zen server starting Sep 20 07:06:29 z8 systemd[1]: Started ZenCash Node Server. Sep 20 07:06:29 z8 zend[13843]: Zen version v2.0.18 (2019-07-03 18:36:44 +0000) Sep 20 07:06:29 z8 zend[13843]: Using OpenSSL version OpenSSL 1.1.1c 28 May 2019 Sep 20 07:06:29 z8 zend[13843]: Using BerkeleyDB version Berkeley DB 6.2.23: (March 28, 2016) Sep 20 07:06:29 z8 zend[13843]: Startup time: 2019-09-20 07:06:29 Sep 20 07:06:29 z8 zend[13843]: Default data directory /home/zend/.zen Sep 20 07:06:29 z8 zend[13843]: Using data directory /home/zend/.zen Sep 20 07:06:29 z8 zend[13843]: Using config file /home/zend/.zen/zen.conf Sep 20 07:06:29 z8 zend[13843]: Using at most 125 connections (1024 file descriptors available) Sep 20 07:06:29 z8 zend[13843]: Using 6 threads for script verification Sep 20 07:06:29 z8 zend[13843]: Loading verifying key from /home/zend/.zcash-params/sprout-verifying.key Sep 20 07:06:29 z8 zend[13843]: scheduler thread start Sep 20 07:06:29 z8 zend[13843]: Loaded verifying key in 0.007709s seconds. Sep 20 07:06:29 z8 zend[13843]: Loading Sapling (Spend) parameters from /home/zend/.zcash-params/sapling-spend.params Sep 20 07:06:29 z8 zend[13843]: Loading Sapling (Output) parameters from /home/zend/.zcash-params/sapling-output.params Sep 20 07:06:29 z8 zend[13843]: Loading Sapling (Sprout Groth16) parameters from /home/zend/.zcash-params/sprout-groth16.params Sep 20 07:06:33 z8 zend[13843]: Loaded Sapling parameters in 3.382360s seconds. Sep 20 07:06:33 z8 zend[13843]: Binding RPC on address 0.0.0.0 port 18231 failed. Sep 20 07:06:33 z8 zend[13843]: HTTP: creating work queue of depth 16 Sep 20 07:06:33 z8 zend[13843]: HTTP: starting 4 worker threads Sep 20 07:06:33 z8 zend[13843]: Using wallet wallet.dat Sep 20 07:06:33 z8 zend[13843]: init message: Verifying wallet... Sep 20 07:06:33 z8 zend[13843]: CDBEnv::Open: LogDir=/home/zend/.zen/database ErrorFile=/home/zend/.zen/db.log Sep 20 07:06:33 z8 zend[13843]: Bound to [::]:9033 Sep 20 07:06:33 z8 zend[13843]: Bound to 0.0.0.0:9033 Sep 20 07:06:33 z8 zend[13843]: AddLocal([xxxx]:9033,4) Sep 20 07:06:33 z8 zend[13843]: Cache configuration: Sep 20 07:06:33 z8 zend[13843]: * Using 12.5MiB for block index database Sep 20 07:06:33 z8 zend[13843]: * Using 29.9MiB for chain state database Sep 20 07:06:33 z8 zend[13843]: * Using 57.6MiB for in-memory UTXO set Sep 20 07:06:33 z8 zend[13843]: init message: Loading block index... Sep 20 07:06:33 z8 zend[13843]: Opening LevelDB in /home/zend/.zen/blocks/index Sep 20 07:06:33 z8 zend[13843]: Opened LevelDB successfully Sep 20 07:06:33 z8 zend[13843]: Opening LevelDB in /home/zend/.zen/chainstate Sep 20 07:06:33 z8 zend[13843]: Opened LevelDB successfully Sep 20 07:06:37 z8 node[8806]: 2019-09-20 07:06:37 UTC -- Checking t-address... Sep 20 07:06:37 z8 node[8806]: 2019-09-20 07:06:37 UTC -- Zend: Waiting - Loading block index... Sep 20 07:06:53 z8 zend[13843]: LoadBlockIndexDB: last block file = 142 Sep 20 07:06:53 z8 zend[13843]: LoadBlockIndexDB: last block file info: CBlockFileInfo(blocks=336, size=28391351, heights=588543...588897, time=2019-09-18...2019-09-19) Sep 20 07:06:53 z8 zend[13843]: Checking all blk files are present... Sep 20 07:06:53 z8 zend[13843]: LoadBlockIndexDB: transaction index enabled Sep 20 07:06:54 z8 zend[13843]: LoadBlockIndexDB: hashBestChain=0000000010bb4ccac7d057ca6c0c9ae30ab56bbfb6e169af68dd8af4bcffbd67 height=588897 date=2019-09-19 14:45:53 progress=0.997965 Sep 20 07:06:54 z8 zend[13843]: init message: Verifying blocks... Sep 20 07:06:54 z8 zend[13843]: Verifying last 288 blocks at level 3 Sep 20 07:06:57 z8 node[8806]: 2019-09-20 07:06:57 UTC -- Checking t-address... Sep 20 07:06:57 z8 node[8806]: 2019-09-20 07:06:57 UTC -- Zend: Waiting - Verifying blocks... Sep 20 07:07:17 z8 node[8806]: 2019-09-20 07:07:17 UTC -- Checking t-address... Sep 20 07:07:17 z8 node[8806]: 2019-09-20 07:07:17 UTC -- Zend: Waiting - Verifying blocks... Sep 20 07:07:37 z8 node[8806]: 2019-09-20 07:07:37 UTC -- Checking t-address... Sep 20 07:07:37 z8 node[8806]: 2019-09-20 07:07:37 UTC -- Zend: Waiting - Verifying blocks... Sep 20 07:07:57 z8 node[8806]: 2019-09-20 07:07:57 UTC -- Checking t-address... Sep 20 07:07:57 z8 node[8806]: 2019-09-20 07:07:57 UTC -- Zend: Waiting - Verifying blocks... Sep 20 07:08:17 z8 node[8806]: 2019-09-20 07:08:17 UTC -- Checking t-address... Sep 20 07:08:17 z8 node[8806]: 2019-09-20 07:08:17 UTC -- Zend: Waiting - Verifying blocks... Sep 20 07:08:37 z8 node[8806]: 2019-09-20 07:08:37 UTC -- Checking t-address... Sep 20 07:08:37 z8 node[8806]: 2019-09-20 07:08:37 UTC -- Zend: Waiting - Verifying blocks... Sep 20 07:08:57 z8 node[8806]: 2019-09-20 07:08:57 UTC -- Checking t-address... Sep 20 07:08:57 z8 node[8806]: 2019-09-20 07:08:57 UTC -- Zend: Waiting - Verifying blocks... Sep 20 07:09:17 z8 node[8806]: 2019-09-20 07:09:17 UTC -- Checking t-address... Sep 20 07:09:17 z8 node[8806]: 2019-09-20 07:09:17 UTC -- Zend: Waiting - Verifying blocks... Sep 20 07:09:37 z8 node[8806]: 2019-09-20 07:09:37 UTC -- Checking t-address... Sep 20 07:09:37 z8 node[8806]: 2019-09-20 07:09:37 UTC -- Zend: Waiting - Verifying blocks... Sep 20 07:09:56 z8 zend[13843]: No coin database inconsistencies in last 165 blocks (9040 transactions) Sep 20 07:09:56 z8 zend[13843]: block index 203007ms Sep 20 07:09:56 z8 zend[13843]: init message: Loading wallet... Sep 20 07:09:56 z8 zend[13843]: nFileVersion = 2001850 Sep 20 07:09:56 z8 zend[13843]: Keys: 102 plaintext, 0 encrypted, 102 w/ metadata, 102 total Sep 20 07:09:56 z8 zend[13843]: ZKeys: 2 plaintext, 0 encrypted, 2 w/metadata, 2 total Sep 20 07:09:56 z8 zend[13843]: wallet 139ms Sep 20 07:09:56 z8 zend[13843]: init message: Rescanning... Sep 20 07:09:56 z8 zend[13843]: Rescanning last 342697 blocks (from block 246200)... Sep 20 07:09:56 z8 zend[13843]: zend: wallet/wallet.cpp:698: void CWallet::IncrementNoteWitnesses(const CBlockIndex*, const CBlock*, ZCIncrementalMerkleTree&): Assertion (nd->witnessHeight == -1) || (nd->witnessHeight == pindex->nHeight - 1)' failed.
Sep 20 07:09:56 z8 systemd[1]: zend.service: Main process exited, code=killed, status=6/ABRT
Sep 20 07:09:56 z8 zen-cli[13865]: error: couldn't connect to server: unknown (code -1)
Sep 20 07:09:56 z8 zen-cli[13865]: (make sure server is running and you are connecting to the correct RPC port)
Sep 20 07:09:56 z8 systemd[1]: zend.service: Control process exited, code=exited status=1
Sep 20 07:09:56 z8 systemd[1]: zend.service: Unit entered failed state.
Sep 20 07:09:56 z8 systemd[1]: zend.service: Failed with result 'exit-code'.
Sep 20 07:09:56 z8 systemd[1]: zend.service: Service hold-off time over, scheduling restart.
Sep 20 07:09:56 z8 systemd[1]: Stopped ZenCash Node Server.`

Did someone encounter similar issue? Didnt happen ever on "normal" vps nodes I was running before, so this one is new to me ๐Ÿ’ƒ

Issue running playbook

When I run "ansible-playbook nodes.yml" after following the previous instructions It fails and spits this error out.

ERROR! ERROR! inventory.yml:3: Expected key=value host variable assignment, got: {{vault_ssh_username}}

issue with playbook

I changed inventory.yml, put master ansible_host tolocalhost, but keep getting this error:

TASK [Gathering Facts] **********************************************************************************************************************************************************************************************************************
fatal: [master01]: UNREACHABLE! => {"changed": false, "msg": "SSH Error: data could not be sent to remote host "localhost". Make sure this host can be reached over ssh", "unreachable": true}

PLAY RECAP **********************************************************************************************************************************************************************************************************************************
master01 : ok=0 changed=0 unreachable=1 failed=0

can I restore nodes?

Say I have few nodes running already, and want to migrate to lxc containers. Is it possible to copy wallets and nodetracker configs in order to restore them? Kind of like a normal vps migration?

"Destination directory /home/zend/.zen does not exist"

Thank you very much for creating this repository.

I have some issue with the installation. If I run ansible-playbook nodes.yml I get the following error:

fatal: [secnode01]: FAILED! => {"changed": false, "checksum": "e70143de7c0be14a1efc5bf31adea6de07cb0427", "msg": "Destination directory /home/zend/.zen does not exist"}

If I run ansible-playbook --check nodes.yml I get the follwing:

fatal: [secnode01]: FAILED! => {"changed": false, "module_stderr": "sudo: unknown user: zend\nsudo: unable to initialize policy plugin\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}

The container is created and if I log in to it, I see the dictionary

/home/zend/.zen

exists.
Do you have any idea, what I can do to solve this problem?

ZEN 2.0.24 Released

Hello. Do you have any plans, so that the ansible-zencash-nodes will be compatible with ZEN 2.0.24?

ansible with lxc-create failing

I am having trouble getting lxc-create task working (roles/master/tasks/lxc.yaml:49)
With ansible 6.6.0 or newer version (current is 7.1.0) lxc-create task fails saying "logfile is not correct storage type" or something due to the fact that commands in lxc_container module get interpreted wrong and syntax for lxc-create command is wrong then.

source: ansible-collections/community.general#5578

Only solution I found was to lock ansible version to 6.5.0 in install_host_deps.sh

@rmeleromira do you use this still? Can anyone else relate or confirm this?

EDIT2: It is fixed in community.general 6.2.0 that is not yet bundled with ansible 7.1.0, so manual upgrade is needed:

# ansible-galaxy collection install community.general --upgrade

Closing because collection upgrade fixes issue with ansible >=6.6.0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.