getrawtransaction is error bitcoin core

1

I use VPS centos 7, and i install bitcoind follow: https://www.ringingliberty.com/bitcoin/

this is file bitcoin.conf:

rpcuser=bitcoinrpc
rpcpassword=My_password
daemon=1
rpctimeout=30
rpcport=8332
gen=0
txindex=1
keypool=100

Then i ran: bitcoind -reindex -deamon then ran:
bitcoin-cli getrawtransaction string_txid

i get error:

error code: -5
error message:
No information available about transaction

I use: Bitcoin Core Daemon version v0.13.0.0-ga402396

I don't know wrong?

Vagabond

Posted 2016-10-29T11:14:40.807

Reputation: 11

Answers

1

That will success when bitcoind download all blockchain.

Wait till bitcoind complete synchronization then try again.

Sh Sh

Posted 2016-10-29T11:14:40.807

Reputation: 366

But, i ran same code on VPS of my friend. It run ok? Why?Vagabond 2016-10-29T16:14:55.563

Maybe your friend's node is synced and yours is not?Pieter Wuille 2016-10-31T03:52:03.710