This is an odd one. I am running bitcoind 0.9.1 on Ubuntu 14.04 and have this behaviour:

Doesn't work:

$ bitcoind getinfo
error: couldn't connect to server

(timeout after 30s)

Works fine:

$ curl --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getinfo", "params": [] }' -H 'content-type: text/plain;' http://user:pass@localhost:8332/


Why does the bitcoind CLI not connect to the server, but curl does?

Driving me nuts. Something buggy in 0.9.1's JSON-RPC client implementation?

  • I ended up setting up a new Bitcoin node at a different provider. With the same system config and bitcoin.conf there "bitcoind getinfo" works fine. I assume it has to do with firewall or loopback interface settings at the old provider. – meinhard Jul 27 '14 at 22:33
  • I turn off firewall and still get the same, that's not the answear in my opinion :/ – Sebastian Xawery Wiśniowiecki Dec 15 '14 at 20:54
  • same problem when I start via /etc/rc.local (raspberry pi) – tobi Mar 20 '17 at 20:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.