node-real / bsc-erigon

Ethereum implementation on the efficiency frontier
GNU Lesser General Public License v3.0
124 stars 42 forks source link

[WARN] [snapshots] retire blocks err="DumpBlocks: DumpHeaders: header missed in db: block_num=30500000 #230

Closed danlix2000 closed 11 months ago

danlix2000 commented 1 year ago

This node has been syncing for a few days but is showing the warning below

Sep 29 08:42:26 chicago-bsc-erigon-node erigon[78198]: [INFO] [09-29|08:42:26.599] Commit cycle in=770.049621ms Sep 29 08:42:26 chicago-bsc-erigon-node erigon[78198]: [INFO] [09-29|08:42:26.599] Timings (slower than 50ms) Bodies=104ms Execution=2.749s HashState=3.148s IntermediateHashes=4.951s CallTraces=1.29s AccountHistoryIndex=951ms StorageHistoryIndex=1.933s LogIndex=1.083s TxLookup=1.661s Sep 29 08:42:26 chicago-bsc-erigon-node erigon[78198]: [INFO] [09-29|08:42:26.599] Tables PlainState=268.9GB AccountChangeSet=610.7GB StorageChangeSet=1.4TB BlockTransaction=28.5GB TransactionLog=2.5TB FreeList=186.4MB ReclaimableSpace=745.5GB Sep 29 08:42:26 chicago-bsc-erigon-node erigon[78198]: [WARN] [09-29|08:42:26.599] [snapshots] retire blocks err="DumpBlocks: DumpHeaders: header missed in db: block_num=30500000, hash=0b9798507f2c7c414bbd4c7f778417505a4328b0aa01de7de35d2ddd81549c35" fromBlock=30500000 toBlock=31000000 Sep 29 08:42:27 chicago-bsc-erigon-node erigon[78198]: [INFO] [09-29|08:42:27.891] [2/15 Headers] Waiting for headers... from=32161182 Sep 29 08:42:28 chicago-bsc-erigon-node erigon[78198]: [INFO] [09-29|08:42:28.287] [2/15 Headers] Processed highest inserted=32161189 age=0 Sep 29 08:42:30 chicago-bsc-erigon-node erigon[78198]: [INFO] [09-29|08:42:30.177] [7/15 Execution] Completed on block=32161189 Sep 29 08:42:40 chicago-bsc-erigon-node erigon[78198]: [INFO] [09-29|08:42:40.571] RPC Daemon notified of new headers from=32161182 to=32161189 hash=0x8218c43ed751d12455f45452bc1888f9a5d14fc751b6c1cc3dddeb7bf38d1bb6 header sending=29.044µs log sending=351ns Sep 29 08:42:40 chicago-bsc-erigon-node erigon[78198]: [INFO] [09-29|08:42:40.572] Commit cycle in=473.258989ms Sep 29 08:42:40 chicago-bsc-erigon-node erigon[78198]: [INFO] [09-29|08:42:40.572] Timings (slower than 50ms) Headers=396ms Bodies=53ms Execution=1.808s HashState=2.053s IntermediateHashes=2.958s CallTraces=825ms AccountHistoryIndex=608ms StorageHistoryIndex=1.457s LogIndex=813ms TxLookup=1.201s Sep 29 08:42:40 chicago-bsc-erigon-node erigon[78198]: [INFO] [09-29|08:42:40.572] Tables PlainState=268.9GB AccountChangeSet=610.7GB StorageChangeSet=1.4TB BlockTransaction=28.5GB TransactionLog=2.5TB FreeList=186.4MB ReclaimableSpace=745.6GB Sep 29 08:42:40 chicago-bsc-erigon-node erigon[78198]: [WARN] [09-29|08:42:40.573] [snapshots] retire blocks err="DumpBlocks: DumpHeaders: header missed in db: block_num=30500000, hash=0b9798507f2c7c414bbd4c7f778417505a4328b0aa01de7de35d2ddd81549c35" fromBlock=30500000 toBlock=31000000 Sep 29 08:42:41 chicago-bsc-erigon-node erigon[78198]: [INFO] [09-29|08:42:41.591] [2/15 Headers] Waiting for headers... from=32161189 Sep 29 08:42:41 chicago-bsc-erigon-node erigon[78198]: [INFO] [09-29|08:42:41.599] [2/15 Headers] Processed highest inserted=32161193 age=1s Sep 29 08:42:42 chicago-bsc-erigon-node erigon[78198]: [INFO] [09-29|08:42:42.497] [7/15 Execution] Completed on block=32161193

below are the flags I used:

ExecStart=/home/ubuntu/erigon/build/bin/erigon \ --datadir=/data/erigon/datadir/server/bsc-erigon/data \ --rpc.gascap=150000000 \ --chain=bsc \ --http \ --state.cache=4000000 \ --http.addr=localhost \ --http.port=8545 \ --http.api="eth,erigon,web3,net,debug,trace,txpool,engine" \ --authrpc.port=8551 \ --http.trace \ --private.api.addr="127.0.0.1:9090" \ --port=30303 \ --http.corsdomain="" \ --rpc.batch.concurrency=4 \ --authrpc.addr 127.0.0.1 \ --batchSize=512M \ --torrent.download.rate=5000mb \ --snapshots=true \ --snap.keepblocks=true \ --ws \ --ws.compression \ --http.compression \ --http.vhosts= \ --torrent.port=42069 \ --authrpc.jwtsecret=/var/lib/jwtsecret/jwt.hex \ --internalcl=false \ --authrpc.vhosts=* \ --authrpc.addr=localhost \ --metrics \ --downloader.verify \ --trace.maxtraces 400 \ --rpc.returndata.limit 300000 \ --rpc.batch.limit 10000 \ --db.pagesize=16k \ --db.size.limit=8TB

below are the steps:

`#Download Snapshot sudo aria2c -s4 -x4 -k1024M -Z https://pub-60a193f9bd504900a520f4f260497d1c.r2.dev/chunk_20230905aa https://pub-60a193f9bd504900a520f4f260497d1c.r2.dev/chunk_20230905ab https://pub-60a193f9bd504900a520f4f260497d1c.r2.dev/chunk_20230905ac https://pub-60a193f9bd504900a520f4f260497d1c.r2.dev/chunk_20230905ad https://pub-60a193f9bd504900a520f4f260497d1c.r2.dev/chunk_20230905ae https://pub-60a193f9bd504900a520f4f260497d1c.r2.dev/chunk_20230905af https://pub-60a193f9bd504900a520f4f260497d1c.r2.dev/chunk_20230905ag --continue=true &&

sudo mkdir -p /var/lib/jwtsecret && sudo openssl rand -hex 32 | sudo tee /var/lib/jwtsecret/jwt.hex > /dev/null && cd ~ && sudo mkdir -p /home/ubuntu/erigon && sudo chown -R ubuntu:ubuntu /home/ubuntu/erigon && sudo git clone --branch v1.1.9 --single-branch https://github.com/node-real/bsc-erigon.git /home/ubuntu/erigon && sudo make -C /home/ubuntu/erigon && sudo mkdir -p /data/erigon/datadir && sudo chown -R ubuntu:ubuntu /data/erigon &&

sudo cat ./chunk* > /data/erigon/datadir/mdbx.tar.lz4 && cd /data/erigon/datadir && sudo tar -I lz4 -xvf mdbx.tar.lz4 &&`

before the above warning node shows the latest blocks too.

gasState=0.00 batch=5.6MB alloc=3.9GB sys=6.3GB Sep 29 07:02:49 chicago-bsc-erigon-node erigon[78198]: [INFO] [09-29|07:02:49.051] [7/15 Execution] Executed blocks number=32158915 blk/s=2.5 tx/s=270.6 Mgas/s=28.5 gasState=0.00 batch=6.8MB alloc=4.2GB sys=6.3GB Sep 29 07:03:09 chicago-bsc-erigon-node erigon[78198]: [INFO] [09-29|07:03:09.060] [7/15 Execution] Executed blocks number=32158972 blk/s=2.8 tx/s=295.6 Mgas/s=30.5 gasState=0.00 batch=8.1MB alloc=2.6GB sys=6.3GB Sep 29 07:03:19 chicago-bsc-erigon-node erigon[78198]: [INFO] [09-29|07:03:19.639] [p2p] GoodPeers eth66=29 eth67=2 eth68=7 Sep 29 07:03:28 chicago-bsc-erigon-node erigon[78198]: [INFO] [09-29|07:03:28.877] [7/15 Execution] Executed blocks number=32159028 blk/s=2.8 tx/s=293.9 Mgas/s=33.2 gasState=0.00 batch=9.5MB alloc=3.0GB sys=6.3GB Sep 29 07:03:48 chicago-bsc-erigon-node erigon[78198]: [INFO] [09-29|07:03:48.774] [7/15 Execution] Executed blocks number=32159085 blk/s=2.9 tx/s=311.4 Mgas/s=32.4 gasState=0.00 batch=10.8MB alloc=3.4GB sys=6.3GB Sep 29 07:04:28 chicago-bsc-erigon-node erigon[78198]: [INFO] [09-29|07:04:28.589] [7/15 Execution] Completed on block=32159147 Sep 29 07:04:28 chicago-bsc-erigon-node erigon[78198]: [INFO] [09-29|07:04:28.589] [7/15 Execution] DONE in=4m19.829057197s

blxdyx commented 1 year ago

make integration integration stage_headers --reset --chain=bsc --datadir=./data