Skip to content

Instantly share code, notes, and snippets.

@MrChrisJ
Created December 5, 2015 22:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MrChrisJ/7f4ac9c33ad8cfcc413e to your computer and use it in GitHub Desktop.
Save MrChrisJ/7f4ac9c33ad8cfcc413e to your computer and use it in GitHub Desktop.
Error loading Bitcoind on startup from an external USB Drive on a Raspberry Pi 2
Last login: Fri Dec 4 21:38:34 on ttys015
Chriss-MacBook-Pro-4:~ chris$ ssh pi@fullnode.local
pi@fullnode.local's password:
Linux fullnode 4.1.7-v7+ #817 SMP PREEMPT Sat Sep 19 15:32:00 BST 2015 armv7l
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Fri Dec 4 22:44:33 2015
pi@fullnode ~ $ mkdir ~/bitcoinData
pi@fullnode ~ $ sudo blkid
/dev/mmcblk0p1: SEC_TYPE="msdos" LABEL="boot" UUID="15CD-3B79" TYPE="vfat"
/dev/mmcblk0p2: UUID="13d368bf-6dbf-4751-8ba1-88bed06bef77" TYPE="ext4"
/dev/sda1: LABEL="BLOCKCHAIN" UUID="C796-1410" TYPE="vfat"
pi@fullnode ~ $ sudo nano /etc/fstab
pi@fullnode ~ $ sudo nano /etc/fstab
pi@fullnode ~ $ sudo shutdown -r now
Broadcast message from root@fullnode (pts/1) (Fri Dec 4 23:06:34 2015):
The system is going down for reboot NOW!
pi@fullnode ~ $ Connection to fullnode.local closed by remote host.
Connection to fullnode.local closed.
Chriss-MacBook-Pro-4:~ chris$ ssh pi@fullnode.local
pi@fullnode.local's password:
Linux fullnode 4.1.7-v7+ #817 SMP PREEMPT Sat Sep 19 15:32:00 BST 2015 armv7l
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Fri Dec 4 22:56:15 2015 from chriss-macbook-pro-4.local
pi@fullnode ~ $ cd ~/bitcoinData/
pi@fullnode ~/bitcoinData $ nano bitcoin.conf
pi@fullnode ~/bitcoinData $ bitcoind -datadir=/home/pi/bitcoinData -daemon
Bitcoin server starting
pi@fullnode ~/bitcoinData $ bitcoind getinfo
Error: There is no RPC client functionality in bitcoind anymore. Use the bitcoin-cli utility instead.
pi@fullnode ~/bitcoinData $ bitcoin-cli getinfo
error: You must set rpcpassword=<password> in the configuration file:
/home/pi/.bitcoin/bitcoin.conf
If the file does not exist, create it with owner-readable-only file permissions.
pi@fullnode ~/bitcoinData $ bitcoin-cli getinfo -rcpuser=bitcoinrpc -rcppassword=raspberry
error: You must set rpcpassword=<password> in the configuration file:
/home/pi/.bitcoin/bitcoin.conf
If the file does not exist, create it with owner-readable-only file permissions.
pi@fullnode ~/bitcoinData $ bitcoin-cli getinfo
error: You must set rpcpassword=<password> in the configuration file:
/home/pi/.bitcoin/bitcoin.conf
If the file does not exist, create it with owner-readable-only file permissions.
pi@fullnode ~/bitcoinData $ Bitcoin-cli stop
-bash: Bitcoin-cli: command not found
pi@fullnode ~/bitcoinData $ bitcoin-cli stop
error: You must set rpcpassword=<password> in the configuration file:
/home/pi/.bitcoin/bitcoin.conf
If the file does not exist, create it with owner-readable-only file permissions.
pi@fullnode ~/bitcoinData $
Broadcast message from root@fullnode (Fri Dec 4 23:55:15 2015):
The system is going down for reboot NOW!
Connection to fullnode.local closed by remote host.
Connection to fullnode.local closed.
Chriss-MacBook-Pro-4:~ chris$ ssh pi@fullnode.local
pi@fullnode.local's password:
Linux fullnode 4.1.7-v7+ #817 SMP PREEMPT Sat Sep 19 15:32:00 BST 2015 armv7l
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Fri Dec 4 23:58:14 2015
pi@fullnode ~ $ sudo chown pi:pi /home/pi/bitcoinData/
pi@fullnode ~ $ sudo chmod 777 /home/pi/bitcoinData/
pi@fullnode ~ $ bitcoind -datadir=/home/pi/bitcoinData -daemon
Bitcoin server starting
pi@fullnode ~ $ bitcoin-cli getinfo
error: You must set rpcpassword=<password> in the configuration file:
/home/pi/.bitcoin/bitcoin.conf
If the file does not exist, create it with owner-readable-only file permissions.
pi@fullnode ~ $
Broadcast message from root@fullnode (Sat Dec 5 00:04:09 2015):
The system is going down for reboot NOW!
Connection to fullnode.local closed by remote host.
Connection to fullnode.local closed.
Chriss-MacBook-Pro-4:~ chris$ ssh pi@fullnode.local
pi@fullnode.local's password:
Linux fullnode 4.1.7-v7+ #817 SMP PREEMPT Sat Sep 19 15:32:00 BST 2015 armv7l
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Fri Dec 4 23:58:44 2015 from chriss-macbook-pro-4.local
pi@fullnode ~ $ sudo chown -r pi:pi /home/pi/bitcoinData/
chown: invalid option -- 'r'
Try `chown --help' for more information.
pi@fullnode ~ $ sudo chown pi:pi /home/pi/bitcoinData/ -r
chown: invalid option -- 'r'
Try `chown --help' for more information.
pi@fullnode ~ $ sudo chown pi:pi /home/pi/bitcoinData/ -R
pi@fullnode ~ $ ok
-bash: ok: command not found
pi@fullnode ~ $ bitcoind -datadir=/home/pi/bitcoinData -daemon
Bitcoin server starting
pi@fullnode ~ $ bitcoin-cli getinfo
error: You must set rpcpassword=<password> in the configuration file:
/home/pi/.bitcoin/bitcoin.conf
If the file does not exist, create it with owner-readable-only file permissions.
pi@fullnode ~ $ sudo reboot
Broadcast message from root@fullnode (pts/0) (Sat Dec 5 00:08:26 2015):
The system is going down for reboot NOW!
pi@fullnode ~ $ Connection to fullnode.local closed by remote host.
Connection to fullnode.local closed.
Chriss-MacBook-Pro-4:~ chris$ ssh pi@fullnode.local
pi@fullnode.local's password:
Linux fullnode 4.1.7-v7+ #817 SMP PREEMPT Sat Sep 19 15:32:00 BST 2015 armv7l
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sat Dec 5 00:08:53 2015
pi@fullnode ~ $ bitcoind -datadir=/home/pi/bitcoinData -daemon
Bitcoin server starting
pi@fullnode ~ $ Error: To use bitcoind, or the -server option to bitcoin-qt, you must set an rpcpassword in the configuration file:
/home/pi/bitcoinData/bitcoin.conf
It is recommended you use the following random password:
rpcuser=bitcoinrpc
rpcpassword=B6wtSQNFSZV85cZiuUSVokd6fjNwsyM7fR4QxxAJY9iW
(you do not need to remember this password)
The username and password MUST NOT be the same.
If the file does not exist, create it with owner-readable-only file permissions.
It is also recommended to set alertnotify so you are notified of problems;
for example: alertnotify=echo %s | mail -s "Bitcoin Alert" admin@foo.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment