guys any advise why im getting following error after a fresh compilation of daemon as per wikia instructions. though i havent downloaded bootstrap just synincg it from scratch also i had emptied entire .HyperStake folder except wallet.dat but same thing. im using raspberry pi
pi@raspberrypi ~/cryptos/HyperStake/src $ ./hyperstaked
HyperStake server starting
HyperStake: Error initializing database environment /home/pi/.HyperStake! To recover, BACKUP THAT DIRECTORY, then remove everything from it except for wallet.dat.
pi@raspberrypi ~/cryptos/HyperStake/src $
I had it numerous times, it has nothing to do with BerkeleyDB (libdb, which is used only for wallet.dat, blockchain is stored in internal binary format). It happens when filesystem on sd card gets corrupted (happened to me many times when downloading blockchain or just anytime, sometimes during system setup on fresh installation, sometimes after few months).
Reason could be unstable power source, overclocking, weared or faulty sd card.
I've recently abandoned sd card as storage (made it read-only) because it's not 24/7 reliable and moved raspbian to USB device (could be usb3.0 pendrive - require less power, or external hard drive). So far so good, no corrupted files.
Rule no 1 : Remember to make frequent backups of your coins' blockchains and wallet, so you don't have to resync from scratch if crash happens.