cculianu / Fulcrum

A fast & nimble SPV Server for BCH, BTC, and LTC
Other
331 stars 76 forks source link

"FATAL: Caught exception: File size is not a multiple of recordSize" #155

Closed Silarous closed 1 year ago

Silarous commented 1 year ago

Found my Fulcrum server was down today and reporting this error. Restarting the service brings the same error. Any idea what the issue may be?

Feb 14 09:29:19 Bitcoin Fulcrum[20054]: [2023-02-14 09:29:19.555] Loading database ... Feb 14 09:29:19 Bitcoin Fulcrum[20054]: [2023-02-14 09:29:19.708] DB memory: 2048.00 MiB Feb 14 09:29:19 Bitcoin Fulcrum[20054]: [2023-02-14 09:29:19.708] Coin: BTC Feb 14 09:29:19 Bitcoin Fulcrum[20054]: [2023-02-14 09:29:19.708] Chain: main Feb 14 09:29:19 Bitcoin Fulcrum[20054]: [2023-02-14 09:29:19.708] FATAL: Caught exception: File size is not a multiple of recordSize Feb 14 09:29:19 Bitcoin Fulcrum[20054]: [2023-02-14 09:29:19.708] Stopping Controller ... Feb 14 09:29:19 Bitcoin Fulcrum[20054]: [2023-02-14 09:29:19.708] Closing storage ... Feb 14 09:29:19 Bitcoin Fulcrum[20054]: [2023-02-14 09:29:19.728] Shutdown complete Feb 14 09:29:19 Bitcoin systemd[1]: fulcrum.service: Main process exited, code=exited, status=1/FAILURE Feb 14 09:29:19 Bitcoin systemd[1]: fulcrum.service: Failed with result 'exit-code'.

smilzo05 commented 1 year ago

hi, i have the same problem, did you find a solution? Thank you

EchterAgo commented 1 year ago

Usually caused by unclean shutdown, duplicate of #41. You will have to start over with sync. It is a good idea to take backups of your Fulcrum data directory to restore from if this happens.

EchterAgo commented 1 year ago

FYI, it helped me to keep my DB on a filesystem that can do CoW reflinks like btrfs, that way you can just cp --reflink=all the data directory anytime to quickly take a backup.