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

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

Open
Drunkar opened this issue Sep 16, 2021 · 0 comments
Open

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

Drunkar opened this issue Sep 16, 2021 · 0 comments

Comments

@Drunkar
Copy link

Drunkar commented Sep 16, 2021

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
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