I did a web search before posting, but none of the similar topics shed any light on my problem.

This is the command I'm using to start bitcoind:

./bin/32/bitcoind -datadir=/somedir -daemon

This is the contents of my bitcoin.conf, which is located in /somedir (of course):


Here are the results of netstat --ip -lpan | grep bitcoin

tcp        0      0*               LISTEN      24203/bitcoind  
tcp        0      0  *               LISTEN      24203/bitcoind

Then I attempt to send a commend to the bitcoind using:

./bin/32/bitcoind -datadir=/somedir getinfo


error: couldn't connect to server

I'm probably missing something simple and obvious, but what?

1 Answer 1


This happens usually when your server isn't yet fully loaded, i.e. the executable/binary is started, but is still busy processing (I think loading the wallet and a vital part of the block chain necessary for most basic RPC commands, although I'm not sure). This could take, depending on your wallet size and processing speed, from a few seconds to several minutes in general.

If that doesn't work please comment!

  • Just now, I tried waiting approx. 30 minutes after launching the server. Still the same result.
    – xtpu
    Commented Jan 3, 2014 at 19:13
  • Okay, well it was worth a try, but just to be sure: you don't happen to have several millions of Bitcoin addresses in your wallet? Also did this happen when you first run it or later?
    – Jori
    Commented Jan 4, 2014 at 12:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.