moneroexamples / onion-monero-blockchain-explorer

Onion Monero Blockchain Explorer
https://xmrchain.net
BSD 3-Clause "New" or "Revised" License
370 stars 269 forks source link

An uncaught exception occurred: tx with hash [TX_HASH] not found in db #186

Closed serhack closed 5 years ago

serhack commented 5 years ago

Hi @moneroexamples , We've tried to compile your monero blockchain explorer and it went fine. We have not detected any problems, then we execute the following command to get the explorer working:

./xmrblocks -b /var/lib/monero/lmdb/ -p [PORT] --bindaddr [IP] --enable-json-api --enable-tx-cache --enable-mixin-details

If we go to [PORT]:[IP], the explorer will be shown correctly. But if you click on one transaction, we'll get a 500 error: "Tx with hash [TX_HASH] not found in db". This do not appear if you will click on a block, or a coinbase transaction.

(2019-07-12 13:37:28) [INFO ] Request: [CLIENT_IP] 0x7fbdec0035e0 HTTP/1.1 GET /tx/068927e49c257d41add5703e24993f9b4b5c2724a505a8151bbe063abc21ccf4 (2019-07-12 13:37:28) [ERROR ] An uncaught exception occurred: tx with hash d451d21f48345831f847801bc93b70e4b837ab975af4b96320f026c31cc5ab4b not found in db (2019-07-12 13:37:28) [INFO ] Response: 0x7fbdec0035e0 /tx/068927e49c257d41add5703e24993f9b4b5c2724a505a8151bbe063abc21ccf4 500 0

serhack commented 5 years ago

Oh, I found the reason. In order to run the explorer, you must not have the pruned blockchain.