Bitcoin full node and query server

Jan 5, 2025

View in context in the libbitcoin Slack #general mirror.

M
Marnix19:31
on a fresh install on debian 12, bn was working. Then I executed ./bn -t
./bn -t
Using default configuration settings.
Database is started.
Getting first [100] output address hashes.
Segmentation fault
and now bn doesn't run anymore
./bn
2025-01-03T16:18:31Z.0 ====================== startup =======================
2025-01-03T16:18:31Z.0 Using default configuration settings.
2025-01-03T16:18:31Z.0 Database failed to start with error 'flush lock failure'.
2025-01-03T16:18:31Z.0 Please wait while restoring from most recent snapshot...
2025-01-03T16:18:31Z.0 restore::recover_snapshot(store)
2025-01-03T16:18:31Z.0 Database restore failed with error 'missing snapshot'.
2025-01-03T16:18:31Z.0 Node stopped successfully.
2025-01-03T16:18:31Z.0 ====================== shutdown ======================
2025-01-03T16:18:31Z.0 Press <enter> to exit...
how to fix?
M
Marnix20:05
fresh install, execute install script, run bn:
./bn 
2025-01-05T16:58:12Z.0 ====================== startup =======================
2025-01-05T16:58:12Z.0 Using default configuration settings.
2025-01-05T16:58:12Z.0 The "bitcoin" database directory does not exist.
2025-01-05T16:58:12Z.0 Using default configuration settings.
2025-01-05T16:58:12Z.0 Initializing "bitcoin" directory...
2025-01-05T16:58:12Z.0 Please wait while creating the database...
2025-01-05T16:58:12Z.0 create::create_file(header_head)
2025-01-05T16:58:12Z.0 create::create_file(header_body)
2025-01-05T16:58:12Z.0 create::create_file(input_head)
2025-01-05T16:58:12Z.0 create::create_file(input_body)
2025-01-05T16:58:12Z.0 create::create_file(output_head)
2025-01-05T16:58:12Z.0 create::create_file(output_body)
2025-01-05T16:58:12Z.0 create::create_file(point_head)
2025-01-05T16:58:12Z.0 create::create_file(point_body)
2025-01-05T16:58:12Z.0 create::create_file(puts_head)
2025-01-05T16:58:12Z.0 create::create_file(puts_body)
2025-01-05T16:58:12Z.0 create::create_file(spend_head)
2025-01-05T16:58:12Z.0 create::create_file(spend_body)
2025-01-05T16:58:12Z.0 create::create_file(tx_head)
2025-01-05T16:58:12Z.0 create::create_file(tx_body)
2025-01-05T16:58:12Z.0 create::create_file(txs_head)
2025-01-05T16:58:12Z.0 create::create_file(txs_body)
2025-01-05T16:58:12Z.0 create::create_file(candidate_head)
2025-01-05T16:58:12Z.0 create::create_file(candidate_body)
2025-01-05T16:58:12Z.0 create::create_file(confirmed_head)
2025-01-05T16:58:12Z.0 create::create_file(confirmed_body)
2025-01-05T16:58:12Z.0 create::create_file(strong_tx_head)
2025-01-05T16:58:12Z.0 create::create_file(strong_tx_body)
2025-01-05T16:58:12Z.0 create::create_file(validated_bk_head)
2025-01-05T16:58:12Z.0 create::create_file(validated_bk_body)
2025-01-05T16:58:12Z.0 create::create_file(validated_tx_head)
2025-01-05T16:58:12Z.0 create::create_file(validated_tx_body)
2025-01-05T16:58:12Z.0 create::create_file(address_head)
2025-01-05T16:58:12Z.0 create::create_file(address_body)
2025-01-05T16:58:12Z.0 create::create_file(neutrino_head)
2025-01-05T16:58:12Z.0 create::create_file(neutrino_body)
2025-01-05T16:58:12Z.0 create::open_file(header_head)
2025-01-05T16:58:12Z.0 create::open_file(header_body)
2025-01-05T16:58:12Z.0 create::open_file(input_head)
2025-01-05T16:58:12Z.0 create::open_file(input_body)
2025-01-05T16:58:12Z.0 create::open_file(output_head)
2025-01-05T16:58:12Z.0 create::open_file(output_body)
2025-01-05T16:58:12Z.0 create::open_file(point_head)
2025-01-05T16:58:12Z.0 create::open_file(point_body)
2025-01-05T16:58:12Z.0 create::open_file(puts_head)
2025-01-05T16:58:12Z.0 create::open_file(puts_body)
2025-01-05T16:58:12Z.0 create::open_file(spend_head)
2025-01-05T16:58:12Z.0 create::open_file(spend_body)
2025-01-05T16:58:12Z.0 create::open_file(tx_head)
2025-01-05T16:58:12Z.0 create::open_file(tx_body)
2025-01-05T16:58:12Z.0 create::open_file(txs_head)
2025-01-05T16:58:12Z.0 create::open_file(txs_body)
2025-01-05T16:58:12Z.0 create::open_file(candidate_head)
2025-01-05T16:58:12Z.0 create::open_file(candidate_body)
2025-01-05T16:58:12Z.0 create::open_file(confirmed_head)
2025-01-05T16:58:12Z.0 create::open_file(confirmed_body)
2025-01-05T16:58:12Z.0 create::open_file(strong_tx_head)
2025-01-05T16:58:12Z.0 create::open_file(strong_tx_body)
2025-01-05T16:58:12Z.0 create::open_file(validated_bk_head)
2025-01-05T16:58:12Z.0 create::open_file(validated_bk_body)
2025-01-05T16:58:12Z.0 create::open_file(validated_tx_head)
2025-01-05T16:58:12Z.0 create::open_file(validated_tx_body)
2025-01-05T16:58:12Z.0 create::open_file(address_head)
2025-01-05T16:58:12Z.0 create::open_file(address_body)
2025-01-05T16:58:12Z.0 create::open_file(neutrino_head)
2025-01-05T16:58:12Z.0 create::open_file(neutrino_body)
2025-01-05T16:58:12Z.0 create::load_file(header_head)
2025-01-05T16:58:12Z.0 create::load_file(header_body)
2025-01-05T16:58:12Z.0 create::load_file(input_head)
2025-01-05T16:58:12Z.0 create::load_file(input_body)
2025-01-05T16:58:12Z.0 create::load_file(output_head)
2025-01-05T16:58:12Z.0 create::load_file(output_body)
2025-01-05T16:58:12Z.0 create::load_file(point_head)
2025-01-05T16:58:12Z.0 create::load_file(point_body)
2025-01-05T16:58:12Z.0 create::load_file(puts_head)
2025-01-05T16:58:12Z.0 create::load_file(puts_body)
2025-01-05T16:58:12Z.0 create::load_file(spend_head)
2025-01-05T16:58:12Z.0 create::load_file(spend_body)
2025-01-05T16:58:12Z.0 create::load_file(tx_head)
2025-01-05T16:58:12Z.0 create::load_file(tx_body)
2025-01-05T16:58:12Z.0 create::load_file(txs_head)
2025-01-05T16:58:12Z.0 create::load_file(txs_body)
2025-01-05T16:58:12Z.0 create::load_file(candidate_head)
2025-01-05T16:58:12Z.0 create::load_file(candidate_body)
2025-01-05T16:58:12Z.0 create::load_file(confirmed_head)
2025-01-05T16:58:12Z.0 create::load_file(confirmed_body)
2025-01-05T16:58:12Z.0 create::load_file(strong_tx_head)
2025-01-05T16:58:12Z.0 create::load_file(strong_tx_body)
2025-01-05T16:58:12Z.0 create::load_file(validated_bk_head)
2025-01-05T16:58:12Z.0 create::load_file(validated_bk_body)
2025-01-05T16:58:12Z.0 create::load_file(validated_tx_head)
2025-01-05T16:58:12Z.0 create::load_file(validated_tx_body)
2025-01-05T16:58:12Z.0 create::load_file(address_head)
2025-01-05T16:58:12Z.0 create::load_file(address_body)
2025-01-05T16:58:12Z.0 create::load_file(neutrino_head)
2025-01-05T16:58:12Z.0 create::load_file(neutrino_body)
2025-01-05T16:58:12Z.0 create::create_table(header_table)
2025-01-05T16:58:12Z.0 create::create_table(input_table)
2025-01-05T16:58:12Z.0 create::create_table(output_table)
2025-01-05T16:58:12Z.0 create::create_table(point_table)
2025-01-05T16:58:15Z.0 create::create_table(puts_table)
2025-01-05T16:58:15Z.0 create::create_table(spend_table)
2025-01-05T16:58:24Z.0 create::create_table(tx_table)
2025-01-05T16:58:27Z.0 create::create_table(txs_table)
2025-01-05T16:58:27Z.0 create::create_table(candidate_table)
2025-01-05T16:58:27Z.0 create::create_table(confirmed_table)
2025-01-05T16:58:27Z.0 create::create_table(strong_tx_table)
2025-01-05T16:58:31Z.0 create::create_table(validated_bk_table)
2025-01-05T16:58:31Z.0 create::create_table(validated_tx_table)
2025-01-05T16:58:35Z.0 create::create_table(address_table)
2025-01-05T16:58:35Z.0 create::create_table(neutrino_table)
2025-01-05T16:58:35Z.0 Storing genesis block.
2025-01-05T16:58:35Z.0 Created the database in 23 secs.
2025-01-05T16:58:35Z.0 Body sizes...
   header    :98
   txs       :18
   tx        :62
   point     :0
   input     :79
   output    :81
   puts      :9
   candidate :3
   confirmed :3
   spend     :24
   strong_tx :12
   valid_tx  :0
   valid_bk  :0
   address   :0
   neutrino  :0
2025-01-05T16:58:35Z.0 Table records...
   header    :1
   tx        :1
   point     :0
   candidate :1
   confirmed :1
   spend     :1
   strong_tx :1
   address   :0
2025-01-05T16:58:35Z.0 Head buckets...
   header    :524493
   txs       :524493
   tx        :551320125
   point     :546188501
   spend     :1459791875
   strong_tx :551320125
   valid_tx  :551320125
   valid_bk  :524493
   address   :1
   neutrino  :1
2025-01-05T16:58:35Z.0 Version Information...
libbitcoin-node:       4.0.0
libbitcoin-database:   4.0.0
libbitcoin-network:    4.0.0
libbitcoin-system:     4.0.0
2025-01-05T16:58:35Z.0 Hardware configuration...
2025-01-05T16:58:35Z.0 arm..... platform:0.
2025-01-05T16:58:35Z.0 intel... platform:1.
2025-01-05T16:58:35Z.0 avx512.. platform:0 compiled:0.
2025-01-05T16:58:35Z.0 avx2.... platform:1 compiled:0.
2025-01-05T16:58:35Z.0 sse41... platform:1 compiled:0.
2025-01-05T16:58:35Z.0 shani... platform:1 compiled:0.
2025-01-05T16:58:35Z.0 neon.... platform:0 compiled:0.
2025-01-05T16:58:35Z.0 Log system configuration...
2025-01-05T16:58:35Z.0 [a]pplication.. compiled:1 enabled:1.
2025-01-05T16:58:35Z.0 [n]ews......... compiled:1 enabled:1.
2025-01-05T16:58:35Z.0 [s]ession...... compiled:1 enabled:1.
2025-01-05T16:58:35Z.0 [p]rotocol..... compiled:1 enabled:0.
2025-01-05T16:58:35Z.0 [x]proxy....... compiled:1 enabled:0.
2025-01-05T16:58:35Z.0 [r]emote....... compiled:1 enabled:1.
2025-01-05T16:58:35Z.0 [f]ault........ compiled:1 enabled:1.
2025-01-05T16:58:35Z.0 [q]uitting..... compiled:1 enabled:0.
2025-01-05T16:58:35Z.0 [o]bjects...... compiled:1 enabled:0.
2025-01-05T16:58:35Z.0 [v]erbose...... compiled:1 enabled:0.
2025-01-05T16:58:35Z.0 Press CTRL-C to stop the node.
Segmentation fault