I am trying to get a full node running on a raspberry pi. However, because of the storage requirements I dont want to save the blockchain locally, which means I mounted a remote share which included the blockchain data files. When starting bitcoind I get the following error message:
:
Error opening block database.
Do you want to rebuild the block database now?
More verbose from the log file:
2014-10-16 19:52:36 Bitcoin version v0.9.3.0-g40d2041-beta (Mon, 22 Sep 2014 16:42:15 +0200)
2014-10-16 19:52:36 Using OpenSSL version OpenSSL 1.0.1j 15 Oct 2014
2014-10-16 19:52:36 Using BerkeleyDB version Berkeley DB 5.3.28: (September 9, 2013)
2014-10-16 19:52:36 Default data directory /home/bitcoin/.bitcoin
2014-10-16 19:52:36 Using data directory /home/bitcoin/.bitcoin
2014-10-16 19:52:36 Using at most 125 connections (1024 file descriptors available)
2014-10-16 19:52:36 Using wallet wallet.dat
2014-10-16 19:52:36 init message: Verifying wallet...
2014-10-16 19:52:36 CDBEnv::Open : LogDir=/home/bitcoin/.bitcoin/database ErrorFile=/home/bitcoin/.bitcoin/db.log
2014-10-16 19:52:37 Bound to [::]:8333
2014-10-16 19:52:37 Bound to 0.0.0.0:8333
2014-10-16 19:52:37 init message: Loading block index...
2014-10-16 19:52:37 Opening LevelDB in /home/bitcoin/.bitcoin/blocks/index
2014-10-16 19:52:37 IO error: /home/bitcoin/.bitcoin/blocks/index: Invalid argument
2014-10-16 19:52:37 : Error opening block database.
Do you want to rebuild the block database now?
2014-10-16 19:52:37 Aborted block database rebuild. Exiting.
2014-10-16 19:52:37 Shutdown : In progress...
2014-10-16 19:52:37 StopNode()
2014-10-16 19:52:37 Shutdown : done
When running bitcoind with a local datadir it runs as normal with no error message. Someone who might know what the issue might be?
I am running a slim archlinux install and mounted the remote share with:
mount.cifs //<ip-address>/bitcoin /home/bitcoin/.bitcoin -o username=<username>,uid=bitcoin