cardano-community / guild-operators

Artifacts and scripts created by Guild operators
https://cardano-community.github.io/guild-operators
MIT License
354 stars 179 forks source link

Cannot register stake pool with cntools script, getting #1589

Closed brittocj closed 1 year ago

brittocj commented 1 year ago

Describe the bug While trying to register stake pool getting following error. Command failed: transaction submit Error: Error while submitting tx: ShelleyTxValidationError ShelleyBasedEraBabbage (ApplyTxError [UtxowFailure (UtxoFailure (FromAlonzoUtxoFail (ValueNotConservedUTxO (Value 9497624778 (fromList [])) (Value 8997624778 (fromList [])))))])

To Reproduce Steps to reproduce the behavior:

  1. Run cntools and select pool, then register with details, it will throw the UTxO error after submitting final step.

Expected behavior We should able to register the pool.

Screenshots image

Version:

Additional context Add any other context about the problem here.

rdlrt commented 1 year ago

Could you create a new CNTools session, replicate the error by going to Pool > Register (if registering a new pool) OR Modify (if modifying/re-registering an already registered pool) , and then provide the complete cntools-history.log file for this session , it is important that the log isnt cropped - the one that was shared on support group simply contained output from Pool > Show and referred to TEST1 pool, while screenshots were for BRITS1 on preprod network.

brittocj commented 1 year ago

cntools-history.log Just reproduced the issue and attached the log file.

rdlrt commented 1 year ago

Did you create *.addr files elsewhere and import it to cntools (instead of creating keys/addresses via CNTools itself)? In the logs, I see the address used for stake-address-info to be the base address instead of reward/stake address

brittocj commented 1 year ago

Used cntools and got error, so tried manual commands and registered the stake pool. Last as you suggested created new pool Test123 with cntools and got same error.

rdlrt commented 1 year ago

Sorry, that's not clear to me. As said above, it seems address files in your wallet contains wrong information, if it was created manually. You have a value of addr_test1qzhr4qzuy3lvzyycl6ccmvc2r90n9x0d6xglhkyxer6wfusgv7v269cg3lly3gaxlef0vuuwqdx8yx8fsyy0nw45kdjqmzffsk for reward address instead of stake_test1uqyx0x9dzuyglljg5wn0u5hkww8qxnrjrr5czz8eh26txeqsr0sra . If so, that would not be something done from within CNTools but perhaps manually?

Also, that's not the error that you originally reported (likely coz you've now registered the pool manually).

brittocj commented 1 year ago

1) Tried creating a new wallet. 2) Got fund from faucet. 3) Created a new pool. 4) Copied cold.vkey, cold.skey, vrf.vkey and op.cert to pool directory. 5) Tried registering pool got below error. Command failed: node issue-op-cert Error: Key mismatch: the signing key does not match the one that goes with the counter

Pool Registration Transaction

Command failed: transaction submit Error: Error while submitting tx: ShelleyTxValidationError ShelleyBasedEraBabbage (ApplyTxError [UtxowFailure (UtxoFailure (FromAlonzoUtxoFail (ValueNotConservedUTxO (Value 9997821035 (fromList [])) (Value 9497821035 (fromList [])))))]) ERROR: failure during pool register! press any key to proceed .. cntools-history.log

rdlrt commented 1 year ago

If you've created a new pool , you shouldn't have to copy anything to pool directory - as it should already exist at right destination.

Again, this might be a different instance of error than before - but seems in this case, you've got an error due to cold/hot/opcert key mismatch as error says:

/usr/local/bin/cardano-cli node issue-op-cert --kes-verification-key-file /opt/cardano/cnode/priv/pool/git_test_pool/hot.vkey --cold-signing-key-file /opt/cardano/cnode/priv/pool/git_test_pool/cold.skey --operational-certificate-issue-counter-file /opt/cardano/cnode/priv/pool/git_test_pool/cold.counter --kes-period 130 --out-file /opt/cardano/cnode/priv/pool/git_test_pool/keys/op.cert

[ERROR]  Command failed: node issue-op-cert  Error: Key mismatch: the signing key does not match the one that goes with the counter

Also, I see you've really scrambled around with keys/certs (before you had mixed up base.addr with reward.addr, this time around you've got different pool keys with different pool.cert). Please DO NOT manually go into the priv folder and make changes. The human errors are exactly the reason why scripts exist. You might want to clean up your folders from wrong experiments before proceeding.

The two wallets that are correct contain these addresses: addr_test1qr70734z9ee0pr7fzumj0tzr0h0yvr6np6v0c6genm03pnasmwglvx3ryv5wa8qx4cd58fndzj4lhmedxz3mhn9n2d7s7upyhd

The only pool that is registered is pool1al30ghsq7n335v9zdrnd0dpuva435c9yqtsrvphsfcgjytz3exp

rdlrt commented 1 year ago

This being 3rd different issue reported on this issue (alongwith traces that show manual tampering of key files in the folder), am gonna go ahead and close this one for now - as the issue description as well as steps taken are chaotic with different issue on different attempts.