eos icon indicating copy to clipboard operation
eos copied to clipboard

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

Open Justin-ye opened this issue 8 years ago • 6 comments

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.....

Justin-ye avatar May 29 '18 00:05 Justin-ye

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

taokayan avatar Jun 21 '18 08:06 taokayan

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

MonarthS avatar Jun 28 '18 04:06 MonarthS

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

zjj1002 avatar Jul 18 '18 15:07 zjj1002

@taokayan Then also above this commands will work.

MonarthS avatar Jul 19 '18 03:07 MonarthS

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

taokayan avatar Jul 19 '18 07:07 taokayan

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

Works like a charm.

Aditya3690 avatar Apr 15 '19 10:04 Aditya3690