symbol-bootstrap icon indicating copy to clipboard operation
symbol-bootstrap copied to clipboard

Cannot update voting keys if node is stopped and the key is expired

Open Drunkar opened this issue 3 years ago • 0 comments

Describe the bug I turned my node's voting to false because the chain height was stuck yesterday. Then I tried to update my voting keys but how do I issue symbol-bootstrap updateVotingKeys command? When I tried to run symbol-bootstrap config with voting: true, it failed in error: Unexpected voting key file. Expected 176 but got 0. I couldn't issue the updateVotingKeys command because the node won't start.

To Reproduce To reproduce the behavior:

  1. Voting key expired.
  2. Stop node (symbol-bootstrap stop)
  3. Set voting: false and restart node. (symbol-bootstrap start -p mainnet -a dual -c my-preset.yml --upgrade -d)
  4. Stop node (symbol-bootstrap stop)
  5. Set voting: true and restart node. (symbol-bootstrap start -p mainnet -a dual -c my-preset.yml --upgrade -d) or config node (symbol-bootstrap config -p mainnet -a dual -c my-preset.yml --upgrade)

Expected behavior One of followings:

  • We can update voting keys when the node is down.
  • Voting keys will be updated automatically.
  • We can start node with expired voting keys.

Logs

2021-09-16T16:24:49.190Z warn     There has been an error talking to node http://ngl-dual-004.symbolblockchain.io:3000. Error: request to http://ngl-dual-004.symbolblockchain.io:3000/chain/info failed, reason: connect ETIMEDOUT 34.228.7.51:3000}
2021-09-16T16:24:51.236Z warn     There has been an error talking to node http://ngl-api-301.symbolblockchain.io:3000. Error: request to http://ngl-api-301.symbolblockchain.io:3000/chain/info failed, reason: connect ETIMEDOUT 34.245.198.230:3000}
2021-09-16T16:24:51.237Z info     The current network finalization epoch is 369
2021-09-16T16:24:51.252Z info     Generating node server configuration
2021-09-16T16:24:51.351Z info     Generating broker broker configuration
2021-09-16T16:24:51.403Z error    Unknown error generating the configuration. Unexpected voting key file. Expected 176 but got 0
2021-09-16T16:24:51.403Z error    The target folder 'target' should be deleted!!!

Desktop (please complete the following information):

  • OS: Ubuntu 20.04.2 LTS
  • Tool Version: symbol-bootstrap/1.0.9 linux-x64 node-v10.19.0
  • Docker Version: Docker version 20.10.5, build 55c4c88
  • Node Version: v10.19.0

Drunkar avatar Sep 16 '21 16:09 Drunkar