cosmos / gaia

Cosmos Hub
https://hub.cosmos.network
Apache License 2.0
465 stars 679 forks source link

Quicksync with existing validator private key doesn't work #1836

Closed bb4L closed 1 year ago

bb4L commented 1 year ago

Summary of Bug

I tried to setup an cosmos node with quicksync using a existing validator private key ( following the instructions given here: https://hub.cosmos.network/main/getting-started/quickstart.html )

When i try to start the node i always get the following output:

panic: state.AppHash does not match AppHash after replay. Got
...
cosmos  | Did you reset Tendermint without resetting your application's data?

Version

7.1.0

Steps to Reproduce


For Admin Use

williambanfield commented 1 year ago

Hey @bb4L, does this same issue occur with different keys or only with the key you are using? I don't think that that should influence the AppHash here :thinking:

tac0turtle commented 1 year ago

it looks like you didnt reset you application data. When using quicksync or a snapshot you have to reset-unsafe in order to reset the application state. Its not possible to stop your node, switch db data and height then start without resetting

bb4L commented 1 year ago

Hey @bb4L, does this same issue occur with different keys or only with the key you are using? I don't think that that should influence the AppHash here 🤔

i think having no key defined would have started it up iirc

it looks like you didnt reset you application data. When using quicksync or a snapshot you have to reset-unsafe in order to reset the application state. Its not possible to stop your node, switch db data and height then start without resetting

but if i would do the reset-unsafe then i would resync from scratch wouldn't i? so the quicksync wouldn't be used, would it?

tac0turtle commented 1 year ago

but if i would do the reset-unsafe then i would resync from scratch wouldn't i? so the quicksync wouldn't be used, would it?

you need to reset then put the new data into the data directory. then it will start up

bb4L commented 1 year ago

but if i would do the reset-unsafe then i would resync from scratch wouldn't i? so the quicksync wouldn't be used, would it?

you need to reset then put the new data into the data directory. then it will start up

ok i did that:

but i still get the same error