Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

addrindex chokes on startup #7

Open
adamkrellenstein opened this issue Jan 25, 2024 · 1 comment
Open

addrindex chokes on startup #7

adamkrellenstein opened this issue Jan 25, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@adamkrellenstein
Copy link
Member

adamkrellenstein commented Jan 25, 2024

(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.
@adamkrellenstein adamkrellenstein added the bug Something isn't working label Jan 25, 2024
@adamkrellenstein adamkrellenstein changed the title addrindex chokes addrindex chokes on startup Jan 25, 2024
@adamkrellenstein
Copy link
Member Author

Full backtrace:

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Error { message: "IO error: While open a file for random read: ./db/mainnet/000011.sst: Too many open files" }', src/store.rs:180:41
stack backtrace:
   0:     0x5625a30972cc - std::backtrace_rs::backtrace::libunwind::trace::hc8c748621e1717dc
                               at /build/rustc-wAuwbs/rustc-1.70.0+dfsg0ubuntu1~bpo2/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
   1:     0x5625a30972cc - std::backtrace_rs::backtrace::trace_unsynchronized::h1657ffb548bcd1c0
                               at /build/rustc-wAuwbs/rustc-1.70.0+dfsg0ubuntu1~bpo2/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:     0x5625a30972cc - std::sys_common::backtrace::_print_fmt::ha3920362e42412b1
                               at /build/rustc-wAuwbs/rustc-1.70.0+dfsg0ubuntu1~bpo2/library/std/src/sys_common/backtrace.rs:65:5
   3:     0x5625a30972cc - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h55a64e3639141d5c
                               at /build/rustc-wAuwbs/rustc-1.70.0+dfsg0ubuntu1~bpo2/library/std/src/sys_common/backtrace.rs:44:22
   4:     0x5625a305ffdf - core::fmt::write::h8a6836b78d5c6e17
                               at /build/rustc-wAuwbs/rustc-1.70.0+dfsg0ubuntu1~bpo2/library/core/src/fmt/mod.rs:1254:17
   5:     0x5625a30a4214 - std::io::Write::write_fmt::h74083ba874a8bcaf
                               at /build/rustc-wAuwbs/rustc-1.70.0+dfsg0ubuntu1~bpo2/library/std/src/io/mod.rs:1698:15
   6:     0x5625a309709f - std::sys_common::backtrace::_print::he2a2a37b05e7e764
                               at /build/rustc-wAuwbs/rustc-1.70.0+dfsg0ubuntu1~bpo2/library/std/src/sys_common/backtrace.rs:47:5
   7:     0x5625a309709f - std::sys_common::backtrace::print::hf1818e0fa9ba5bd4
                               at /build/rustc-wAuwbs/rustc-1.70.0+dfsg0ubuntu1~bpo2/library/std/src/sys_common/backtrace.rs:34:9
   8:     0x5625a30a18ce - std::panicking::default_hook::{{closure}}::h36f8b00cf3f70373
                               at /build/rustc-wAuwbs/rustc-1.70.0+dfsg0ubuntu1~bpo2/library/std/src/panicking.rs:269:22
   9:     0x5625a30a2440 - std::panicking::default_hook::h0999e9f322268afa
                               at /build/rustc-wAuwbs/rustc-1.70.0+dfsg0ubuntu1~bpo2/library/std/src/panicking.rs:288:9
  10:     0x5625a30a2440 - std::panicking::rust_panic_with_hook::hf0f1736a09665bd3
                               at /build/rustc-wAuwbs/rustc-1.70.0+dfsg0ubuntu1~bpo2/library/std/src/panicking.rs:691:13
  11:     0x5625a3097674 - std::panicking::begin_panic_handler::{{closure}}::h9c059812511f285d
                               at /build/rustc-wAuwbs/rustc-1.70.0+dfsg0ubuntu1~bpo2/library/std/src/panicking.rs:582:13
  12:     0x5625a30975d6 - std::sys_common::backtrace::__rust_end_short_backtrace::haeaaa791abdbfc5f
                               at /build/rustc-wAuwbs/rustc-1.70.0+dfsg0ubuntu1~bpo2/library/std/src/sys_common/backtrace.rs:150:18
  13:     0x5625a30a1cd1 - rust_begin_unwind
                               at /build/rustc-wAuwbs/rustc-1.70.0+dfsg0ubuntu1~bpo2/library/std/src/panicking.rs:578:5
  14:     0x5625a2f92f02 - core::panicking::panic_fmt::h42c1b10c64151f1e
                               at /build/rustc-wAuwbs/rustc-1.70.0+dfsg0ubuntu1~bpo2/library/core/src/panicking.rs:67:14
  15:     0x5625a2f92db2 - core::result::unwrap_failed::h4b24ec377bba078a
                               at /build/rustc-wAuwbs/rustc-1.70.0+dfsg0ubuntu1~bpo2/library/core/src/result.rs:1687:5
  16:     0x5625a3012c7d - addrindexrs::index::Index::update::h78670cc0abfcdaa3
  17:     0x5625a304ad2f - addrindexrs::main::hf431db5176d0f17b
  18:     0x5625a3050a53 - std::sys_common::backtrace::__rust_begin_short_backtrace::h353b19ded732b44f
  19:     0x5625a3045e67 - main
  20:     0x7f25a8429d90 - <unknown>
  21:     0x7f25a8429e40 - __libc_start_main
  22:     0x5625a2fc8f35 - _start
  23:                0x0 - <unknown>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant