-
Notifications
You must be signed in to change notification settings - Fork 3.8k
database dirty flag set (likely due to unclean shutdown): replay required #4742
Comments
please use |
You can relpay the chain with "--replay-blockchain --hard-replay-blockchain" when start the eos like the comments in #4002 You should stop docker with -t 300 becasue default 10 secs is not enough to stop eos docker which will cause dirty flag. BTW: Be careful when you docker start WITHOUT "--replay-blockchain --hard-replay-blockchain" at the second docker start. BTW2: Update to eos 1.1.0 will speed up sync. |
The "--replay-blockchain" or "--hard-replay-blockchain" option takes too long for replaying. Should we add an option to allow the nodeos backups the |
Replaying takes considerably less time with v1.1. You can expect 1 million blocks in 20 minutes, for a total synch time of barely an hour to mainnet. |
Same problem. My machine has around 40 GB memory, and the data synced
I have |
@ridewindx I totally agree with adding an automatic backup option, as the |
Agree. There should be some mechanism to reinstate state of blockchain from where node is crashed. Or there will be regular back up cycle who does this job after every 1000 blocks or something. Just giving my 2 cents. |
Agree. Nodeos in my server always stopped and become dirty. Replay it take a long hours each time. |
--hard-replay or --replay-blockchain does not work,how to solve this..? |
after many times fail,do not know what to do. |
can anyone answer this? |
when use --replay options,it delete state ,use --hard-replay,it rescontruct,but all this does not make use.is this a bug? |
none? |
@cquan What are the symptoms of failure? Paste error logs. |
@csquan make sure your configuration for state DB size can accommodate the size of the entire blockchain. In your config.ini file you submit with nodeos command, make sure to increase the size of your state db in MB to a sufficient value: For instance: |
@aelbuni chain-state-db-size-mb in my config.ini is set about 64G,last time is set 8G,and state is above 8G,so nodes abort,is unclean shutdown,then I change to 64G. |
when add --replay opts,it just been killed. |
then with no opts,log show “existing block log, attempting to replay 375171 blocks”,after several hours,it just killed. |
This happens now and again. It interrupts nodeos, and then interrupts DAPPs. |
My server OOM again. It worked fine in several days, and after check the memory logs, it appeared the free mem dropped from 190M to 50M within 15 minutes(That's because it log the memory every 15 minutes). Look like when some codes run, they will eat up all memory in a short time. [1002343.852391] lowmem_reserve[]: 0 0 13036 13036 |
Most of the time, the replay fails after hours, I have to clean up the data directory and restart from the scratch. |
Albeit a truly unacceptable solution Before replaying and / or deleting. Make sure you check your ports and kill all related processes. I have found this usually enables me restart nodeos. |
@vimalbera92 Agree . |
After 11 hour, replay is not finished. |
Closed as refers to old version of code. |
After 3 days ,hard-replay is not finished |
You can see which block is currently being replayed in the log. It took me 4~5 days to replay it. |
after version 1.4,eos has no need to replay,snapshot instead url: #5956: |
If you want the full history, then you still need to replay. |
I recommend to take regular backups (daily) in case it gets corrupted. |
For anyone following the tutorial on developers.eos.io the above solution worked for me. I did the following `nodeos -e -p eosio
|
@mhinc14 Juse like your ideas, I used command below, and it works. nodeos -e -p eosio --plugin eosio::producer_plugin --plugin eosio::chain_api_plugin --plugin eosio::http_plugin --plugin eosio::history_plugin --plugin eosio::history_api_plugin --access-control-allow-origin='*' --contracts-console --http-validate-host=false |
i want to start all process again how i can delet everything and start again? |
add "--delete-all-blocks" to your command. |
Don't want to delete the data and resynchronize. How to change it.
The text was updated successfully, but these errors were encountered: