Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

oasis-node cmd for wiping the state #2435

Closed
matevz opened this issue Nov 27, 2019 · 0 comments · Fixed by #2490
Closed

oasis-node cmd for wiping the state #2435

matevz opened this issue Nov 27, 2019 · 0 comments · Fixed by #2490
Assignees
Labels
c:cli Category: command line interface

Comments

@matevz
Copy link
Member

matevz commented Nov 27, 2019

Current upgrade process for the node operator requires downloading a new genesis file, wiping the state (but keeping the entity) and run the new oasis node. I suggest we add oasis-node clean command or --rebuild flag or something similar which effectively does (taken from operator docs):

$ rm -rf /serverdir/node/tendermint
$ rm -rf /serverdir/node/bleve-tag-index.bleve.db
$ rm /serverdir/node/abci-mux-state.bolt.db
$ rm /serverdir/node/persistent-store.db

And the next time you run oasis-node it re-downloads and verifies all blocks.

It also seems convenient for node operator support to just say to them "try running oasis-node clean" instead of pointing them to all the rm commands in docs.

@kostko kostko added the c:cli Category: command line interface label Nov 28, 2019
@Yawning Yawning self-assigned this Dec 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c:cli Category: command line interface
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants