Bitcoin Forum
October 18, 2018, 08:37:14 AM *
News: Make sure you are not using versions of Bitcoin Core other than 0.17.0 [Torrent], 0.16.3, 0.15.2, or 0.14.3. More info.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: strange bitcoind reindex and txindex  (Read 103 times)
linger_wang
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
September 08, 2018, 12:22:06 PM
 #1

hey guys.i am doing some statistic on Tx infomation of the whole blockchain.so in order to eable a local rpc server,i set
Code:
server=1
txindex=1
and of course the user and passwd.
after doing this,i reindex  chainstate and start bitcoind with the option -txindex.but when i query transactions usually i get
Code:
example:bitcoin-cli getrawtransaction 2157b554dcfda405233906e461ee593875ae4b1b97615872db6a25130ecc1dd6 1
error code: -5
error message:
No such mempool transaction. Use -txindex to enable blockchain transaction queries. Use gettransaction for wallet transactions.

and what odd is that when i
Code:
bitcoin-cli getrawtransaction 8d0baa2c4d30e841e9b826ff8a99800032b112ca8368001e0e07fdeaa1fb4a2c 1
it returns txid vin vout,you konw, the right message.BTW,i didnt create any wallet.
i am curious about what happened here,and what can i do to get the Tx message i want.
1539851834
Hero Member
*
Offline Offline

Posts: 1539851834

View Profile Personal Message (Offline)

Ignore
1539851834
Reply with quote  #2

1539851834
Report to moderator
1539851834
Hero Member
*
Offline Offline

Posts: 1539851834

View Profile Personal Message (Offline)

Ignore
1539851834
Reply with quote  #2

1539851834
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1539851834
Hero Member
*
Offline Offline

Posts: 1539851834

View Profile Personal Message (Offline)

Ignore
1539851834
Reply with quote  #2

1539851834
Report to moderator
aleksej996
Sr. Member
****
Offline Offline

Activity: 420
Merit: 311


Do not trust the government


View Profile WWW
September 09, 2018, 11:00:25 AM
 #2

Seems like that particular transaction wasn't indexed for some reason.
The configuration should be fine.

Try starting bitcoind with -reindex option to reindex the transactions again.

░░░░░░░▄▄▄▄▄▄
░░░░▄██████████▄
░░░██████████████
░░██████▐▌██████
█████░░░░░░░▀█████
██████▄▄░░▄▄░░██████
████████░░▀▀▄██████
████████░░▄▄▄░░█████
██████▀▀░░▀▀▀░░█████
█████░░░░░░░░█████
░░██████▐▌██████
░░░██████████████
░░░░▀██████████▀
░░░░░░░▀▀▀▀▀▀
░░░

                   BitCloak Bitcoin Mixer  
  BTC & BCH | API| MULTIADDRESS| PGP PROOF|  FAST MIX |  ESCROW|  MORE !

░░░░░░░▄▄▄▄▄▄
░░░░▄██████████▄
░░░██████████████
░░██████▐▌██████
█████░░░░░░░▀█████
██████▄▄░░▄▄░░██████
████████░░▀▀▄██████
████████░░▄▄▄░░█████
██████▀▀░░▀▀▀░░█████
█████░░░░░░░░█████
░░██████▐▌██████
░░░██████████████
░░░░▀██████████▀
░░░░░░░▀▀▀▀▀▀
░░░

achow101
Moderator
Legendary
*
Offline Offline

Activity: 1554
Merit: 1703


3F1Y9yquzvY6RWvKbw2n2zeo9V5mvBhADU


View Profile WWW
September 09, 2018, 04:16:53 PM
 #3

Is your node fully synced? What do you get from the getblockchaininfo command?

TheArchaeologist
Member
**
Offline Offline

Activity: 84
Merit: 72

Learn from the Past!


View Profile WWW
September 11, 2018, 09:10:53 AM
 #4

Is your node fully synced? What do you get from the getblockchaininfo command?
Both transactions seem to be from the same block with height 500000.

I personally have no problem getting the right response for both transactions though with bitcoin-cli so I'm not sure what is going on.
TheArchaeologist
Member
**
Offline Offline

Activity: 84
Merit: 72

Learn from the Past!


View Profile WWW
September 11, 2018, 09:14:33 AM
 #5

Code:
example:bitcoin-cli getrawtransaction 2157b554dcfda405233906e461ee593875ae4b1b97615872db6a25130ecc1dd6 1
error code: -5
error message:
No such mempool transaction. Use -txindex to enable blockchain transaction queries. Use gettransaction for wallet transactions.
With txindex enabled the error message should be slightly different:

"No such mempool or blockchain transaction. Use gettransaction for wallet transactions."
linger_wang
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
September 14, 2018, 07:10:15 AM
 #6

Seems like that particular transaction wasn't indexed for some reason.
The configuration should be fine.

Try starting bitcoind with -reindex option to reindex the transactions again.


i did reindex twice.but seems didn't work.
linger_wang
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
September 14, 2018, 07:21:54 AM
 #7

Is your node fully synced? What do you get from the getblockchaininfo command?
Both transactions seem to be from the same block with height 500000.

I personally have no problem getting the right response for both transactions though with bitcoin-cli so I'm not sure what is going on.
getblockchaininfo result is fine

Code:
"chain": "main",
  "blocks": 540636,
  "headers": 541358,
  "bestblockhash": "000000000000000000086f70258ad16b5524fd43d287e5e2e01d33cb927f6277",
  "difficulty": 7019199231177.173,
  "mediantime": 1536486789,
  "verificationprogress": 0.9957173345534331,
  "initialblockdownload": true,
  "chainwork": "000000000000000000000000000000000000000003184707353223f933c61b83",
  "size_on_disk": 208170620396,
  "pruned": false,
........

i doubt that it could be a problem of the use of newest core vision?

right now i turn to use api provided by blockchaininfo website to query tx info.
aleksej996
Sr. Member
****
Offline Offline

Activity: 420
Merit: 311


Do not trust the government


View Profile WWW
September 16, 2018, 01:17:03 PM
 #8

Anything interesting in the debug.log file?

You should share the log here if there is anything suspicious about it.
Otherwise it would be a very weird problem.

░░░░░░░▄▄▄▄▄▄
░░░░▄██████████▄
░░░██████████████
░░██████▐▌██████
█████░░░░░░░▀█████
██████▄▄░░▄▄░░██████
████████░░▀▀▄██████
████████░░▄▄▄░░█████
██████▀▀░░▀▀▀░░█████
█████░░░░░░░░█████
░░██████▐▌██████
░░░██████████████
░░░░▀██████████▀
░░░░░░░▀▀▀▀▀▀
░░░

                   BitCloak Bitcoin Mixer  
  BTC & BCH | API| MULTIADDRESS| PGP PROOF|  FAST MIX |  ESCROW|  MORE !

░░░░░░░▄▄▄▄▄▄
░░░░▄██████████▄
░░░██████████████
░░██████▐▌██████
█████░░░░░░░▀█████
██████▄▄░░▄▄░░██████
████████░░▀▀▄██████
████████░░▄▄▄░░█████
██████▀▀░░▀▀▀░░█████
█████░░░░░░░░█████
░░██████▐▌██████
░░░██████████████
░░░░▀██████████▀
░░░░░░░▀▀▀▀▀▀
░░░

Lauda
Legendary
*
Offline Offline

Activity: 2002
Merit: 1633


GUNBOT Licenses up to 50% OFF - 'GrumpyKitty'.


View Profile WWW
September 18, 2018, 08:31:58 AM
 #9

i doubt that it could be a problem of the use of newest core vision?
Checked both on v0.16.2; both work fine

Anything interesting in the debug.log file?
This. Clean your log, run both commands and copy the output of debug.log here.

.FORTUNE.JACK.
      ▄▄███████▄▄
   ▄████▀▀ ▄ ██████▄
  ████ ▄▄███ ████████
 █████▌▐███▌ ▀▄ ▀█████
███████▄██▀▀▀▀▄████████
█████▀▄▄▄▄█████████████
████▄▄▄▄ █████████████
 ██████▌ ███▀████████
  ███████▄▀▄████████
   ▀█████▀▀███████▀
      ▀▀██████▀▀
         
         █
...FortuneJack.com                                             
...THE BIGGEST BITCOIN GAMBLING SITE
       ▄▄█████████▄▄
    ▄█████████████████▄
  ▄█████████████████████▄
 ▄██
█████████▀███████████▄
██████████▀   ▀██████████
█████████▀       ▀█████████
████████           ████████
████████▄   ▄ ▄   ▄████████
██████████▀   ▀██████████
 ▀██
█████████████████████▀
  ▀██
███████████████████▀
    ▀█████████████████▀
       ▀▀█████████▀▀
#JACKMATE
WIN 1 BTC
▄█████████████████████████▄
███████████████████████████
███████████████████████████
██████████▀█████▀██████████
███████▀░░▀░░░░░▀░░▀███████
██████▌░░░░░░░░░░░░░▐██████
██████░░░░██░░░██░░░░██████
█████▌░░░░▀▀░░░▀▀░░░░▐█████
██████▄░░▄▄▄░░░▄▄▄░░▄██████
████████▄▄███████▄▄████████

███████████████████████████
███████████████████████████
▀█████████████████████████▀
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!