Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: Frodek on May 02, 2016, 11:03:23 AM



Title: bitcoind daemon start fails
Post by: Frodek on May 02, 2016, 11:03:23 AM
I write:
bitcoind -daemon

My log:
Quote
2016-05-02 10:52:01 Bitcoin version v0.12.1.0-g9779e1e (Mon, 11 Apr 2016 13:01:43 +0200)
2016-05-02 10:52:01 InitParameterInteraction: parameter interaction: -whitelistforcerelay=1 -> setting -whitelistrelay=1
2016-05-02 10:52:01 Using BerkeleyDB version Berkeley DB 4.8.30: (April  9, 2010)
2016-05-02 10:52:01 Default data directory /home/andrzej/.bitcoin
2016-05-02 10:52:01 Using data directory /home/andrzej/.bitcoin
2016-05-02 10:52:01 Using config file /home/andrzej/.bitcoin/bitcoin.conf
2016-05-02 10:52:01 Using at most 125 connections (1024 file descriptors available)
2016-05-02 10:52:01 Using 0 threads for script verification
2016-05-02 10:52:01 Binding RPC on address ::1 port 8332 failed.
2016-05-02 10:52:01 Binding RPC on address 127.0.0.1 port 8332 failed.
2016-05-02 10:52:01 Unable to bind any endpoint for RPC server
2016-05-02 10:52:01 Error: Unable to start HTTP server. See debug log for details.
2016-05-02 10:52:01 Shutdown: In progress...
2016-05-02 10:52:01 StopNode()
2016-05-02 10:52:01 Shutdown: done


Title: Re: bitcoind daemon start fails
Post by: merelcoin on May 02, 2016, 11:08:13 AM
It can't bind to port 8332
Are you sure nothing else is using this port?
You might want to change the port in /home/andrzej/.bitcoin/bitcoin.conf and try again, just to see if it is indeed an occupied port?

open bitcoin.conf, and add this line (for example, just for changing the port from 8332 to 8392)
rpcport=8392


Title: Re: bitcoind daemon start fails
Post by: Frodek on May 02, 2016, 11:20:58 AM
Afer restart Linux is OK, hot to stop daemon? "service bitcoind stop" and "/etc/init.d/bitcoind stop" not works


Title: Re: bitcoind daemon start fails
Post by: merelcoin on May 02, 2016, 11:23:52 AM
Afer restart Linux is OK, hot to stop daemon? "service bitcoind stop" and "/etc/init.d/bitcoind stop" not works

"bitcoin-cli stop" should do the trick, bitcoind no longer supports these arguments