-
Notifications
You must be signed in to change notification settings - Fork 92
"FATAL: Failed to spend" error during initial sync #283
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
Comments
Oh wow. On windows huh? I wonder if something with the new rocksdb in 1.11+ somehow is broken on windows. I did a few full synchs on windows on small testnets and they worked ok. You are on Bitcoin CIA version or on Bitcoin Cash or what? |
Also you aren't using the utxo-cache option right? |
I use it on the mainnet. have tried both with and without utxo-cache, with same results |
Mainnet what? BTC (Bitocin CIA) or BCH (Bitcoin Cash) or LTC (Litecoin CIA)? Fulcrum supports all 3. |
sorry meant mainnet on bitcoin core |
Ok, I'll set up my dev machine here on windows to do a full sync there using Bitcoin CIA version. The problem started happening on 1.11 and above or what? Which version should I use? Also if you go back to 1.10 does it "just work"? |
thanks. so the problem started on 1.10 (after resync due to power failure) but then upgraded to the latest 1.12 but the same happens. the max I got to was around 56% but generally the error happens around 20-30% mark |
also the first few lines of logs as per below (if it helps)
|
Thanks for the log.
This is very disconcerting and indicates some strange low-level DB error with rocksdb.. is my going hypothesis. Will do a full synch today on ciacoin + windows and let you know. |
Well so I set it up and am running it on Windows. I'm on Windows10. Connected to bitcoind core 27.0. It's synching just fine so far -- It's at block height 567,000 and counting. |
So far I'm at block 665,000 and it's still working ok. |
Block 720k. No errors so far. I think this will likely just succeed to sync. Can you tell me more details about what you are doing? It is mysterious to me that you would consistently get these errors? Also is your database in some dir that is on a strange filesystem (like a network share or something)? |
I have a fairly decent machine (intel i7 14th gen, 64GB memory) running Win 11. the database is in C drive somewhere (so no strange share or anything). below are my quick config if it helps:
thanks for checking. |
Hmm.. and it's ntfs and not fat32 or something like that, right? I haven't ever once run Windows 11. I'm on Windows 10. Jeez I hope that's not it.. |
yes its ntfs. |
I wonder if antivirus apps somehow are screwing with the files in the datadir. Maybe see if you can make the datadir for Fulcrum immune to antivirus real-time checking? |
Well the sync finished here just fine on my Windows 10 box. No issues. I sincerely hope you get to the bottom of this but since I cannot reproduce it I really can't help. I don't think it's a problem with Fulcrum itself.. but who knows. |
I have disabled the windows defender temporarily and hasn't broken so far. not sure if that helped or removing recent apps, but so far so good (74%) |
just to update, after 2 weeks of struggling (disabling defender, programs etc) I still get the error. I've decided to move on to other options. thanks for all your help much appreciated |
Well if you ever figure it out do let me know... very unusual. Never seen anything like it. |
I confirm I see the same on v1.12 on Ubuntu. Fulrum was running stable for a few months on 1.11, but I got a full disk so I had to remove the database and started fully fresh with 1.12.
After each attempt I started with a complete empty .fulcrum data folder. The tx it fails at is a very old one, if there would be a bitcoincore data issue I would assume it did not pass there the first time. So it seems a bit random while at the same time it's now each time the same tx.. Note I did not perform any library/ubuntu updates in a while that would cause this change. |
Are you running in docker or anything like that? Also what FS on Ubuntu? |
No docker, just the plain precompiled binaries. btw, I reverted to 1.11 and it fails at the same tx now update:
seems like now the bitcoin db is probbaly the culprit :'( |
Interesting as fuck. And it's always that tx. I really need to investigate this. Wow. |
Is |
I actually suspect some form of corruption on the bitcoind side somehow.. tbh... that propagates forward to Fulcrum This is quite a pickle! |
yes i have txindex on. Note that i'm using this setup for years now. This year Ive had some more bad luck with corruptions though. Maybe I should try building bitcoin core db from scratch as well |
You can try rebuilding with -reindex-chainstate as you may very well know (but that can take a day). Something is fishy with the blocks I suspect but I cannot be sure. |
the cat is out of the bag: some memory modules apparently give bitflips, resulting in the corruption of both bitcoin and fulcrum databases. |
Oh man glad it wasn’t this software But sorry to hear you gotta buy new ram How did you figure it out? You ran memtet86 or other software to test ram ? |
yes, memtest86 (this required a reboot and boot from memtest usb) Good that it was definitely not your software 👍 |
I have been using v1.10 on a Windows machine for a while with no issues until a power failure caused the "db in inconsistent state" error. then I had to resync but every time I try I get an error at different stages like:
I am using a quick config file and at this stage totally clueless as what to do.
The text was updated successfully, but these errors were encountered: