Title: Ubuntu bitcoind Error: No Response from Server Post by: bigbeninlondon on February 15, 2014, 04:00:21 PM So I decided to go ahead and put up a bitcoin full node on a recently repurposed machine. I installed bitcoind and ran the daemon using
Code: sudo bitcoind -daemon Code: bitcoind getinfo Code: error: no response from server I have the bitcoin.conf file set with an rpcuser and rpcpassword, but I'm running the commands from the same machine so I shouldn't need rpc authentication, right? Additionally even if it did need rpc authentication, I should still get SOME kind of response, right? What am I missing here? Title: Re: Ubuntu bitcoind Error: No Response from Server Post by: RedDiamond on February 15, 2014, 04:48:31 PM Maybe you need to open some ports in firewall. Please see this installation script
https://raw.github.com/XertroV/BitcoinAutoNode/master/bitcoinAutoNode.sh Title: Re: Ubuntu bitcoind Error: No Response from Server Post by: bigbeninlondon on February 15, 2014, 05:42:28 PM ufw not previously installed, so no help there. I noticed the bitcoin.conf from the script was having the following lines added:
Code: echo "server=1" > $config I added those, restarted bitcoind and still no luck... Title: Re: Ubuntu bitcoind Error: No Response from Server Post by: cr1776 on February 15, 2014, 06:01:21 PM ufw not previously installed, so no help there. I noticed the bitcoin.conf from the script was having the following lines added: Code: echo "server=1" > $config I added those, restarted bitcoind and still no luck... Can you kill and restart bitcoind? Is your local interface up? (E.g. ifconfig lo up) Did you just start it on this machine? Iirc, sometime when it is just coming up it takes some time to respond. Title: Re: Ubuntu bitcoind Error: No Response from Server Post by: bigbeninlondon on February 15, 2014, 06:07:36 PM Code: lo Link encap:Local Loopback It's up... I've let bitcoind sit for over an hour now. Also, it appears to be syncing the blockchain just fine when I query the debug.log so it appears to be running just fine. Title: Re: Ubuntu bitcoind Error: No Response from Server Post by: Shahrukh on February 15, 2014, 08:46:06 PM By the error "No response from server" it means no response from bitcoin daemon. Try stopping the daemon by bitcoind stop and after 30 seconds start it again by bitcoind see if the server is taking time to start as well ? If yes then you should stop some other process to free some RAM
Title: Re: Ubuntu bitcoind Error: No Response from Server Post by: Shahrukh on February 15, 2014, 08:39:05 PM By the error "No response from server" it means no response from bitcoin daemon. Try stopping the daemon by bitcoind stop and after 30 seconds start it again by bitcoind see if the server is taking time to start as well ? If yes then you should stop some other process to free some RAM
Title: Re: Ubuntu bitcoind Error: No Response from Server Post by: cr1776 on February 15, 2014, 09:22:14 PM Assuming you tried killing it and restarting...Can you netstat to make sure bitcoind is listening on the correct port? (Or telnet?)
Title: Re: Ubuntu bitcoind Error: No Response from Server Post by: bigbeninlondon on February 16, 2014, 01:48:24 AM What port should it be listening on for local connections?
Title: Re: Ubuntu bitcoind Error: No Response from Server Post by: Shahrukh on February 16, 2014, 01:51:40 AM What port should it be listening on for local connections? 8333 Title: Re: Ubuntu bitcoind Error: No Response from Server Post by: bigbeninlondon on February 16, 2014, 02:05:02 AM What port should it be listening on for local connections? 8333 Yup, it's there Code: Proto Recv-Q Send-Q Local Address Foreign Address State User Inode PID/Program name Title: Re: Ubuntu bitcoind Error: No Response from Server Post by: bigbeninlondon on February 16, 2014, 02:06:46 AM Could it have something to do with permissions? I run the daemon with "sudo", and I'm doing it from a remote terminal since the machine is headless. I'm at a loss.
Title: Re: Ubuntu bitcoind Error: No Response from Server Post by: bigbeninlondon on February 16, 2014, 02:21:07 AM Here's a copy of my debug.log file after starting with -debug -debugnet:
Code: 2014-02-16 02:17:54 Opening LevelDB in /home/ben/.bitcoin/blocks/index Anything here? Title: Re: Ubuntu bitcoind Error: No Response from Server Post by: bigbeninlondon on February 16, 2014, 02:58:15 AM I figured out my answer. I had the mining proxy for a Block Erupter running and listening on 8332. Ugh, now my mining proxy isn't working. Gotta love it.
Title: Re: Ubuntu bitcoind Error: No Response from Server Post by: grifferz on February 16, 2014, 02:58:30 AM What port should it be listening on for local connections? 8333 Yup, it's there Code: Proto Recv-Q Send-Q Local Address Foreign Address State User Inode PID/Program name By running bitcoind on the command line are you not trying to talk JSON-RPC to the listener, not bitcoin protocol? It listens on a different port for RPC, as set by the rpcport option. Your output only has one listening port so I do not think you have enabled RPC. Have you set rpcuser, rpcpassword and rpcport? FWIW for me: Code: $ sudo lsof -p 11819 | grep LISTEN |