Do you set rpcuser, rpcpass(word?), server=1 (or deamon=1? or even both?) and allow connections from localhost in the config file?
Edit: just checked and
server=1
daemon=1
rpcuser=whatever
rpcpassword=SHA256(ofJustAnythingYouDontNeedItAnywayUnlessYouConnectRemotly)
rpcallowip=127.0.0.1
should work. IIRC localhost is allowed by default, so that setting might be redundant.
Thanks for the reply. I modified my config file, but it still doesn't work for me. Here's what my bitcoin.conf file now looks like:
server=1
daemon=1
rpcuser=bitcoinrpc
rpcpassword=omitted:)
rpcallowip=127.0.0.1
txindex=1
I already had txindex=1 because I sometimes need to get information about arbitrary transactions.
I can start the daemon, but when I try to use it I get the same response as before:
./bitcoin-0.9.3-linux/bin/32/bitcoind -datadir=/media/myusb/.bitcoin/ -proxy=127.0.0.1:9050 getinfo
error: couldn't connect to server
amnesia@amnesia:~$ ./bitcoin-0.9.3-linux/bin/32/bitcoind -datadir=/media/myusb/.bitcoin/ getinfo
error: couldn't connect to server
I'm reluctant to keep trying because after starting the daemon the only way I can stop it is with "kill" -- which I'm afraid might leave something in a bad state and I won't be able to start by bitcoin-qt.
I can do anything I want through the debug console of the qt client anyway, but I could automate more if I could get bitcoind to work.