Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: stepkrav on July 30, 2014, 06:16:56 PM



Title: bitcoin-0.9.2-linux , "error: server returned HTTP error 403"
Post by: stepkrav on July 30, 2014, 06:16:56 PM
So, i downloaded, compiled and run bitcoind 0.9.2 on debian stable.

Code:
./configure --disable-wallet --without-miniupnpc
make

bitcoind is run under 'bitcoin' user.

there is a ~/.bitcoin/bitcoin.conf file containing

Code:
rpcuser=some
rpcpassword=somethingelse
txindex=1

so i start bitcoind, and then i try to interact with it like:

Code:
bitcoind getinfo

or

Code:
bitcoin-cli getinfo

In both case i get

"error: server returned HTTP error 403"

It's strange cause this setup used to work until the previous bitcoin version, or the one before it. Any ideas what's going on?


Title: Re: bitcoin-0.9.2-linux , "error: server returned HTTP error 403"
Post by: cava on July 30, 2014, 06:25:27 PM
in the config file try to add the line:

server=1



Title: Re: bitcoin-0.9.2-linux , "error: server returned HTTP error 403"
Post by: stepkrav on July 30, 2014, 06:58:26 PM
thanks but same error.  :-\


Title: Re: bitcoin-0.9.2-linux , "error: server returned HTTP error 403"
Post by: cava on July 30, 2014, 07:48:01 PM
try this

server=1
rpcallowip=127.0.0.1

restart bitcoind






Title: Re: bitcoin-0.9.2-linux , "error: server returned HTTP error 403"
Post by: stepkrav on July 30, 2014, 07:56:46 PM
nope.

i've even tried

Code:
bitcoind -rpcuser=some -rpcpassword=else

and then

Code:
 bitcoin-cli -rpcuser=some -rpcpassword=else getinfo


and it fails


Title: Re: bitcoin-0.9.2-linux , "error: server returned HTTP error 403"
Post by: RedDiamond on July 31, 2014, 04:40:21 AM
nope.

i've even tried

Code:
bitcoind -rpcuser=some -rpcpassword=else

and then

Code:
 bitcoin-cli -rpcuser=some -rpcpassword=else getinfo


and it fails

You can try

Code:
bitcoind -rpcuser=some -rpcpassword=else -rpcallowip=MYIP

Replace MYIP with you ip or network address.



Title: Re: bitcoin-0.9.2-linux , "error: server returned HTTP error 403"
Post by: shorena on July 31, 2014, 09:29:41 AM
I know this is a rather silly question but Ill ask anyway since it seemed strange to me at first.

You do run bitcoind once with all the parameters you want and run amother instance to query it?

E.g. bitcoind -conf...
open new terminal
bitcoind getinfo


Title: Re: bitcoin-0.9.2-linux , "error: server returned HTTP error 403"
Post by: dserrano5 on July 31, 2014, 09:35:32 AM
There may be something relevant in the debug.log.


Title: Re: bitcoin-0.9.2-linux , "error: server returned HTTP error 403"
Post by: stepkrav on July 31, 2014, 02:11:00 PM
nope.

i've even tried

Code:
bitcoind -rpcuser=some -rpcpassword=else

and then

Code:
 bitcoin-cli -rpcuser=some -rpcpassword=else getinfo


and it fails

You can try

Code:
bitcoind -rpcuser=some -rpcpassword=else -rpcallowip=MYIP

Replace MYIP with you ip or network address.



I did have rpallowip=127.0.0.1 wouldn't work. I changed it with the public IP and it worked! Damn me. Thanks.