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

error comes out that "database dirty flag set " when running "$ nodeos" #3522

Closed
Justin-ye opened this issue May 29, 2018 · 6 comments
Closed

error comes out that "database dirty flag set " when running "$ nodeos" #3522

Justin-ye opened this issue May 29, 2018 · 6 comments

Comments

@Justin-ye
Copy link

@Justin-ye Justin-ye commented May 29, 2018

JiQin-MacBook-Pro:nodeos ye$ nodeos
836674ms thread-0 chain_plugin.cpp:130 plugin_initialize ] initializing chain plugin
836678ms thread-0 main.cpp:112 main ] /Users/ye/eos/libraries/chainbase/src/chainbase.cpp(106): Throw in function chainbase::database::database(const bfs::path &, chainbase::database::open_flags, uint64_t)
Dynamic exception type: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injectorstd::runtime_error >
std::exception::what: database dirty flag set (likely due to unclean shutdown) replay or resync required

Follow the instruction of log
when running "$ nodeos --resync", it works. but the chain was cleaned . accounts were reset. emmmmm.....

@taokayan
Copy link
Contributor

@taokayan taokayan commented Jun 21, 2018

This is because nodeos was not stopped normally, for example "kill -9 pid".

Loading

@taokayan taokayan closed this Jun 21, 2018
@MonarthS
Copy link

@MonarthS MonarthS commented Jun 28, 2018

Try this: nodeos --replay-blockchain --hard-replay-blockchain

Loading

@zjj1002
Copy link

@zjj1002 zjj1002 commented Jul 18, 2018

@taokayan what if the instance is crashed? you can't guarantee every time nodeos "stopped normally"

Loading

@MonarthS
Copy link

@MonarthS MonarthS commented Jul 19, 2018

@taokayan Then also above this commands will work.

Loading

@taokayan
Copy link
Contributor

@taokayan taokayan commented Jul 19, 2018

--hard-replay works even when the instance crashed.

Loading

@Aditya3690
Copy link

@Aditya3690 Aditya3690 commented Apr 15, 2019

Try this: nodeos --replay-blockchain --hard-replay-blockchain

Works like a charm.

Loading

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
5 participants