Skip to content
This repository has been archived by the owner on Dec 16, 2024. It is now read-only.

Error: getblock RPC error: {"code":-1,"message":"Block not found on disk"} #12

Open
ouziel-slama opened this issue Jan 29, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@ouziel-slama
Copy link
Contributor

On Macos
Bitcoin Core is running well.

docker logs indexer -f
Config { log: StdErrLog { verbosity: Debug, quiet: false, timestamp: Off, modules: [], writer: "stderr", color_choice: Auto }, network_type: testnet, db_path: "/root/.bitcoin/addrindexrs/testnet", daemon_dir: "/root/.bitcoin/testnet3", daemon_rpc_addr: 192.168.65.2:18332, cookie: Some("bitcoinrpc:rpc"), indexer_rpc_addr: 127.0.0.1:50002, jsonrpc_import: false, index_batch_size: 100, bulk_index_threads: 4, txid_limit: 100, blocktxids_cache_size: 10485760 }
INFO - NetworkInfo { version: 269900, subversion: "/Satoshi:26.99.0/" }
INFO - BlockchainInfo { chain: "test", blocks: 2576141, headers: 2576141, bestblockhash: "0000000000007e809ece09487fb6f11ab2942cc64aa09d449c14c873157a81d4", pruned: false, initialblockdownload: false }
DEBUG - opening DB at "/root/.bitcoin/addrindexrs/testnet"
INFO - listing block files at "/root/.bitcoin/testnet3/blocks/blk*.dat"
INFO - indexing 231 blk*.dat files
DEBUG - found 0 indexed blocks
DEBUG - applying 2576142 new headers from height 0
DEBUG - no more blocks to index
DEBUG - no more blocks to index
DEBUG - no more blocks to index
DEBUG - no more blocks to index
DEBUG - last indexed block: best=000000000000a408fd16757bec46fa0b986e8cb4a3b16c0be730213c0923b73e height=2575988 @ 2024-01-28T10:25:52Z
INFO - starting full compaction
INFO - finished full compaction
INFO - enabling auto-compactions
DEBUG - applying 2575989 new headers from height 0
INFO - enabling auto-compactions
DEBUG - downloading new block headers (2575989 already indexed) from 0000000000000014b65e2c6478882f2698e985b280e378e5dfcc7d09ed46e698
INFO - best=0000000000000014b65e2c6478882f2698e985b280e378e5dfcc7d09ed46e698 height=2576144 @ 2024-01-29T19:42:26Z (156 left to index)
ERROR - server failed: Error: getblock RPC error: {"code":-1,"message":"Block not found on disk"}

when I check with bitcoin-cli getblock <hash> I get a correct answser!

@adamkrellenstein adamkrellenstein added the bug Something isn't working label Jan 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants