Closed zexanana closed 5 years ago
LMDB would need a concept of checkpoints (further than the last two txns). For this particular error, a recent monerod might help. Failing that, you can drop txpool_blob and txpool_meta, though there might be corruption elsewhere too.
Would --db-sync-mode safe
have helped in this particular case?
I tried redownloading monerod, the problem persisted. Using --db-sync-mode safe
didn't help in my case also. I don't know how to go about "dropping txpool_blob and txpool_meta".
I am resyncing the blockchain from my backup startup point. If the checkpoints idea is simple, it may be worth implementation or a little testing as I see some people with these kinds of errors.
Safe mode should have helped. Maybe we have a db txn bug. To drop those tables: mdb_drop -s txpool_blob ~/.bitmonero/lmdb (and same for txpool_meta).
Re-reading the comment above, it looks like "--db-sync-mode safe" was used on the bad db, in which case it's expected it won't fix anything. In any case, #3884 fixed safe mode not being used after sync, which should fix a good number of those issues.
Hello. After a crash in my computer I cannot get daemon to start syncing again. After 2 seconds of initializing, it just crashes. The bitmonero.log from when it was running smoothly (and then PC crashed) until a few days later when I tried running it again, is posted below. There is a WARN entry followed by a FATAL entry:
bitmonero.log
I tried running daemon with "--db-salvage" but problem persisted. I suppose lmdb is corrupted but maybe it would be possible to create a function to delete the last x entries in the DB and then try resyncing to see if the corruption was in the newer entries. I have a DB backup so this is not a huge problem for me but I saw other people in reddit with the same problem.
I also tried running mdb_stat but I couldn't figure out how to build it (I just downloaded GUI, didnt build from source). The problem is, even though I got Codeblocks and Mingw installed, I don't know where Mingw make.exe is. I just can't find it.