1

Encountered the following error while simulating a network when running the command:

./target/release/node-template purge-chain --base-path /tmp/alice --chain local

I got error indicating

/tmp/alice/chains/local_testnet/db/full did not exist.

Can we proceed with next step in the substrate documentation without purging the old chain data.

enter image description here

1 Answer 1

1

That is not an error, more of an indication.

If you really want to check you can manually look in those folders:

ls /tmpl/alice/chains/local_testnet/db
ls /tmpl/alice/chains/local_testnet
ls /tmpl/alice/chains
ls /tmp/alice
ls /tmp

You probably do not see anything there because you ran your Substrate blockchain using --dev or --tmp which wipes the db after you shutdown the running blockchain.

--tmp
Run a temporary node. A temporary directory will be created to store the configuration and will be deleted at the end of the process. Note: the directory is random per process execution. 
This directory is used as base path which includes: database, node key and keystore. 
When `--dev` is given and no explicit `--base-path`, this option is implied
6
  • Can we proceed with next steps without purging the old chain data, or is that step neccessary to purge that.
    – Preethi M
    Jul 24 at 5:54
  • Which documentation/steps are you referring to?
    – Bruno
    Jul 24 at 13:14
  • Substrate documentation
    – Preethi M
    Jul 24 at 13:46
  • I am guessing you're following a tutorial? Do you have a link to the tutorial or steps you're referring to?
    – Bruno
    Jul 24 at 19:02
  • docs.substrate.io/quick-start in this documentation I'm following tutorial.
    – Preethi M
    Jul 25 at 6:06

Your Answer

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

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