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

Snapshots are not contiguous #2169

Closed
centromere opened this issue Jan 31, 2024 · 3 comments
Closed

Snapshots are not contiguous #2169

centromere opened this issue Jan 31, 2024 · 3 comments

Comments

@centromere
Copy link

Hello. I am trying to bootstrap a leap 5.0.0 node completely from the snapshots provided here. I want my blocks.log file to begin from genesis. Unfortunately, there does not seem to be a way to achieve this. I tried restoring from snapshot-2024-01-30-22-eos-v6-0354914962.bin, and while that worked successfully, it doesn't give me all the blocks prior to 354914963. When I tried to add the next snapshot in the list, I received this error:

error 2024-01-31T03:11:53.793 nodeos    main.cpp:209                  main                 ] 3190000 block_log_exception: Block log exception
Block log is provided with snapshot but does not contain the head block from the snapshot nor a block right after it
    {"snapshot_head_block":354893362,"block_log_first_num":354914963,"block_log_last_num":354937726}
    nodeos  controller.cpp:928 read_from_snapshot

    {}
    nodeos  chain_plugin.cpp:1158 plugin_startup

I am invoking leap as follows:

nodeos --data-dir=/var/db/leap --config-dir=/etc/leap/config --plugin=eosio::chain_plugin --plugin=eosio::chain_api_plugin --protocol-features-dir=/etc/leap/protocol_features --wasm-runtime=eos-vm-jit --abi-serializer-max-time-ms=10000 --chain-state-db-size-mb=8388608 --chain-threads=16 --eos-vm-oc-compile-threads=4 --disable-replay-opts --plugin=eosio::http_plugin --http-server-address=[::]:8888 --http-max-response-time-ms=1000 --verbose-http-errors --http-validate-host=false --http-threads=16 --plugin=eosio::net_plugin --plugin=eosio::net_api_plugin --p2p-listen-endpoint=:9876 --p2p-server-address=:9876 --p2p-peer-address=eos.seed.eosnation.io:9876 --p2p-peer-address=peer1.eosphere.io:9876 --p2p-peer-address=p2p.genereos.io:9876 --net-threads=8 --sync-fetch-span=5000 --plugin=eosio::producer_plugin --plugin=eosio::producer_api_plugin --snapshots-dir=/var/db/leap/snapshots --plugin=eosio::state_history_plugin --state-history-dir=/var/db/leap/block/state-history --trace-history --chain-state-history --state-history-endpoint=[::]:8080 --trace-history-debug-mode --logconf=/etc/leap/config/logging.json --snapshot=snapshots/snapshot-2024-01-30-19-eos-v6-0354893362.bin

Is this user error? Are the official snapshots intended to be non-contiguous? I do not want to wait months for the node to sync.

@matthewdarwin
Copy link

If you want the blocks to start from genesis, either you need to sync from genesis or download a blocks.log from someone. Snapshots only contain the state at exactly the time (block height) of the snapshot. No history.

@heifner
Copy link
Member

heifner commented Jan 31, 2024

@matthewdarwin how big is a full block log now for EOS?

@spoonincode
Copy link
Member

it's just under 3TiB

@bhazzard bhazzard removed the triage label Feb 27, 2024
@bhazzard bhazzard closed this as not planned Won't fix, can't repro, duplicate, stale Feb 27, 2024
@github-project-automation github-project-automation bot moved this from Todo to Done in Team Backlog Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

6 participants