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

distributable node snapshot #4370

Open
pro-wh opened this issue Nov 18, 2021 · 10 comments
Open

distributable node snapshot #4370

pro-wh opened this issue Nov 18, 2021 · 10 comments
Labels
c:ops Category: operations

Comments

@pro-wh
Copy link
Contributor

pro-wh commented Nov 18, 2021

suppose I have a "serverdir" of a node that's synced. Someone wants to get my copy of that.

goal:

  1. formulate instructions for how to prepare a distributable (i.e. no secret information) bundle of a synced node's state so that recipient can get chain history from a trusted source done
  2. possibly make a tool that can prepare this bundle
@kostko
Copy link
Member

kostko commented Nov 18, 2021

@pro-wh
Copy link
Contributor Author

pro-wh commented Nov 18, 2021

oh ok yeah. since we have that written up, let's go ahead and check that first item off the list then

@valentinbud
Copy link

One of the validators, @Bambarello, is already providing such a snapshot.

See https://github.com/Bambarello/cosmos-snapshots and http://snapshots.alexvalidator.com:8081/. Is this what you mean @pro-wh?

@pro-wh
Copy link
Contributor Author

pro-wh commented Dec 1, 2021

Yeah, I think those are the kind of snapshot. Thanks for sharing the links.

The remaining item in this issue is about adding a tool for creating those snapshots.

@tjanez tjanez added the c:ops Category: operations label Dec 16, 2021
@tjanez
Copy link
Member

tjanez commented Nov 29, 2023

We now also have Oasis Snapshots (https://snapshots.oasis.io/), an official service providing Oasis Network snapshots.

@blocknodehub
Copy link

blocknodehub commented Nov 30, 2023

However, there is no snapshot data for the latest version (oasis-4)

@kostko
Copy link
Member

kostko commented Nov 30, 2023

You should be able to sync the latest version from genesis very quickly so no snapshot is needed yet ;)

@blocknodehub
Copy link

blocknodehub commented Nov 30, 2023

I used statesync to start up, but I couldn't sync the data
Config:
mode: client
common:
data_dir: /mnt/rosemain/node/data
log:
format: JSON
level:
cometbft: info
cometbft/context: error
default: info
consensus:
state_sync:
enabled: true
trust_height: 16824024
trust_hash: "14e2c486579a1c03b5109a7acf86e2c65c497ed6210caa2e99179541e5cb4eda"
prune:
num_kept: 302400
strategy: keep_n
genesis:
file: /mnt/rosemain/node/etc/genesis.json
p2p:
seeds:
- "H6u9MtuoWRKn5DKSgarj/dzr2Z9BsjuRHgRAoXITOcU=@35.199.49.168:26656"
- "H6u9MtuoWRKn5DKSgarj/dzr2Z9BsjuRHgRAoXITOcU=@35.199.49.168:9200"

Log:
{"caller":"syncer.go:173","level":"info","module":"cometbft:statesync","msg":"Discovering snapshots for 15s","ts":"2023-11-30T11:44:49.414325124Z"}
{"caller":"syncer.go:173","level":"info","module":"cometbft:statesync","msg":"Discovering snapshots for 15s","ts":"2023-11-30T11:45:04.415034754Z"}
{"book":"/mnt/rosemain/node/data/consensus/config/addrbook.json","caller":"file.go:22","level":"info","module":"cometbft:p2p","msg":"Saving AddrBook to file","size":1085,"ts":"2023-11-30T11:45:18.727013682Z"}
{"caller":"pex_reactor.go:458","level":"info","module":"cometbft:pex","msg":"Ensure peers","numDialing":0,"numInPeers":0,"numOutPeers":20,"numToDial":0,"ts":"2023-11-30T11:45:18.735701348Z"}
{"caller":"syncer.go:173","level":"info","module":"cometbft:statesync","msg":"Discovering snapshots for 15s","ts":"2023-11-30T11:45:19.416151182Z"}
{"caller":"syncer.go:173","level":"info","module":"cometbft:statesync","msg":"Discovering snapshots for 15s","ts":"2023-11-30T11:45:34.416845845Z"}
{"caller":"pex_reactor.go:458","level":"info","module":"cometbft:pex","msg":"Ensure peers","numDialing":0,"numInPeers":0,"numOutPeers":20,"numToDial":0,"ts":"2023-11-30T11:45:48.735306778Z"}
{"caller":"syncer.go:173","level":"info","module":"cometbft:statesync","msg":"Discovering snapshots for 15s","ts":"2023-11-30T11:45:49.417094676Z"}
{"caller":"syncer.go:173","level":"info","module":"cometbft:statesync","msg":"Discovering snapshots for 15s","ts":"2023-11-30T11:46:04.41752527Z"}
{"caller":"pex_reactor.go:458","level":"info","module":"cometbft:pex","msg":"Ensure peers","numDialing":0,"numInPeers":0,"numOutPeers":20,"numToDial":0,"ts":"2023-11-30T11:46:18.73557099Z"}
{"caller":"syncer.go:173","level":"info","module":"cometbft:statesync","msg":"Discovering snapshots for 15s","ts":"2023-11-30T11:46:19.41792175Z"}
{"caller":"syncer.go:173","level":"info","module":"cometbft:statesync","msg":"Discovering snapshots for 15s","ts":"2023-11-30T11:46:34.418528888Z"}
{"caller":"pex_reactor.go:458","level":"info","module":"cometbft:pex","msg":"Ensure peers","numDialing":0,"numInPeers":0,"numOutPeers":20,"numToDial":0,"ts":"2023-11-30T11:46:48.735823202Z"}
{"caller":"syncer.go:173","level":"info","module":"cometbft:statesync","msg":"Discovering snapshots for 15s","ts":"2023-11-30T11:46:49.419576246Z"}
{"caller":"syncer.go:173","level":"info","module":"cometbft:statesync","msg":"Discovering snapshots for 15s","ts":"2023-11-30T11:47:04.419907974Z"}
{"book":"/mnt/rosemain/node/data/consensus/config/addrbook.json","caller":"file.go:22","level":"info","module":"cometbft:p2p","msg":"Saving AddrBook to file","size":1085,"ts":"2023-11-30T11:47:18.72664222Z"}
{"caller":"pex_reactor.go:458","level":"info","module":"cometbft:pex","msg":"Ensure peers","numDialing":0,"numInPeers":0,"numOutPeers":20,"numToDial":0,"ts":"2023-11-30T11:47:18.735879611Z"}
{"caller":"syncer.go:173","level":"info","module":"cometbft:statesync","msg":"Discovering snapshots for 15s","ts":"2023-11-30T11:47:19.421371376Z"}
{"caller":"syncer.go:173","level":"info","module":"cometbft:statesync","msg":"Discovering snapshots for 15s","ts":"2023-11-30T11:47:34.421647047Z"}
{"caller":"pex_reactor.go:458","level":"info","module":"cometbft:pex","msg":"Ensure peers","numDialing":0,"numInPeers":0,"numOutPeers":20,"numToDial":0,"ts":"2023-11-30T11:47:48.736150056Z"}
{"caller":"syncer.go:173","level":"info","module":"cometbft:statesync","msg":"Discovering snapshots for 15s","ts":"2023-11-30T11:47:49.421772657Z"}

@kostko
Copy link
Member

kostko commented Nov 30, 2023

It is too early for the new network for there to be any snapshots available. Just sync from genesis, it should be quite fast.

@blocknodehub
Copy link

I see what this means, the pre-V4 data is almost completely discarded, but the block height does not start at 0. Thank you very much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c:ops Category: operations
Projects
None yet
Development

No branches or pull requests

5 participants