I have set up a node on a RaspberryPi. When I check for active processes with top
I see bitcoin-init
occupying 50% of memory and 7% of CPU.
I can check for bitcoind
and it is active
:
bitcoin@raspberrypi ~ $ service bitcoind status
● bitcoind.service - Bitcoin daemon
Loaded: loaded (/etc/systemd/system/bitcoind.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2019-08-09 14:43:54 CEST; 2 weeks 4 days ago
Process: 623 ExecStart=/usr/local/bin/bitcoind -conf=/home/bitcoin/.bitcoin/bitcoin.conf -pid=/home/bitcoin/.bitcoin/bitcoind.pid (cod
Main PID: 772 (bitcoin-init)
Tasks: 16 (limit: 4915)
CGroup: /system.slice/bitcoind.service
└─772 /usr/local/bin/bitcoind -conf=/home/bitcoin/.bitcoin/bitcoin.conf -pid=/home/bitcoin/.bitcoin/bitcoind.pid
According to this thread I assume that the daemon process bitcoind
has been renamed to bitcoin-init
but I am not sure if I understood that correctly.
My node seems to update the chain, but very slowly - 50GB after several weeks. And it is not reachable if I check my local IP via Coindance.
If I run bitcoin-cli getinfo
with my usual Rasperry user pi
I get
error: Could not locate RPC credentials. No authentication cookie could be found, and RPC password is not set. See -rpcpassword and -stdinrpcpass. Configuration file: (/home/pi/.bitcoin/bitcoin.conf)`
I have not set up a bitcoin.conf
file.
If I run it with user bitcoin
(not sure if that would be the right thing to do):
bitcoin@raspberrypi ~ $ bitcoin-cli getinfo
error code: -32601
error message:
Method not found
So, is bitcoin-init
maybe just a startup process and my node is not working?
EDIT: The book (Antonopoulos) sais that bitcoind
will give an error unless I set an rpcpassword in the configuration file. I don't have such a file, but bitcoind
gives:
2019-08-28T07:27:16Z Bitcoin Core version v0.18.99.0-12fd4bbd1 (release build)
2019-08-28T07:27:16Z Assuming ancestors of block 0000000000000000000f1c54590ee18d15ec70e68c8cd4cfbadb1b4f11697eee have valid signatures.
2019-08-28T07:27:16Z Setting nMinimumChainWork=0000000000000000000000000000000000000000051dc8b82f450202ecb3d471
2019-08-28T07:27:16Z Using the 'standard' SHA256 implementation
2019-08-28T07:27:17Z Default data directory /home/pi/.bitcoin
2019-08-28T07:27:17Z Using data directory /home/pi/.bitcoin
2019-08-28T07:27:17Z Config file: /home/pi/.bitcoin/bitcoin.conf (not found, skipping)
2019-08-28T07:27:17Z Using at most 125 automatic connections (1024 file descriptors available)
2019-08-28T07:27:17Z Using 16 MiB out of 32/2 requested for signature cache, able to store 524288 elements
2019-08-28T07:27:18Z Using 16 MiB out of 32/2 requested for script execution cache, able to store 524288 elements
2019-08-28T07:27:18Z Using 4 threads for script verification
2019-08-28T07:27:18Z scheduler thread start
2019-08-28T07:27:18Z Binding RPC on address ::1 port 8332 failed.
2019-08-28T07:27:18Z Binding RPC on address 127.0.0.1 port 8332 failed.
2019-08-28T07:27:18Z Unable to bind any endpoint for RPC server
2019-08-28T07:27:18Z Error: Unable to start HTTP server. See debug log for details.
Error: Unable to start HTTP server. See debug log for details.
2019-08-28T07:27:18Z Shutdown: In progress...
2019-08-28T07:27:18Z scheduler thread interrupt
2019-08-28T07:27:18Z Shutdown: done
EDIT: I seem to have two seperate directories for .bitcoin
. How can I tell bitcoind
to use the other one?
bitcoin-cli
works and the process is still calledbitcoin-init
while the blockchain is initially downloaded. So the process is renamed or it is called this way during initial download. – Ben Aug 28 at 12:55