I got this issue in my prod chain How can we restart the chain if it becomes stuck during data migration?
I am not able to start the chain. Is there any way to start the chain with existing database.
Substrate and Polkadot Stack Exchange is a question and answer site for developers building blockchains with the Substrate SDK. It only takes a minute to sign up.
Sign up to join this communityI got this issue in my prod chain How can we restart the chain if it becomes stuck during data migration?
I am not able to start the chain. Is there any way to start the chain with existing database.
For that first we need to export the state of the chain on any given blocknumber.
./target/release/chain-node export-state --chain=currentChainSpecRaw.json --base-path /Users/pcs/documents/node01 1000 > chain-exported-100.json
Then you need to start the the chain with the exported chainspec.
--base-path /path/to/database
flag when starting the chain. if you are doing--dev
I think your database will be in the /tmp which will be deleted every new start.