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 not add a new node after an original node is removed #382

Open
wwestgarth opened this issue Feb 27, 2023 · 0 comments
Open

Cannot not add a new node after an original node is removed #382

wwestgarth opened this issue Feb 27, 2023 · 0 comments
Labels
bug Something isn't working vegacapsule

Comments

@wwestgarth
Copy link
Contributor

Start a network with 3 validator nodes.

Remove node 1 from the network, it works:

$ vegacapsule nodes remove --name testnet-nodeset-validators-1-validator
2023/02/27 12:43:11 stopping testnet-nodeset-validators-1-validator node set
2023/02/27 12:43:11 Trying to stop jobs: testnet-nodeset-validators-1-validator
2023/02/27 12:43:13 Job "testnet-nodeset-validators-1-validator" stopped
2023/02/27 12:43:13 Jobs have been stopped.
2023/02/27 12:43:13 stopping testnet-nodeset-validators-1-validator node set success

Try to then add a new node, and it fails:

$ vegacapsule nodes add --base-on testnet-nodeset-validators-0-validator
2023/02/27 12:43:49 Initiating Tendermint node "validator" with: /Users/wwestgarth/go2/bin/vega [tm init validator --home /Users/wwestgarth/.vegacapsule/testnet/tendermint/node2]
2023/02/27 12:43:49 I[2023-02-27|12:43:49.884] Found private validator                      module=main keyFile=/Users/wwestgarth/.vegacapsule/testnet/tendermint/node2/config/priv_validator_key.json stateFile=/Users/wwestgarth/.vegacapsule/testnet/tendermint/node2/data/priv_validator_state.json
I[2023-02-27|12:43:49.884] Found node key                               module=main path=/Users/wwestgarth/.vegacapsule/testnet/tendermint/node2/config/node_key.json
I[2023-02-27|12:43:49.884] Found genesis file                           module=main path=/Users/wwestgarth/.vegacapsule/testnet/tendermint/node2/config/genesis.json

2023/02/27 12:43:49 Initiating node "validator" with: /Users/wwestgarth/go2/bin/vega [init --home /Users/wwestgarth/.vegacapsule/testnet/vega/node2 --nodewallet-passphrase-file /Users/wwestgarth/.vegacapsule/testnet/vega/node2/node-vega-wallet-pass.txt --no-tendermint --output json validator]
2023/02/27 12:43:49 Trying to stop jobs: ganache-1, testnet-nodeset-validators-0-validator, testnet-nodeset-validators-2-validator, testnet-vegawallet
2023/02/27 12:43:49 Job "testnet-vegawallet" stopped
2023/02/27 12:43:51 Job "ganache-1" stopped
2023/02/27 12:43:51 Job "testnet-nodeset-validators-2-validator" stopped
2023/02/27 12:43:51 Job "testnet-nodeset-validators-0-validator" stopped
2023/02/27 12:43:51 Jobs have been stopped.
Error: failed to add new node: failed to initiate Vega node id 2 for node set validators: failed to initiate vega node: failed to execute binary /Users/wwestgarth/go2/bin/vega [init --home /Users/wwestgarth/.vegacapsule/testnet/vega/node2 --nodewallet-passphrase-file /Users/wwestgarth/.vegacapsule/testnet/vega/node2/node-vega-wallet-pass.txt --no-tendermint --output json validator] with error: configuration already exists at `/Users/wwestgarth/.vegacapsule/testnet/vega/node2/config/node/config.toml` please remove it first or re-run using -f
: exit status 255
Usage:
  vegacapsule nodes add [flags]

Flags:
      --base-on string    Name of the node set that the new node set should be based on
      --count int         Defines how many node sets should be added (default 1)
  -h, --help              help for add
      --out-path string   If not empty, details about added nodes are saved in the given file
      --start             Allows to configure whether or not the new node set should automatically start (default true)

Global Flags:
      --home-path string   Specify the location of network home directory (default "/Users/wwestgarth/.vegacapsule/testnet")

because it tries to create the new node as if it is node number 2, when really its node number 3 (even though the existing node count is 2)

@wwestgarth wwestgarth added the bug Something isn't working label Feb 27, 2023
@gordsport gordsport moved this to Todo in Core Kanban Mar 20, 2023
@gordsport gordsport removed this from Core Kanban Oct 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working vegacapsule
Projects
None yet
Development

No branches or pull requests

2 participants