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

Comments

@Justin-ye
Copy link

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

This comment has been minimized.

Copy link
Contributor

commented Jun 21, 2018

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

@taokayan taokayan closed this Jun 21, 2018

@MonarthS

This comment has been minimized.

Copy link

commented Jun 28, 2018

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

@zjj1002

This comment has been minimized.

Copy link

commented Jul 18, 2018

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

@MonarthS

This comment has been minimized.

Copy link

commented Jul 19, 2018

@taokayan Then also above this commands will work.

@taokayan

This comment has been minimized.

Copy link
Contributor

commented Jul 19, 2018

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

@Aditya3690

This comment has been minimized.

Copy link

commented Apr 15, 2019

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

Works like a charm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants
You can’t perform that action at this time.