2022-04-09T12:46:53Z Opening LevelDB in /mnt/ext/bitcoin/blocks/index
2022-04-09T12:46:53Z Fatal LevelDB error: Corruption: CURRENT points to a non-existent file: NotFound: /mnt/ext/bitcoin/blocks/index/MANIFEST-004859: No such file or directory
2022-04-09T12:46:53Z You can use -debug=leveldb to get more complete diagnostic messages
2022-04-09T12:46:53Z Fatal LevelDB error: Corruption: CURRENT points to a non-existent file: NotFound: /mnt/ext/bitcoin/blocks/index/MANIFEST-004859: No such file or directory
2022-04-09T12:46:53Z : Error opening block database.
Please restart with -reindex or -reindex-chainstate to recover.
2022-04-09T12:46:53Z Aborted block database rebuild. Exiting.
Kalau saya coba liat-liat penjelasan dari file yang ditunjukkan error itu adalah:
A MANIFEST file lists the set of sorted tables that make up each level, the corresponding key ranges, and other important metadata. A new MANIFEST file (with a new number embedded in the file name) is created whenever the database is reopened. The MANIFEST file is formatted as a log, and changes made to the serving state (as files are added or removed) are appended to this log.
Current
CURRENT is a simple text file that contains the name of the latest MANIFEST file.
Saya cek di folder blocks/index terdapat file MANIFEST-004869 dan isi dari file CURRENT tersendiri "MANIFEST-004859". Saya sendiri masih kurang mengerti mengenai file itu ditujukkan untuk apa(hanya sebagai log, atau mungkin untuk tujuan lainnya), untungnya sebelum saya coba melakukan --reindex, saya iseng coba me-rename file MANIFEST-004869 menjadi MANIFEST-004859. Hasilnya ternyata bitcoind nya running lagi seperti biasa. Walaupun, pas awal-awal sempat ada error
leveldb: Compaction error: IO error: /mnt/ext/bitcoin/chainstate/811167.ldb: Bad message
Tapi sampai saat ini, aplikasi Bitcoind, Electrs, dan C-lightning, masih berjalan lancar. Mungkin agan-agan di sini ada yang mengerti untuk file tersebut dikhususkan untuk apa? Atau ternyata memang node saya ada yang corrupt lalu harus melakukan recovery(--reindex-chainstate) lagi?
EDIT:
Ternyata untuk node testnet ane juga mengalami isu serupa seperti di atas. Bedanya, cara me-rename di atas tidak berhasil, jadinya saya harus melakukan --reindex-chainstate.
#log di bawah ini setelah merename file MANIFEST
2022-04-09T14:30:01Z Opening LevelDB in /home/bitcoin/.bitcoin/testnet3/blocks/index
2022-04-09T14:30:01Z Fatal LevelDB error: Corruption: no meta-nextfile entry in descriptor
2022-04-09T14:30:01Z You can use -debug=leveldb to get more complete diagnostic messages
2022-04-09T14:30:01Z Fatal LevelDB error: Corruption: no meta-nextfile entry in descriptor
2022-04-09T14:30:01Z : Error opening block database.
Please restart with -reindex or -reindex-chainstate to recover.
: Error opening block database.
2022-04-09T14:31:19Z Using obfuscation key for /home/bitcoin/.bitcoin/testnet3/chainstate: 95f1c90194f7ef86
2022-04-09T14:31:19Z : Error initializing block database.
Please restart with -reindex or -reindex-chainstate to recover.