EOSIO / eos

An open source smart contract platform
https://developers.eos.io/manuals/eos
MIT License
11.27k stars 3.6k forks source link

nodeos --constacts-console database dirty flag set #5778

Closed lzqjfly closed 5 years ago

lzqjfly commented 6 years ago

I run the contract,but i did not see any output from nodes. So i restart nodeos with the --contracts-console

$ nodeos --contracts-console

2018-09-21T03:42:32.620 thread-0 chain_plugin.cpp:329 plugin_initialize ] initializing chain plugin 2018-09-21T03:42:32.680 thread-0 chain_plugin.cpp:646 plugin_initialize ] 13 St13runtime_error: database dirty flag set rethrow database dirty flag set: {"what":"database dirty flag set"} thread-0 chain_plugin.cpp:646 plugin_initialize Failed to initialize

heifner commented 6 years ago

How did you kill nodeos? kill -9 will require a hard replay.

lzqjfly commented 6 years ago

I start the blockchain like : $ nodeos -e -p eosio --plugin eosio::chain_api_plugin --plugin eosio::history_api_plugin --contracts-console I can set the out logs

taokayan commented 6 years ago

looks like nodes was hard killed before, resulting in a unclear database. you need to --hard-replay or resync in this case.

yaanhyy commented 6 years ago

--hard-replay will take too long time, eos has 23million blocks now.

andriantolie commented 5 years ago

As said by @heifner and @taokayan, it seems that your nodeos was killed forcefully before. Just start nodeos with --hard-replay option