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

How to use Erigon snapshot correctly ? #253

Closed
0x1un opened this issue May 10, 2023 · 12 comments
Closed

How to use Erigon snapshot correctly ? #253

0x1un opened this issue May 10, 2023 · 12 comments

Comments

@0x1un
Copy link

0x1un commented May 10, 2023

  1. Downloaded erigon-0410.tar.lz4 snapshot and decompress then;
  2. Stop Erigon-BSC node
  3. Move the decompressed mdbx.dat file to chaindata.
  4. And Restart Erigon-BSC node

Why does it still download snaphosts ? Below is my log:

[WARN] [05-10|02:27:32.502] no log dir set, console logging only 
[WARN] [05-10|02:27:32.511] no log dir set, console logging only 
[INFO] [05-10|02:27:32.511] Build info                               git_branch=HEAD git_tag=v1.0.2-dirty git_commit=3da15fcbb6f9f4b325d535f1d4646ce0ec58af0e
[INFO] [05-10|02:27:32.511] Starting Erigon on BSC mainnet... 
[INFO] [05-10|02:27:32.517] Maximum peer count                       ETH=100 total=100
[INFO] [05-10|02:27:32.517] starting HTTP APIs                       APIs=eth,debug,net,trace,web3,erigon
[INFO] [05-10|02:27:32.517] torrent verbosity                        level=WRN
[INFO] [05-10|02:27:34.621] Set global gas cap                       cap=50000000
[INFO] [05-10|02:27:34.628] [Downloader] Runnning with               ipv6-enabled=true ipv4-enabled=true download.rate=16mb upload.rate=4mb
[INFO] [05-10|02:27:34.629] Opening Database                         label=chaindata path=/data/chaindata
[INFO] [05-10|02:27:34.633] Initialised chain configuration          config="{ChainID: 56 Ramanujan: 0, Niels: 0, MirrorSync: 5184000, Bruno: 13082000, Euler: 18907621, Gibbs: 23846001, Nano: 21962149, Moran: 22107423, Gibbs: 23846001, Planck: 27281024, Engine: parlia}" genesis=0x0d21840abff46b96c84b2ac9e10e4f5cdaeb5693cb665db62a2f3b02d2d57b5b
[WARN] [05-10|02:27:34.633] Incorrect snapshot enablement            got=false change_to=true
[INFO] [05-10|02:27:34.633] Effective                                prune_flags= snapshot_flags="--snapshots=true" history.v3=false
[WARN] [05-10|02:27:35.058] [snapshots] open segment                 err="dictionary is invalid: patternMaxDepth=361848, fileName: v1-003000-003500-transactions.seg"
[INFO] [05-10|02:27:39.208] Initialising Ethereum protocol           network=56
[INFO] [05-10|02:27:39.857] Starting private RPC server              on=0.0.0.0:9090
[INFO] [05-10|02:27:39.857] rpc filters: subscribing to Erigon events 
[INFO] [05-10|02:27:39.858] new subscription to logs established 
[INFO] [05-10|02:27:39.858] new subscription to newHeaders established 
[INFO] [05-10|02:27:39.859] Reading JWT secret                       path=/data/jwt.hex
[INFO] [05-10|02:27:39.860] HTTP endpoint opened for Engine API      url=127.0.0.1:8551 ws=true ws.compression=true
[INFO] [05-10|02:27:39.861] HTTP endpoint opened                     url=127.0.0.1:8545 ws=false ws.compression=true grpc=false
[INFO] [05-10|02:27:39.878] [1/15 Snapshots] Fetching torrent files metadata 
[INFO] [05-10|02:27:39.906] Started P2P networking                   version=67 self=enode://c968962e9a1fa49971b8df5115e1e454be428c0c82bfdb0f3d648f0a92d85da2cfa682c43be52c797ba176c8e48d0157faf2541c4950f8343344bd9fa26dcd5d@127.0.0.1:30303 name=erigon/v2.40.0-dev-3da15fcb/linux-amd64/go1.20.4
[INFO] [05-10|02:27:39.916] Started P2P networking                   version=68 self=enode://c968962e9a1fa49971b8df5115e1e454be428c0c82bfdb0f3d648f0a92d85da2cfa682c43be52c797ba176c8e48d0157faf2541c4950f8343344bd9fa26dcd5d@127.0.0.1:30304 name=erigon/v2.40.0-dev-3da15fcb/linux-amd64/go1.20.4
[INFO] [05-10|02:27:59.955] [1/15 Snapshots] download                progress="0.57% 3.2GB/562.2GB" download-time-left=39hrs:46m total-download-time=20s download=4.0MB/s upload=0B/s
[INFO] [05-10|02:27:59.955] [1/15 Snapshots] download                peers=15 connections=15 files=138 alloc=595.8MB sys=785.0MB
[WARN] [05-10|02:28:01.209] *torrent.PeerConn 0xc02be3a000 [id="-GT0003-\x9bK\xe1\xf0\xe4f\xddK\v\x94\x9f\xb9", exts=0000000000100005, v="erigon: 2.40.0-dev-3da15fcb"]: received invalid reject [request={24 {1572864 524288}}, peer=*torrent.PeerConn 0xc02be3a000 [id="-GT0003-\x9bK\xe1\xf0\xe4f\xddK\v\x94\x9f\xb9", exts=0000000000100005, v="erigon: 2.40.0-dev-3da15fcb"]] 
[WARN] [05-10|02:28:16.684] *torrent.PeerConn 0xc02a4af500 [id="-GT0003-\xbcRt\x19\xeb\xaa˸~\x1ar/", exts=0000000000100005, v="erigon: 2.43.0-dev"]: received invalid reject [request={78 {0 524288}}, peer=*torrent.PeerConn 0xc02a4af500 [id="-GT0003-\xbcRt\x19\xeb\xaa˸~\x1ar/", exts=0000000000100005, v="erigon: 2.43.0-dev"]] 
[INFO] [05-10|02:28:19.954] [1/15 Snapshots] download                progress="0.58% 3.3GB/562.2GB" download-time-left=39hrs:44m total-download-time=40s download=4.0MB/s upload=0B/s
[INFO] [05-10|02:28:19.954] [1/15 Snapshots] download                peers=19 connections=20 files=138 alloc=722.3MB sys=826.6MB
[WARN] [05-10|02:28:24.802] *torrent.PeerConn 0xc02ad7aa80 [id="-GT0003->\x04;±\"̑\x13\x97\xc0\xc2", exts=0000000000100005, v="erigon: 2.43.0-dev-7bfcc2bb"]: received invalid reject [request={99 {1572864 524288}}, peer=*torrent.PeerConn 0xc02ad7aa80 [id="-GT0003->\x04;±\"̑\x13\x97\xc0\xc2", exts=0000000000100005, v="erigon: 2.43.0-dev-7bfcc2bb"]] 
[WARN] [05-10|02:28:29.587] *torrent.PeerConn 0xc02afb6000 [id="-GT0003-9\"\xfa\x8aS$gDD\xf0\xb1\x06", exts=0000000000100005, v="erigon: 2.40.0-dev"]: received invalid reject [request={57 {0 524288}}, peer=*torrent.PeerConn 0xc02afb6000 [id="-GT0003-9\"\xfa\x8aS$gDD\xf0\xb1\x06", exts=0000000000100005, v="erigon: 2.40.0-dev"]] 
[WARN] [05-10|02:28:30.144] *torrent.PeerConn 0xc02a891500 [id="-GT0003-\x9d\xb0H\xbf\xa6\x1c\xcf\x19\x93\xe8\xce)", exts=0000000000100005, v="erigon: 2.43.0-dev-9f303f4b"]: received invalid reject [request={94 {524288 524288}}, peer=*torrent.PeerConn 0xc02a891500 [id="-GT0003-\x9d\xb0H\xbf\xa6\x1c\xcf\x19\x93\xe8\xce)", exts=0000000000100005, v="erigon: 2.43.0-dev-9f303f4b"]] 
[WARN] [05-10|02:28:30.722] *torrent.PeerConn 0xc02ab68000 [id="-GT0003-\x14\x13\xa4\xe22.s\x1f#vZ\x87", exts=0000000000100005, v="erigon: 2.40.0-dev-3da15fcb"]: received invalid reject [request={94 {1572864 524288}}, peer=*torrent.PeerConn 0xc02ab68000 [id="-GT0003-\x14\x13\xa4\xe22.s\x1f#vZ\x87", exts=0000000000100005, v="erigon: 2.40.0-dev-3da15fcb"]] 
[WARN] [05-10|02:28:32.555] *torrent.PeerConn 0xc029644000 [id="-GT0003-\xe1\xa8\xe3G\x9a\xfbx\xba<\xbf\x81\v", exts=0000000000100005, v="erigon: 2.40.0-dev-3da15fcb"]: received invalid reject [request={57 {0 524288}}, peer=*torrent.PeerConn 0xc029644000 [id="-GT0003-\xe1\xa8\xe3G\x9a\xfbx\xba<\xbf\x81\v", exts=0000000000100005, v="erigon: 2.40.0-dev-3da15fcb"]] 
[WARN] [05-10|02:28:33.868] *torrent.PeerConn 0xc0273f5500 [id="-GT0003-\x94\xcb7\xab\xe7~4+ʱ%\x97", exts=0000000000100005, v="erigon: 2.43.0-dev-7bfcc2bb"]: received invalid reject [request={49 {1048576 524288}}, peer=*torrent.PeerConn 0xc0273f5500 [id="-GT0003-\x94\xcb7\xab\xe7~4+ʱ%\x97", exts=0000000000100005, v="erigon: 2.43.0-dev-7bfcc2bb"]] 
[INFO] [05-10|02:28:39.954] [1/15 Snapshots] download                progress="0.60% 3.4GB/562.2GB" download-time-left=30hrs:55m total-download-time=1m0s download=5.1MB/s upload=0B/s
[INFO] [05-10|02:28:39.954] [1/15 Snapshots] download                peers=20 connections=27 files=138 alloc=834.1MB sys=923.9MB
[INFO] [05-10|02:28:59.954] [1/15 Snapshots] download                progress="0.62% 3.5GB/562.2GB" download-time-left=31hrs:9m total-download-time=1m20s download=5.1MB/s upload=0B/s
[INFO] [05-10|02:28:59.954] [1/15 Snapshots] download                peers=19 connections=33 files=138 alloc=539.8MB sys=957.5MB
[WARN] [05-10|02:29:17.571] *torrent.PeerConn 0xc02845c000 [id="-GT0003-\x9bK\xe1\xf0\xe4f\xddK\v\x94\x9f\xb9", exts=0000000000100005, v="erigon: 2.40.0-dev-3da15fcb"]: received invalid reject [request={99 {1048576 524288}}, peer=*torrent.PeerConn 0xc02845c000 [id="-GT0003-\x9bK\xe1\xf0\xe4f\xddK\v\x94\x9f\xb9", exts=0000000000100005, v="erigon: 2.40.0-dev-3da15fcb"]] 
[INFO] [05-10|02:29:19.954] [1/15 Snapshots] download                progress="0.65% 3.6GB/562.2GB" download-time-left=21hrs:23m total-download-time=1m40s download=7.4MB/s upload=0B/s
[INFO] [05-10|02:29:19.954] [1/15 Snapshots] download                peers=21 connections=37 files=138 alloc=777.6MB sys=957.6MB
[WARN] [05-10|02:29:20.979] *torrent.PeerConn 0xc02a024a80 [id="-GT0003-[ӿ\xfc\xfeW\xb4\xce;[\x1dL", exts=0000000000100005, v="erigon: 2.40.0-dev-3da15fcb"]: received invalid reject [request={100 {1572864 524288}}, peer=*torrent.PeerConn 0xc02a024a80 [id="-GT0003-[ӿ\xfc\xfeW\xb4\xce;[\x1dL", exts=0000000000100005, v="erigon: 2.40.0-dev-3da15fcb"]] 
[WARN] [05-10|02:29:21.681] *torrent.PeerConn 0xc036acc000 [id="-GT0003-\x01L\a\x9d\xbf\xe0?\x12\x1bl)\xc8", exts=0000000000100005, v="erigon: 2.40.0-dev-3da15fcb"]: received invalid reject [request={85 {1048576 524288}}, peer=*torrent.PeerConn 0xc036acc000 [id="-GT0003-\x01L\a\x9d\xbf\xe0?\x12\x1bl)\xc8", exts=0000000000100005, v="erigon: 2.40.0-dev-3da15fcb"]] 
[WARN] [05-10|02:29:25.213] *torrent.PeerConn 0xc035b1d500 [id="-GT0003-\x9bK\xe1\xf0\xe4f\xddK\v\x94\x9f\xb9", exts=0000000000100005, v="erigon: 2.40.0-dev-3da15fcb"]: received invalid reject [request={81 {1048576 524288}}, peer=*torrent.PeerConn 0xc035b1d500 [id="-GT0003-\x9bK\xe1\xf0\xe4f\xddK\v\x94\x9f\xb9", exts=0000000000100005, v="erigon: 2.40.0-dev-3da15fcb"]] 
[INFO] [05-10|02:29:39.208] [p2p] GoodPeers                          eth67=2 eth68=2 eth66=22
[INFO] [05-10|02:29:39.955] [1/15 Snapshots] download                progress="0.66% 3.7GB/562.2GB" download-time-left=30hrs:49m total-download-time=2m0s download=5.2MB/s upload=0B/s
[INFO] [05-10|02:29:39.955] [1/15 Snapshots] download                peers=24 connections=43 files=138 alloc=875.8MB sys=973.7MB
[WARN] [05-10|02:29:41.226] *torrent.PeerConn 0xc02aacb500 [id="-GT0003-\x82\xf5]A6\n:u\x9f˶\xf7", exts=0000000000100005, v="erigon: 2.40.0-dev-3da15fcb"]: received invalid reject [request={80 {1048576 524288}}, peer=*torrent.PeerConn 0xc02aacb500 [id="-GT0003-\x82\xf5]A6\n:u\x9f˶\xf7", exts=0000000000100005, v="erigon: 2.40.0-dev-3da15fcb"]] 
[WARN] [05-10|02:29:57.061] *torrent.PeerConn 0xc037786000 [id="-GT0003-\xe1\xa8\xe3G\x9a\xfbx\xba<\xbf\x81\v", exts=0000000000100005, v="erigon: 2.40.0-dev-3da15fcb"]: received invalid reject [request={88 {524288 524288}}, peer=*torrent.PeerConn 0xc037786000 [id="-GT0003-\xe1\xa8\xe3G\x9a\xfbx\xba<\xbf\x81\v", exts=0000000000100005, v="erigon: 2.40.0-dev-3da15fcb"]] 
[INFO] [05-10|02:29:59.954] [1/15 Snapshots] download                progress="0.68% 3.8GB/562.2GB" download-time-left=32hrs:45m total-download-time=2m20s download=4.8MB/s upload=0B/s
[INFO] [05-10|02:29:59.954] [1/15 Snapshots] download                peers=24 connections=46 files=138 alloc=552.4MB sys=977.7MB
[WARN] [05-10|02:30:09.586] *torrent.PeerConn 0xc029c92a80 [id="-GT0003-\xa3\x11\xac\xe2v\xe5ފ\x9f:\x1dY", exts=0000000000100005, v="erigon: 2.40.0-dev-3da15fcb"]: received invalid reject [request={68 {0 524288}}, peer=*torrent.PeerConn 0xc029c92a80 [id="-GT0003-\xa3\x11\xac\xe2v\xe5ފ\x9f:\x1dY", exts=0000000000100005, v="erigon: 2.40.0-dev-3da15fcb"]] 
[WARN] [05-10|02:30:17.286] *torrent.PeerConn 0xc012143500 [id="-GT0003-\x9bK\xe1\xf0\xe4f\xddK\v\x94\x9f\xb9", exts=0000000000100005, v="erigon: 2.40.0-dev-3da15fcb"]: received invalid reject [request={124 {0 524288}}, peer=*torrent.PeerConn 0xc012143500 [id="-GT0003-\x9bK\xe1\xf0\xe4f\xddK\v\x94\x9f\xb9", exts=0000000000100005, v="erigon: 2.40.0-dev-3da15fcb"]] 
[INFO] [05-10|02:30:19.954] [1/15 Snapshots] download                progress="0.70% 3.9GB/562.2GB" download-time-left=26hrs:21m total-download-time=2m40s download=6.0MB/s upload=0B/s
[INFO] [05-10|02:30:19.954] [1/15 Snapshots] download                peers=24 connections=46 files=138 alloc=668.5MB sys=977.7MB
[WARN] [05-10|02:30:31.584] *torrent.PeerConn 0xc036d68000 [id="-GT0003-\x94\xcb7\xab\xe7~4+ʱ%\x97", exts=0000000000100005, v="erigon: 2.43.0-dev-7bfcc2bb"]: received invalid reject [request={223 {524288 524288}}, peer=*torrent.PeerConn 0xc036d68000 [id="-GT0003-\x94\xcb7\xab\xe7~4+ʱ%\x97", exts=0000000000100005, v="erigon: 2.43.0-dev-7bfcc2bb"]] 
[INFO] [05-10|02:30:39.955] [1/15 Snapshots] download                progress="0.72% 4.0GB/562.2GB" download-time-left=36hrs:42m total-download-time=3m0s download=4.3MB/s upload=0B/s
[INFO] [05-10|02:30:39.955] [1/15 Snapshots] download                peers=31 connections=50 files=138 alloc=856.5MB sys=977.7MB
[WARN] [05-10|02:30:46.259] *torrent.PeerConn 0xc0351d9500 [id="-GT0003-\x9bK\xe1\xf0\xe4f\xddK\v\x94\x9f\xb9", exts=0000000000100005, v="erigon: 2.40.0-dev-3da15fcb"]: received invalid reject [request={53 {1572864 524288}}, peer=*torrent.PeerConn 0xc0351d9500 [id="-GT0003-\x9bK\xe1\xf0\xe4f\xddK\v\x94\x9f\xb9", exts=0000000000100005, v="erigon: 2.40.0-dev-3da15fcb"]] 
[WARN] [05-10|02:30:49.430] *torrent.PeerConn 0xc014456000 [id="-GT0003-r\x8cw\tbHm`(\x84^P", exts=0000000000100005, v="erigon: 2.40.0-dev-3da15fcb"]: received invalid reject [request={217 {524288 524288}}, peer=*torrent.PeerConn 0xc014456000 [id="-GT0003-r\x8cw\tbHm`(\x84^P", exts=0000000000100005, v="erigon: 2.40.0-dev-3da15fcb"]] 
[INFO] [05-10|02:30:59.954] [1/15 Snapshots] download                progress="0.75% 4.2GB/562.2GB" download-time-left=19hrs:7m total-download-time=3m20s download=8.3MB/s upload=0B/s
[INFO] [05-10|02:30:59.954] [1/15 Snapshots] download                peers=31 connections=51 files=138 alloc=548.6MB sys=977.7MB
[WARN] [05-10|02:31:08.701] *torrent.PeerConn 0xc035bef500 [id="-GT0003-\xe1\xa8\xe3G\x9a\xfbx\xba<\xbf\x81\v", exts=0000000000100005, v="erigon: 2.40.0-dev-3da15fcb"]: received invalid reject [request={135 {0 524288}}, peer=*torrent.PeerConn 0xc035bef500 [id="-GT0003-\xe1\xa8\xe3G\x9a\xfbx\xba<\xbf\x81\v", exts=0000000000100005, v="erigon: 2.40.0-dev-3da15fcb"]] 
[INFO] [05-10|02:31:19.955] [1/15 Snapshots] download                progress="0.77% 4.3GB/562.2GB" download-time-left=23hrs:57m total-download-time=3m40s download=6.6MB/s upload=0B/s
[INFO] [05-10|02:31:19.955] [1/15 Snapshots] download                peers=33 connections=51 files=138 alloc=659.2MB sys=977.7MB
[WARN] [05-10|02:31:35.047] *torrent.PeerConn 0xc035c01500 [id="-GT0003-\xa3\x11\xac\xe2v\xe5ފ\x9f:\x1dY", exts=0000000000100005, v="erigon: 2.40.0-dev-3da15fcb"]: received invalid reject [request={192 {1048576 524288}}, peer=*torrent.PeerConn 0xc035c01500 [id="-GT0003-\xa3\x11\xac\xe2v\xe5ފ\x9f:\x1dY", exts=0000000000100005, v="erigon: 2.40.0-dev-3da15fcb"]] 
[WARN] [05-10|02:31:37.455] *torrent.PeerConn 0xc01f58d500 [id="-GT0003-F\xba\x06C\x04>/C\x90ѓH", exts=0000000000100005, v="erigon: 2.40.0-dev-3da15fcb"]: received invalid reject [request={279 {1048576 524288}}, peer=*torrent.PeerConn 0xc01f58d500 [id="-GT0003-F\xba\x06C\x04>/C\x90ѓH", exts=0000000000100005, v="erigon: 2.40.0-dev-3da15fcb"]] 
[WARN] [05-10|02:31:37.695] *torrent.PeerConn 0xc013c1b500 [id="-GT0003-\xae\xb8\x98d{`Q\xf0H\xf8S\xd3", exts=0000000000100005, v="erigon: 2.40.0-dev-3da15fcb"]: received invalid reject [request={283 {524288 524288}}, peer=*torrent.PeerConn 0xc013c1b500 [id="-GT0003-\xae\xb8\x98d{`Q\xf0H\xf8S\xd3", exts=0000000000100005, v="erigon: 2.40.0-dev-3da15fcb"]] 
[INFO] [05-10|02:31:39.209] [p2p] GoodPeers                          eth66=28 eth67=2 eth68=3
[INFO] [05-10|02:31:39.954] [1/15 Snapshots] download                progress="0.79% 4.4GB/562.2GB" download-time-left=25hrs:49m total-download-time=4m0s download=6.1MB/s upload=0B/s
[INFO] [05-10|02:31:39.955] [1/15 Snapshots] download                peers=37 connections=53 files=138 alloc=858.3MB sys=1001.7MB
[WARN] [05-10|02:31:42.461] *torrent.PeerConn 0xc015f85500 [id="-GT0003-#oJ\xe3[i\x88\x8b\xab\xa8'\xa9", exts=0000000000100005, v="erigon: 2.40.0-dev-3da15fcb"]: received invalid reject [request={288 {1572864 524288}}, peer=*torrent.PeerConn 0xc015f85500 [id="-GT0003-#oJ\xe3[i\x88\x8b\xab\xa8'\xa9", exts=0000000000100005, v="erigon: 2.40.0-dev-3da15fcb"]] 
[WARN] [05-10|02:31:54.011] *torrent.PeerConn 0xc037b38a80 [id="-GT0003-\x88\x86l\x1f%\xf3l\x9b\xd1͔`", exts=0000000000100005, v="erigon: 2.43.0-dev-9f303f4b"]: received invalid reject [request={283 {1572864 524288}}, peer=*torrent.PeerConn 0xc037b38a80 [id="-GT0003-\x88\x86l\x1f%\xf3l\x9b\xd1͔`", exts=0000000000100005, v="erigon: 2.43.0-dev-9f303f4b"]] 
[WARN] [05-10|02:31:56.143] *torrent.PeerConn 0xc035ecc000 [id="-GT0003-\x82\xf5]A6\n:u\x9f˶\xf7", exts=0000000000100005, v="erigon: 2.40.0-dev-3da15fcb"]: received invalid reject [request={199 {1048576 524288}}, peer=*torrent.PeerConn 0xc035ecc000 [id="-GT0003-\x82\xf5]A6\n:u\x9f˶\xf7", exts=0000000000100005, v="erigon: 2.40.0-dev-3da15fcb"]] 
[WARN] [05-10|02:31:57.903] *torrent.PeerConn 0xc014967500 [id="-GT0003-\x94\xcb7\xab\xe7~4+ʱ%\x97", exts=0000000000100005, v="erigon: 2.43.0-dev-7bfcc2bb"]: received invalid reject [request={211 {1572864 524288}}, peer=*torrent.PeerConn 0xc014967500 [id="-GT0003-\x94\xcb7\xab\xe7~4+ʱ%\x97", exts=0000000000100005, v="erigon: 2.43.0-dev-7bfcc2bb"]] 
[INFO] [05-10|02:31:59.954] [1/15 Snapshots] download                progress="0.81% 4.6GB/562.2GB" download-time-left=25hrs:4m total-download-time=4m20s download=6.3MB/s upload=0B/s
[INFO] [05-10|02:31:59.954] [1/15 Snapshots] download                peers=36 connections=56 files=138 alloc=539.4MB sys=1013.7MB
[WARN] [05-10|02:32:05.129] *torrent.PeerConn 0xc01f96d500 [id="-GT0003-T/\x0f[\x94\\I~\x9e\x8b\x18\x87", exts=0000000000100005, v="erigon: 2.41.0-dev-01e96d40"]: received invalid reject [request={295 {1048576 524288}}, peer=*torrent.PeerConn 0xc01f96d500 [id="-GT0003-T/\x0f[\x94\\I~\x9e\x8b\x18\x87", exts=0000000000100005, v="erigon: 2.41.0-dev-01e96d40"]] 
[WARN] [05-10|02:32:18.989] *torrent.PeerConn 0xc037b39500 [id="-GT0003-\x9bK\xe1\xf0\xe4f\xddK\v\x94\x9f\xb9", exts=0000000000100005, v="erigon: 2.40.0-dev-3da15fcb"]: received invalid reject [request={40 {524288 524288}}, peer=*torrent.PeerConn 0xc037b39500 [id="-GT0003-\x9bK\xe1\xf0\xe4f\xddK\v\x94\x9f\xb9", exts=0000000000100005, v="erigon: 2.40.0-dev-3da15fcb"]] 
[INFO] [05-10|02:32:19.954] [1/15 Snapshots] download                progress="0.85% 4.8GB/562.2GB" download-time-left=16hrs:13m total-download-time=4m40s download=9.8MB/s upload=0B/s
[INFO] [05-10|02:32:19.954] [1/15 Snapshots] download                peers=38 connections=60 files=138 alloc=685.7MB sys=1013.7MB
[INFO] [05-10|02:32:39.955] [1/15 Snapshots] download                progress="0.87% 4.9GB/562.2GB" download-time-left=23hrs:34m total-download-time=5m0s download=6.7MB/s upload=0B/s
[INFO] [05-10|02:32:39.955] [1/15 Snapshots] download                peers=42 connections=53 files=138 alloc=810.0MB sys=1018.8MB
[WARN] [05-10|02:32:47.006] *torrent.PeerConn 0xc02989c000 [id="-GT0003-\x97.\xf7:\x85\xaf\xfaȦ\xcf,D", exts=0000000000100005, v="erigon: 2.40.0-dev-3da15fcb"]: received invalid reject [request={451 {1572864 524288}}, peer=*torrent.PeerConn 0xc02989c000 [id="-GT0003-\x97.\xf7:\x85\xaf\xfaȦ\xcf,D", exts=0000000000100005, v="erigon: 2.40.0-dev-3da15fcb"]] 

K8S deploy yaml:

apiVersion: apps/v1
kind: StatefulSet
metadata:
  name: erigon-bsc-archive-1
  namespace: fullnode
  labels:
    app: erigon-bsc-archive-1
    component: core
spec:
  serviceName: "erigon-bsc-archive-1"
  replicas: 1
  selector:
    matchLabels:
      app: erigon-bsc-archive-1
      component: core
  template:
    metadata:
      labels:
        app: erigon-bsc-archive-1
        component: core
    spec:
      terminationGracePeriodSeconds: 300
      affinity:
        podAntiAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
          - labelSelector:
              matchExpressions:
              - key: kubernetes.io/hostname
                operator: In
                values:
                - "worker-04-192.168.224.75"
            topologyKey: "kubernetes.io/hostname"
      priorityClassName: system-cluster-critical
      hostNetwork: false
      dnsPolicy: ClusterFirstWithHostNet

      initContainers:
      - args:
        - -c
        - mkdir -p /data && chown -R 1003:1003 /data
        command:
        - /bin/sh
        image: harbor.local/ops/centos:latest
        imagePullPolicy: IfNotPresent
        name: init
        securityContext:
          privileged: true
        volumeMounts:
        - mountPath: /data
          name: erigon-bsc-archive-data-1

      imagePullSecrets:
      - name: harbor-auth 

      containers:
      - name: erigon
        image: harbor.local/da/erigon-bsc:v1.0.2  # node-real bsc-erigon https://github.com/node-real/bsc-erigon
        args:
        - "--chain=bsc"
        - "--http"
        - "--http.api=eth,debug,net,trace,web3,erigon"
        - "--private.api.addr=0.0.0.0:9090"
        - "--txpool.disable"
        - "--db.pagesize=16k"
        - "--snap.stop"
        - "--datadir=/data"
        ports:
        - name: api
          containerPort: 9090
      
        volumeMounts:
        - name: erigon-bsc-archive-data-1
          mountPath: /data


  volumeClaimTemplates:
  - metadata:
      name: erigon-bsc-archive-data-1
    spec:
      accessModes: ["ReadWriteOnce"]
      storageClassName: erigon-bsc-archive-pv-1
      resources:
        requests:
          storage: 4000G

Thank you~

@0x1un
Copy link
Author

0x1un commented May 11, 2023

erigon-0410.tar.lz4 decompressed mdbx.dat file size: 5.5T; Is this the correct size? Is it possible that the file is corrupted?

@calmbeing
Copy link
Contributor

@0x1un This size makes sense

@0xStrobe
Copy link

0xStrobe commented Jun 5, 2023

erigon-0410.tar.lz4 decompressed mdbx.dat file size: 5.5T; Is this the correct size? Is it possible that the file is corrupted?

gm, did you get it resolved?

my erigon also was trying to download all snapshots via torrents. my mdbx.dat is also at around 5.5T and i dont think mine was corrupted.

@0x1un
Copy link
Author

0x1un commented Jun 5, 2023

@0xStrobe

gm, did you get it resolved?
my erigon also was trying to download all snapshots via torrents. my mdbx.dat is also at around 5.5T and i dont think mine was corrupted.

I did not solve the problem, and I gave up using erigon in favor of geth-bsc.
Pruning the archive node of geth-bsc and keeping two million blocks barely solved my current dilemma.

@0xStrobe
Copy link

0xStrobe commented Jun 5, 2023

@0xStrobe

gm, did you get it resolved?
my erigon also was trying to download all snapshots via torrents. my mdbx.dat is also at around 5.5T and i dont think mine was corrupted.

I did not solve the problem, and I gave up using erigon in favor of geth-bsc. Pruning the archive node of geth-bsc and keeping two million blocks barely solved my current dilemma.

i think i figured it out!

i used the arg --no-downloader to bootstrap a new data dir, then stopped erigon, replaced the mdbx.dat we got from here, and restarted erigon.

now it's syncing blocks from 7 days ago, so seems to be working

@0x1un
Copy link
Author

0x1un commented Jun 6, 2023

@0xStrobe

gm, did you get it resolved?
my erigon also was trying to download all snapshots via torrents. my mdbx.dat is also at around 5.5T and i dont think mine was corrupted.

I did not solve the problem, and I gave up using erigon in favor of geth-bsc. Pruning the archive node of geth-bsc and keeping two million blocks barely solved my current dilemma.

i think i figured it out!

i used the arg --no-downloader to bootstrap a new data dir, then stopped erigon, replaced the mdbx.dat we got from here, and restarted erigon.

now it's syncing blocks from 7 days ago, so seems to be working

Thank you for your help. I will decompress the package and try your method again later.

@0xStrobe
Copy link

0xStrobe commented Jun 6, 2023

@0xStrobe

gm, did you get it resolved?
my erigon also was trying to download all snapshots via torrents. my mdbx.dat is also at around 5.5T and i dont think mine was corrupted.

I did not solve the problem, and I gave up using erigon in favor of geth-bsc. Pruning the archive node of geth-bsc and keeping two million blocks barely solved my current dilemma.

i think i figured it out!
i used the arg --no-downloader to bootstrap a new data dir, then stopped erigon, replaced the mdbx.dat we got from here, and restarted erigon.
now it's syncing blocks from 7 days ago, so seems to be working

Thank you for your help. I will decompress the package and try your method again later.

i might have bad news - the node finished syncing to head overnight, but it seems that this is not an archive node or my method of bootstrapping from that snapshot was incorrect, since i can't query traces from before about 10 days ago or transactions from a little further back 😭

cc @calmbeing, hopefully u have more ideas, thanks in advance! :)

@0x1un
Copy link
Author

0x1un commented Jun 7, 2023

@0xStrobe

gm, did you get it resolved?
my erigon also was trying to download all snapshots via torrents. my mdbx.dat is also at around 5.5T and i dont think mine was corrupted.

I did not solve the problem, and I gave up using erigon in favor of geth-bsc. Pruning the archive node of geth-bsc and keeping two million blocks barely solved my current dilemma.

i think i figured it out!
i used the arg --no-downloader to bootstrap a new data dir, then stopped erigon, replaced the mdbx.dat we got from here, and restarted erigon.
now it's syncing blocks from 7 days ago, so seems to be working

Thank you for your help. I will decompress the package and try your method again later.

i might have bad news - the node finished syncing to head overnight, but it seems that this is not an archive node or my method of bootstrapping from that snapshot was incorrect, since i can't query traces from before about 10 days ago or transactions from a little further back 😭

cc @calmbeing, hopefully u have more ideas, thanks in advance! :)

@0xStrobe

I seem to only be able to get data after 22,800,000. still using erigon-0410.tar.lz4. Which API are you using? I'm using the following RPC:

curl --location --request POST '127.0.0.1:8545' \
--header 'Content-Type: application/json' \
--data-raw '{
    "jsonrpc": "2.0",
    "method": "debug_traceBlockByNumber",
    "params": [
        "0x15be680",
         {"tracer": "callTracer", "timeout": "200s"}
    ],
    "id": 1
}'

Here is the current log of my node:

[INFO] [06-07|05:01:02.929] [p2p] GoodPeers                          eth66=8
[INFO] [06-07|05:01:13.966] [5/15 Bodies] No block bodies to write in this log period block number=27558174
[INFO] [06-07|05:01:33.974] [5/15 Bodies] No block bodies to write in this log period block number=27558174
[INFO] [06-07|05:01:53.968] [5/15 Bodies] Downloading block bodies   block_num=27558174 delivery/sec=104.1KB wasted/sec=0B remaining=1322450 delivered=41013 cache=256.0MB alloc=509.8MB sys=885.0MB
[INFO] [06-07|05:02:13.965] [5/15 Bodies] Downloading block bodies   block_num=27558174 delivery/sec=208.1KB wasted/sec=0B remaining=1322450 delivered=41146 cache=256.0MB alloc=557.3MB sys=885.0MB
[INFO] [06-07|05:02:33.964] [5/15 Bodies] Downloading block bodies   block_num=27558174 delivery/sec=308.4KB wasted/sec=0B remaining=1322450 delivered=41372 cache=256.0MB alloc=396.9MB sys=885.0MB
[INFO] [06-07|05:02:53.965] [5/15 Bodies] Downloading block bodies   block_num=27558174 delivery/sec=414.7KB wasted/sec=0B remaining=1322450 delivered=41674 cache=256.0MB alloc=457.1MB sys=885.0MB
[INFO] [06-07|05:03:02.930] [p2p] GoodPeers                          eth66=10
[INFO] [06-07|05:03:13.965] [5/15 Bodies] Downloading block bodies   block_num=27558174 delivery/sec=1.0MB wasted/sec=0B remaining=1322450 delivered=42375 cache=256.0MB alloc=581.6MB sys=885.0MB
[INFO] [06-07|05:03:33.965] [5/15 Bodies] Downloading block bodies   block_num=27558174 delivery/sec=206.7KB wasted/sec=0B remaining=1322450 delivered=42515 cache=256.0MB alloc=639.5MB sys=885.0MB
[INFO] [06-07|05:03:53.968] [5/15 Bodies] Downloading block bodies   block_num=27558174 delivery/sec=313.7KB wasted/sec=0B remaining=1322450 delivered=42724 cache=256.0MB alloc=693.9MB sys=885.0MB
[INFO] [06-07|05:04:13.965] [5/15 Bodies] Downloading block bodies   block_num=27558237 delivery/sec=153.4KB wasted/sec=54.7KB remaining=1322387 delivered=42808 cache=254.9MB alloc=739.8MB sys=885.0MB
[INFO] [06-07|05:04:33.973] [5/15 Bodies] Downloading block bodies   block_num=27558237 delivery/sec=53.7KB wasted/sec=48.9KB remaining=1322387 delivered=42852 cache=255.9MB alloc=402.9MB sys=885.0MB
[INFO] [06-07|05:04:53.964] [5/15 Bodies] Downloading block bodies   block_num=27558237 delivery/sec=390.8KB wasted/sec=24.5KB remaining=1322387 delivered=43112 cache=256.0MB alloc=482.8MB sys=885.0MB
[INFO] [06-07|05:05:02.929] [p2p] GoodPeers                          eth66=10
[INFO] [06-07|05:05:13.967] [5/15 Bodies] Downloading block bodies   block_num=27558237 delivery/sec=215.5KB wasted/sec=96.0KB remaining=1322387 delivered=43253 cache=256.0MB alloc=531.9MB sys=885.0MB
[INFO] [06-07|05:05:33.965] [5/15 Bodies] Downloading block bodies   block_num=27558237 delivery/sec=624.3KB wasted/sec=104.1KB remaining=1322387 delivered=43665 cache=256.0MB alloc=627.8MB sys=885.0MB
[INFO] [06-07|05:05:53.965] [5/15 Bodies] Downloading block bodies   block_num=27558237 delivery/sec=413.1KB wasted/sec=0B remaining=1322387 delivered=43909 cache=256.0MB alloc=700.3MB sys=885.0MB
[INFO] [06-07|05:06:13.963] [5/15 Bodies] Downloading block bodies   block_num=27558237 delivery/sec=206.0KB wasted/sec=0B remaining=1322387 delivered=44038 cache=256.0MB alloc=747.7MB sys=885.2MB
[INFO] [06-07|05:06:33.963] [5/15 Bodies] Downloading block bodies   block_num=27558237 delivery/sec=315.8KB wasted/sec=0B remaining=1322387 delivered=44206 cache=256.0MB alloc=421.6MB sys=885.2MB
[INFO] [06-07|05:06:53.963] [5/15 Bodies] Downloading block bodies   block_num=27558237 delivery/sec=311.4KB wasted/sec=0B remaining=1322387 delivered=44417 cache=256.0MB alloc=477.9MB sys=885.2MB
[INFO] [06-07|05:07:02.929] [p2p] GoodPeers                          eth66=10
[INFO] [06-07|05:07:13.964] [5/15 Bodies] Downloading block bodies   block_num=27558237 delivery/sec=104.6KB wasted/sec=0B remaining=1322387 delivered=44467 cache=256.0MB alloc=528.2MB sys=885.2MB
[INFO] [06-07|05:07:33.975] [5/15 Bodies] Downloading block bodies   block_num=27558237 delivery/sec=0B wasted/sec=103.3KB remaining=1322387 delivered=44467 cache=256.0MB alloc=567.6MB sys=885.2MB
[INFO] [06-07|05:07:53.963] [5/15 Bodies] No block bodies to write in this log period block number=27558237
[INFO] [06-07|05:08:13.963] [5/15 Bodies] No block bodies to write in this log period block number=27558237
[INFO] [06-07|05:08:33.964] [5/15 Bodies] No block bodies to write in this log period block number=27558237
[INFO] [06-07|05:08:53.962] [5/15 Bodies] No block bodies to write in this log period block number=27558237
[INFO] [06-07|05:09:02.930] [p2p] GoodPeers                          eth66=9
[INFO] [06-07|05:09:13.978] [5/15 Bodies] No block bodies to write in this log period block number=27558237
[INFO] [06-07|05:09:33.962] [5/15 Bodies] No block bodies to write in this log period block number=27558237
[INFO] [06-07|05:09:53.963] [5/15 Bodies] No block bodies to write in this log period block number=27558237
[INFO] [06-07|05:10:13.963] [5/15 Bodies] No block bodies to write in this log period block number=27558237
[INFO] [06-07|05:10:33.974] [5/15 Bodies] No block bodies to write in this log period block number=27558237
[INFO] [06-07|05:10:53.988] [5/15 Bodies] No block bodies to write in this log period block number=27558237
[INFO] [06-07|05:11:02.938] [p2p] GoodPeers                          eth66=9
[INFO] [06-07|05:11:13.962] [5/15 Bodies] No block bodies to write in this log period block number=27558237
[INFO] [06-07|05:11:33.963] [5/15 Bodies] No block bodies to write in this log period block number=27558237
[INFO] [06-07|05:11:53.963] [5/15 Bodies] No block bodies to write in this log period block number=27558237
[INFO] [06-07|05:12:13.963] [5/15 Bodies] No block bodies to write in this log period block number=27558237
[INFO] [06-07|05:12:33.968] [5/15 Bodies] No block bodies to write in this log period block number=27558237
[INFO] [06-07|05:12:53.962] [5/15 Bodies] No block bodies to write in this log period block number=27558237
[INFO] [06-07|05:13:02.929] [p2p] GoodPeers                          eth66=9
[INFO] [06-07|05:13:13.963] [5/15 Bodies] No block bodies to write in this log period block number=27558237
[INFO] [06-07|05:13:33.967] [5/15 Bodies] No block bodies to write in this log period block number=27558237
[INFO] [06-07|05:13:53.963] [5/15 Bodies] No block bodies to write in this log period block number=27558237
[INFO] [06-07|05:14:13.967] [5/15 Bodies] No block bodies to write in this log period block number=27558237
[INFO] [06-07|05:14:33.963] [5/15 Bodies] No block bodies to write in this log period block number=27558237
[INFO] [06-07|05:14:53.963] [5/15 Bodies] No block bodies to write in this log period block number=27558237
[INFO] [06-07|05:15:02.930] [p2p] GoodPeers                          eth66=8
[INFO] [06-07|05:15:13.963] [5/15 Bodies] No block bodies to write in this log period block number=27558237
[INFO] [06-07|05:15:33.963] [5/15 Bodies] No block bodies to write in this log period block number=27558237

Here is the current startup config of my node:

apiVersion: apps/v1
kind: StatefulSet
metadata:
  name: erigon-bsc-archive-1
  namespace: fullnode
  labels:
    app: erigon-bsc-archive-1
    component: core
spec:
  serviceName: "erigon-bsc-archive-1"
  replicas: 1
  selector:
    matchLabels:
      app: erigon-bsc-archive-1
      component: core
  template:
    metadata:
      labels:
        app: erigon-bsc-archive-1
        component: core
    spec:
      terminationGracePeriodSeconds: 600
      affinity:
        podAntiAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
          - labelSelector:
              matchExpressions:
              - key: kubernetes.io/hostname
                operator: In
                values:
                - "worker-04-192.168.224.75"
            topologyKey: "kubernetes.io/hostname"
      priorityClassName: system-cluster-critical
      hostNetwork: false
      dnsPolicy: ClusterFirstWithHostNet

      initContainers:
      - args:
        - -c
        - mkdir -p /data && chown -R 1000:1000 /data
        command:
        - /bin/sh
        image: harbor.local/ops/centos:latest
        imagePullPolicy: IfNotPresent
        name: init
        securityContext:
          privileged: true
        volumeMounts:
        - mountPath: /data
          name: erigon-bsc-archive-data-1

      imagePullSecrets:
      - name: harbor-auth 

      containers:
      - name: erigon
        image: harbor.local/da/erigon-bsc:v1.1.0  # node-real bsc-erigon https://github.com/node-real/bsc-erigon
        args:
        - "--chain=bsc"
        - "--http"
        - "--http.api=eth,debug,net,trace,web3,erigon"
        - "--private.api.addr=0.0.0.0:9090"
        - "--http.port=8545"
        - "--http.addr=0.0.0.0"
        - "--txpool.disable"
        - "--db.pagesize=16k"
        - "--datadir=/data"
        - "--sentry.drop-useless-peers"
        - "--p2p.protocol=66"
        - "--no-downloader"

        ports:
        - name: api
          containerPort: 9090
        - name: rpc
          containerPort: 8545
      
        volumeMounts:
        - name: erigon-bsc-archive-data-1
          mountPath: /data


          

  volumeClaimTemplates:
  - metadata:
      name: erigon-bsc-archive-data-1
    spec:
      accessModes: ["ReadWriteOnce"]
      storageClassName: erigon-bsc-archive-pv-1
      resources:
        requests:
          storage: 4000Gi

@0xStrobe
Copy link

0xStrobe commented Jun 7, 2023

@0xStrobe

gm, did you get it resolved?
my erigon also was trying to download all snapshots via torrents. my mdbx.dat is also at around 5.5T and i dont think mine was corrupted.

I did not solve the problem, and I gave up using erigon in favor of geth-bsc. Pruning the archive node of geth-bsc and keeping two million blocks barely solved my current dilemma.

i think i figured it out!
i used the arg --no-downloader to bootstrap a new data dir, then stopped erigon, replaced the mdbx.dat we got from here, and restarted erigon.
now it's syncing blocks from 7 days ago, so seems to be working

Thank you for your help. I will decompress the package and try your method again later.

i might have bad news - the node finished syncing to head overnight, but it seems that this is not an archive node or my method of bootstrapping from that snapshot was incorrect, since i can't query traces from before about 10 days ago or transactions from a little further back 😭
cc @calmbeing, hopefully u have more ideas, thanks in advance! :)

@0xStrobe

I seem to only be able to get data after 22,800,000. still using erigon-0410.tar.lz4. Which API are you using? I'm using the following RPC:

curl --location --request POST '127.0.0.1:8545' \
--header 'Content-Type: application/json' \
--data-raw '{
    "jsonrpc": "2.0",
    "method": "debug_traceBlockByNumber",
    "params": [
        "0x15be680",
         {"tracer": "callTracer", "timeout": "200s"}
    ],
    "id": 1
}'

Here is the current log of my node:

[INFO] [06-07|05:01:02.929] [p2p] GoodPeers                          eth66=8
[INFO] [06-07|05:01:13.966] [5/15 Bodies] No block bodies to write in this log period block number=27558174
[INFO] [06-07|05:01:33.974] [5/15 Bodies] No block bodies to write in this log period block number=27558174
[INFO] [06-07|05:01:53.968] [5/15 Bodies] Downloading block bodies   block_num=27558174 delivery/sec=104.1KB wasted/sec=0B remaining=1322450 delivered=41013 cache=256.0MB alloc=509.8MB sys=885.0MB
[INFO] [06-07|05:02:13.965] [5/15 Bodies] Downloading block bodies   block_num=27558174 delivery/sec=208.1KB wasted/sec=0B remaining=1322450 delivered=41146 cache=256.0MB alloc=557.3MB sys=885.0MB
[INFO] [06-07|05:02:33.964] [5/15 Bodies] Downloading block bodies   block_num=27558174 delivery/sec=308.4KB wasted/sec=0B remaining=1322450 delivered=41372 cache=256.0MB alloc=396.9MB sys=885.0MB
[INFO] [06-07|05:02:53.965] [5/15 Bodies] Downloading block bodies   block_num=27558174 delivery/sec=414.7KB wasted/sec=0B remaining=1322450 delivered=41674 cache=256.0MB alloc=457.1MB sys=885.0MB
[INFO] [06-07|05:03:02.930] [p2p] GoodPeers                          eth66=10
[INFO] [06-07|05:03:13.965] [5/15 Bodies] Downloading block bodies   block_num=27558174 delivery/sec=1.0MB wasted/sec=0B remaining=1322450 delivered=42375 cache=256.0MB alloc=581.6MB sys=885.0MB
[INFO] [06-07|05:03:33.965] [5/15 Bodies] Downloading block bodies   block_num=27558174 delivery/sec=206.7KB wasted/sec=0B remaining=1322450 delivered=42515 cache=256.0MB alloc=639.5MB sys=885.0MB
[INFO] [06-07|05:03:53.968] [5/15 Bodies] Downloading block bodies   block_num=27558174 delivery/sec=313.7KB wasted/sec=0B remaining=1322450 delivered=42724 cache=256.0MB alloc=693.9MB sys=885.0MB
[INFO] [06-07|05:04:13.965] [5/15 Bodies] Downloading block bodies   block_num=27558237 delivery/sec=153.4KB wasted/sec=54.7KB remaining=1322387 delivered=42808 cache=254.9MB alloc=739.8MB sys=885.0MB
[INFO] [06-07|05:04:33.973] [5/15 Bodies] Downloading block bodies   block_num=27558237 delivery/sec=53.7KB wasted/sec=48.9KB remaining=1322387 delivered=42852 cache=255.9MB alloc=402.9MB sys=885.0MB
[INFO] [06-07|05:04:53.964] [5/15 Bodies] Downloading block bodies   block_num=27558237 delivery/sec=390.8KB wasted/sec=24.5KB remaining=1322387 delivered=43112 cache=256.0MB alloc=482.8MB sys=885.0MB
[INFO] [06-07|05:05:02.929] [p2p] GoodPeers                          eth66=10
[INFO] [06-07|05:05:13.967] [5/15 Bodies] Downloading block bodies   block_num=27558237 delivery/sec=215.5KB wasted/sec=96.0KB remaining=1322387 delivered=43253 cache=256.0MB alloc=531.9MB sys=885.0MB
[INFO] [06-07|05:05:33.965] [5/15 Bodies] Downloading block bodies   block_num=27558237 delivery/sec=624.3KB wasted/sec=104.1KB remaining=1322387 delivered=43665 cache=256.0MB alloc=627.8MB sys=885.0MB
[INFO] [06-07|05:05:53.965] [5/15 Bodies] Downloading block bodies   block_num=27558237 delivery/sec=413.1KB wasted/sec=0B remaining=1322387 delivered=43909 cache=256.0MB alloc=700.3MB sys=885.0MB
[INFO] [06-07|05:06:13.963] [5/15 Bodies] Downloading block bodies   block_num=27558237 delivery/sec=206.0KB wasted/sec=0B remaining=1322387 delivered=44038 cache=256.0MB alloc=747.7MB sys=885.2MB
[INFO] [06-07|05:06:33.963] [5/15 Bodies] Downloading block bodies   block_num=27558237 delivery/sec=315.8KB wasted/sec=0B remaining=1322387 delivered=44206 cache=256.0MB alloc=421.6MB sys=885.2MB
[INFO] [06-07|05:06:53.963] [5/15 Bodies] Downloading block bodies   block_num=27558237 delivery/sec=311.4KB wasted/sec=0B remaining=1322387 delivered=44417 cache=256.0MB alloc=477.9MB sys=885.2MB
[INFO] [06-07|05:07:02.929] [p2p] GoodPeers                          eth66=10
[INFO] [06-07|05:07:13.964] [5/15 Bodies] Downloading block bodies   block_num=27558237 delivery/sec=104.6KB wasted/sec=0B remaining=1322387 delivered=44467 cache=256.0MB alloc=528.2MB sys=885.2MB
[INFO] [06-07|05:07:33.975] [5/15 Bodies] Downloading block bodies   block_num=27558237 delivery/sec=0B wasted/sec=103.3KB remaining=1322387 delivered=44467 cache=256.0MB alloc=567.6MB sys=885.2MB
[INFO] [06-07|05:07:53.963] [5/15 Bodies] No block bodies to write in this log period block number=27558237
[INFO] [06-07|05:08:13.963] [5/15 Bodies] No block bodies to write in this log period block number=27558237
[INFO] [06-07|05:08:33.964] [5/15 Bodies] No block bodies to write in this log period block number=27558237
[INFO] [06-07|05:08:53.962] [5/15 Bodies] No block bodies to write in this log period block number=27558237
[INFO] [06-07|05:09:02.930] [p2p] GoodPeers                          eth66=9
[INFO] [06-07|05:09:13.978] [5/15 Bodies] No block bodies to write in this log period block number=27558237
[INFO] [06-07|05:09:33.962] [5/15 Bodies] No block bodies to write in this log period block number=27558237
[INFO] [06-07|05:09:53.963] [5/15 Bodies] No block bodies to write in this log period block number=27558237
[INFO] [06-07|05:10:13.963] [5/15 Bodies] No block bodies to write in this log period block number=27558237
[INFO] [06-07|05:10:33.974] [5/15 Bodies] No block bodies to write in this log period block number=27558237
[INFO] [06-07|05:10:53.988] [5/15 Bodies] No block bodies to write in this log period block number=27558237
[INFO] [06-07|05:11:02.938] [p2p] GoodPeers                          eth66=9
[INFO] [06-07|05:11:13.962] [5/15 Bodies] No block bodies to write in this log period block number=27558237
[INFO] [06-07|05:11:33.963] [5/15 Bodies] No block bodies to write in this log period block number=27558237
[INFO] [06-07|05:11:53.963] [5/15 Bodies] No block bodies to write in this log period block number=27558237
[INFO] [06-07|05:12:13.963] [5/15 Bodies] No block bodies to write in this log period block number=27558237
[INFO] [06-07|05:12:33.968] [5/15 Bodies] No block bodies to write in this log period block number=27558237
[INFO] [06-07|05:12:53.962] [5/15 Bodies] No block bodies to write in this log period block number=27558237
[INFO] [06-07|05:13:02.929] [p2p] GoodPeers                          eth66=9
[INFO] [06-07|05:13:13.963] [5/15 Bodies] No block bodies to write in this log period block number=27558237
[INFO] [06-07|05:13:33.967] [5/15 Bodies] No block bodies to write in this log period block number=27558237
[INFO] [06-07|05:13:53.963] [5/15 Bodies] No block bodies to write in this log period block number=27558237
[INFO] [06-07|05:14:13.967] [5/15 Bodies] No block bodies to write in this log period block number=27558237
[INFO] [06-07|05:14:33.963] [5/15 Bodies] No block bodies to write in this log period block number=27558237
[INFO] [06-07|05:14:53.963] [5/15 Bodies] No block bodies to write in this log period block number=27558237
[INFO] [06-07|05:15:02.930] [p2p] GoodPeers                          eth66=8
[INFO] [06-07|05:15:13.963] [5/15 Bodies] No block bodies to write in this log period block number=27558237
[INFO] [06-07|05:15:33.963] [5/15 Bodies] No block bodies to write in this log period block number=27558237

Here is the current startup config of my node:

apiVersion: apps/v1
kind: StatefulSet
metadata:
  name: erigon-bsc-archive-1
  namespace: fullnode
  labels:
    app: erigon-bsc-archive-1
    component: core
spec:
  serviceName: "erigon-bsc-archive-1"
  replicas: 1
  selector:
    matchLabels:
      app: erigon-bsc-archive-1
      component: core
  template:
    metadata:
      labels:
        app: erigon-bsc-archive-1
        component: core
    spec:
      terminationGracePeriodSeconds: 600
      affinity:
        podAntiAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
          - labelSelector:
              matchExpressions:
              - key: kubernetes.io/hostname
                operator: In
                values:
                - "worker-04-192.168.224.75"
            topologyKey: "kubernetes.io/hostname"
      priorityClassName: system-cluster-critical
      hostNetwork: false
      dnsPolicy: ClusterFirstWithHostNet

      initContainers:
      - args:
        - -c
        - mkdir -p /data && chown -R 1000:1000 /data
        command:
        - /bin/sh
        image: harbor.local/ops/centos:latest
        imagePullPolicy: IfNotPresent
        name: init
        securityContext:
          privileged: true
        volumeMounts:
        - mountPath: /data
          name: erigon-bsc-archive-data-1

      imagePullSecrets:
      - name: harbor-auth 

      containers:
      - name: erigon
        image: harbor.local/da/erigon-bsc:v1.1.0  # node-real bsc-erigon https://github.com/node-real/bsc-erigon
        args:
        - "--chain=bsc"
        - "--http"
        - "--http.api=eth,debug,net,trace,web3,erigon"
        - "--private.api.addr=0.0.0.0:9090"
        - "--http.port=8545"
        - "--http.addr=0.0.0.0"
        - "--txpool.disable"
        - "--db.pagesize=16k"
        - "--datadir=/data"
        - "--sentry.drop-useless-peers"
        - "--p2p.protocol=66"
        - "--no-downloader"

        ports:
        - name: api
          containerPort: 9090
        - name: rpc
          containerPort: 8545
      
        volumeMounts:
        - name: erigon-bsc-archive-data-1
          mountPath: /data


          

  volumeClaimTemplates:
  - metadata:
      name: erigon-bsc-archive-data-1
    spec:
      accessModes: ["ReadWriteOnce"]
      storageClassName: erigon-bsc-archive-pv-1
      resources:
        requests:
          storage: 4000Gi

same rpc method. also not working for the debug_ namespace

i asked around in the erigon discord tho and was informed that the "snapshots" directory should not be ignored, since they are actually not the "snapshots" in the backup snapshots sense, but are external immutable databases where a lot of the data erigon needs for the historical stuff is stored

i restarted a sync, this time using all default settings aka start up with torrenting, then i exited the node and copypasta'ed the 5.5 TB mdbx.db into the data dir after the 1st stage (snapshots stage) was completed

now it's still syncing but it went through stage 7 (execution) very quickly, and i haven't seen any errors yet, so likely this is the right way to sync it

@0xStrobe
Copy link

0xStrobe commented Jun 7, 2023

@0x1un i got it! the ppl in the erigon discord were very helpful

after trying so many times, my node finally started working and i believe this is the best workflow to sync a bsc erigon node so far:

  1. clone the bsc-erigon repo: https://github.com/node-real/bsc-erigon
  2. check out the devel branch
  3. in the go.mod file, find the line https://github.com/node-real/bsc-erigon/blob/ae2aad5040801a463d2ca272169d37a95b06158a/go.mod#LL305C34-L305C34 and set the version there to main instead of v1.0.0
  4. build it
  5. run the erigon binary u just built
  6. wait for it to download all the snapshots via torrenting, its under 700gigs
  7. when the download and verification etc are done, aka ur node started the standard routines to fill the mdbx db, stop it
  8. unpack the 5.5tb file u got from here into the chaindata directory and replace the existing one
  9. restart erigon to let it continue to sync, but since its got all the snapshot files till yesterday and the mdbx till end of last month, it will be a LOT faster this time

hope its helpful! spent several days on this lol

@0x1un
Copy link
Author

0x1un commented Jun 8, 2023

@0xStrobe

Thank you very much for your response. I will proceed with the approach you suggested, but I must mention that my internet connection is extremely poor, so it may take a significant amount of time. Once I have completed the process, whether successful or not, I will provide an update here.

@0x1un
Copy link
Author

0x1un commented Jul 3, 2023

The problem is solved, as @0xStrobe says

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

No branches or pull requests

3 participants