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

addrindex chokes on startup #7

@adamkrellenstein

Description

@adamkrellenstein
(base) adam@api3:/mnt/backend/addrindexrs$ cargo run --release -- -vvv --timestamp --cookie="bitcoinrpc:rpc"                                 warning: field `outpoint` is never read                                                                                                                                
  --> src/query.rs:27:5                                                                                                                                                
   |                                                                                                                                                                   
25 | struct SpendingInput {                                                                                                                                            
   |        ------------- field in this struct                                                                                                                         
26 |     txid: Sha256dHash,                                                                                                                                            
27 |     outpoint: OutPoint,                                                                                                                                           
   |     ^^^^^^^^                                                                                                                                                      
   |                                                                                                                                                                   
   = note: `#[warn(dead_code)]` on by default                                                                                                                          
                                                                                                                                                                       
warning: unused return value of `Vec::<T, A>::split_off` that must be used                                                                                             
   --> src/util.rs:173:9                                                                                                                                               
    |                                                                                                                                                                  
173 |         self.headers.split_off(new_height); // keep [0..new_height) entries                                                                                      
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                                                                                       
    |                                                                                                                                                                  
    = note: use `.truncate()` if you don't need the other half                                                                                                         
    = note: `#[warn(unused_must_use)]` on by default                                                                                                                   
help: use `let _ = ...` to ignore the resulting value                                                                                                                  
    |                                                                                                                                                                  
173 |         let _ = self.headers.split_off(new_height); // keep [0..new_height) entries                                                                              
    |         +++++++                                                                                                                                                  
                                                                                                                                                                       
warning: `addrindexrs` (lib) generated 2 warnings                                                                                                                      
    Finished release [optimized] target(s) in 0.18s                                                                                                                    
warning: the following packages contain code that will be rejected by a future version of Rust: cexpr v0.3.6, nom v4.2.3, rustc-serialize v0.3.24                      
note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 2`                                  
     Running `target/release/addrindexrs -vvv --timestamp '--cookie=bitcoinrpc:rpc'`                                                                                   
Config { log: StdErrLog { verbosity: Debug, quiet: false, timestamp: Millisecond, modules: [], writer: "stderr", color_choice: Auto }, network_type: bitcoin, db_path: 
"./db/mainnet", daemon_dir: "/home/adam/.bitcoin", daemon_rpc_addr: 127.0.0.1:8332, cookie: Some("bitcoinrpc:rpc"), indexer_rpc_addr: 0.0.0.0:50001, jsonrpc_import: tr
ue, index_batch_size: 100, bulk_index_threads: 4, txid_limit: 15000, blocktxids_cache_size: 10485760 }                                                                 
2024-01-25T02:44:57.620+00:00 - INFO - NetworkInfo { version: 260000, subversion: "/Satoshi:26.0.0/" }                                                                 
2024-01-25T02:45:00.601+00:00 - INFO - BlockchainInfo { chain: "main", blocks: 827244, headers: 827244, bestblockhash: "00000000000000000003b48409bfda612c422d06f576527
ae9bcc8b9381d36bb", pruned: false, initialblockdownload: false }
2024-01-25T02:45:01.906+00:00 - DEBUG - opening DB at "./db/mainnet"
2024-01-25T02:45:07.769+00:00 - DEBUG - applying 827179 new headers from height 0
2024-01-25T02:45:08.104+00:00 - INFO - enabling auto-compactions
2024-01-25T02:45:11.952+00:00 - DEBUG - downloading new block headers (827179 already indexed) from 00000000000000000003b48409bfda612c422d06f576527ae9bcc8b9381d36bb
2024-01-25T02:47:43.776+00:00 - INFO - best=00000000000000000003b48409bfda612c422d06f576527ae9bcc8b9381d36bb height=827244 @ 2024-01-25T02:40:01Z (66 left to index)
[...]
2024-01-25T02:39:22.603+00:00 - INFO - indexing block 000000000000000000006b3b9a765d233630c9edfc37cf21b35dcbe3cfdfb9c5
2024-01-25T02:39:22.632+00:00 - INFO - indexing block 00000000000000000003085ad6f7b8ce8cf78791c16b0b8cad7a9bbf182e2d9c
2024-01-25T02:39:22.645+00:00 - INFO - indexing block 0000000000000000000108166829f0cac93fb64763d381e4a7befad319d00957
2024-01-25T02:39:22.659+00:00 - INFO - indexing block 000000000000000000033e7b5ff9e5131aa174c73480118df2187ffa8c687893
2024-01-25T02:39:22.667+00:00 - INFO - indexing block 00000000000000000000fefd2f38968f8c08fb441fbfd8a48cec2d8f8d25a234
2024-01-25T02:39:22.679+00:00 - INFO - indexing block 0000000000000000000208f672e626421ad289d672180915ccbd14270f6ccf6e
2024-01-25T02:39:22.690+00:00 - INFO - indexing block 000000000000000000015b0eaaa5013843db1208234ab626fd0b2cdee3211d94
2024-01-25T02:39:22.700+00:00 - INFO - indexing block 0000000000000000000378684c0e56576853bdf69fde53d3aa6e613d6756028c
2024-01-25T02:39:22.713+00:00 - INFO - indexing block 0000000000000000000120c448d2c758c1d90f7a177beaa5c4c2a2c37b1894a8
2024-01-25T02:39:22.726+00:00 - INFO - indexing block 000000000000000000024051a057ffedb4c05346061c0d5e36d84e6bcd13f756
2024-01-25T02:39:22.735+00:00 - INFO - indexing block 000000000000000000036d6a58bc6547439283a447e6742b4acc4b8c0eca6871
2024-01-25T02:39:22.746+00:00 - INFO - indexing block 000000000000000000022947a9d2518189fc92e300bfd3e125e135c405c2ef9d
2024-01-25T02:39:22.757+00:00 - INFO - indexing block 000000000000000000038c8a34964d0cd547afde9384b2f78071a215e9ca8d6d
2024-01-25T02:39:22.766+00:00 - INFO - indexing block 00000000000000000003c98c8951457b725d4585d6ae2444f91a5f5c1ce7410a
2024-01-25T02:39:22.775+00:00 - INFO - indexing block 00000000000000000001578aa36e75c07276970b5a5f58206fe5807a3b0aaefd
2024-01-25T02:39:22.785+00:00 - INFO - indexing block 00000000000000000003e1d64cd62adafcecba3dd9473065f9907662cd675693
2024-01-25T02:39:22.798+00:00 - INFO - indexing block 000000000000000000039d129834c84b23cc2587840cbdc05c61c4ce91405d53
2024-01-25T02:39:22.807+00:00 - INFO - indexing block 00000000000000000001911217cb253c0e282760aa28fe7652a278a4f4cfea87
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Error { message: "IO error: While open a file for random read: ./db/mainnet/000009.sst: Too man
y open files" }', src/store.rs:180:41                                                                                                                                  
stack backtrace:                                                                                                                                                       
   0: rust_begin_unwind                                                                                                                                                
             at /build/rustc-wAuwbs/rustc-1.70.0+dfsg0ubuntu1~bpo2/library/std/src/panicking.rs:578:5                                                                  
   1: core::panicking::panic_fmt                                                                                                                                       
             at /build/rustc-wAuwbs/rustc-1.70.0+dfsg0ubuntu1~bpo2/library/core/src/panicking.rs:67:14
   2: core::result::unwrap_failed
             at /build/rustc-wAuwbs/rustc-1.70.0+dfsg0ubuntu1~bpo2/library/core/src/result.rs:1687:5
   3: addrindexrs::index::Index::update
   4: addrindexrs::main
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions