In polkadot.js staking , when i put the session key, the result is "duplicated session key"

I use the command in SSH "echo '{"id":1,"jsonrpc":"2.0","method":"author_rotateKeys","params":[]}' | websocket -n1 -B 99999999 ws://"

I run 2 nodes with different server, I already erase the node and start new node with different server, so I wanted change the session key but it does not work. duplicated session key again and again

what is the problem??

  • are you putting the same session key in both nodes? Commented Jul 4, 2023 at 6:29

2 Answers 2

  1. Have you properly cleaned the database? Make sure to stop all nodes and clean their respective databases. If you stop-clean-start each node individually, the new database will immediately sync with the data from the old node.
  2. There is no need to set this again if you have already set the keys in genesis.
  3. Did you accidentally send multiple set_keys extrinsics?
  • quite a messy.. i gotta clrean and start new~ thanks~ i will try it again~
    – jay p
    Commented Jul 5, 2023 at 12:39

I think this error is sent if chain is not synced yet making it freaking confusing. I have now created container with polkadot service 3 times ad each time tehre is already duplicate of the key when I first tiem rotate it... there also is no way to search where this duiplicate exists..

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.