bnb-chain / bsc

A BNB Smart Chain client based on the go-ethereum fork
GNU Lesser General Public License v3.0
2.75k stars 1.57k forks source link

Stuck at "Looking for peers" with 48Club fast snapshot #1993

Closed tajelp closed 1 year ago

tajelp commented 1 year ago

System information

Geth version: 1.3.1-8b94dd6b-20231114 OS & Version: Linux Ubuntu 22.04.3 LTS Commit hash : 1dca486622ae46636b888fa10f8a8dbf0879e7e8

Expected behaviour

Find peers and sync from the snapshot data.

Actual behaviour

Stuck at Looking for peers with peercount=0 or 1 or 2

Steps to reproduce the behaviour

Download the 48club fast snapshot. Download the geth binary and config files. Extract and replace the snapshot data. Update the enodes in config.toml (from https://api.binance.org/v1/discovery/peers). Start the node with: ./geth --datadir ~/.bsc --history.transactions=0 --syncmode=full --tries-verify-mode=none --pruneancient=true --db.engine=pebble --http.port 8565 --cache 10000 --maxpeers 200 --port 30304

Log

INFO [11-19|15:28:39.606] Starting Geth on Ethereum mainnet...
INFO [11-19|15:28:39.608] Maximum peer count                       ETH=200 LES=0 total=200
INFO [11-19|15:28:39.609] Smartcard socket not found, disabling    err="stat /run/pcscd/pcscd.comm: no such file or directory"
INFO [11-19|15:28:39.610] Using pebble as db engine
INFO [11-19|15:28:39.745] Using pebble as the backing database
INFO [11-19|15:28:39.745] Allocated cache and file handles         database=/home/user/.bsc/geth/chaindata cache=3.91GiB handles=524,288
INFO [11-19|15:28:41.124] Found legacy ancient chain path          location=/home/user/.bsc/geth/chaindata/ancient
INFO [11-19|15:28:41.126] Opened ancient database                  database=/home/user/.bsc/geth/chaindata/ancient readonly=false frozen=33,511,347
INFO [11-19|15:28:41.137] State scheme set to already existing     scheme=hash
INFO [11-19|15:28:41.350] Set global gas cap                       cap=50,000,000
INFO [11-19|15:28:41.350] Initializing the KZG library             backend=gokzg
INFO [11-19|15:28:41.362] Allocated trie memory caches             clean=1.46GiB dirty=2.44GiB
INFO [11-19|15:28:41.497] Using pebble as the backing database
INFO [11-19|15:28:41.497] Allocated cache and file handles         database=/home/user/.bsc/geth/chaindata         cache=3.91GiB handles=524,288
INFO [11-19|15:28:42.713] Found legacy ancient chain path          location=/home/user/.bsc/geth/chaindata/ancient
INFO [11-19|15:28:42.714] Read ancientdb item counts               items=0
INFO [11-19|15:28:42.729] Opened ancientdb with nodata mode        database=/home/user/.bsc/geth/chaindata/ancient frozen=33,511,347
INFO [11-19|15:28:43.231] Initialising Ethereum protocol           network=1 dbversion=8
INFO [11-19|15:28:43.236] Initialised chain configuration          config="{ChainID: 56 Homestead: 0 DAO: <nil> DAOSupport: false EIP150: 0 EIP155: 0 EIP158: 0 Byzantium: 0 Constantinople: 0 Petersburg: 0 Istanbul: 0, Muir Glacier: 0, Ramanujan: 0, Niels: 0, MirrorSync: 5184000, Bruno: 13082000, Berlin: 31302048, YOLO v3: <nil>, CatalystBlock: <nil>, London: 31302048, ArrowGlacier: <nil>, MergeFork:<nil>, Euler: 18907621, Gibbs: 23846001, Nano: 21962149, Moran: 22107423, Planck: 27281024,Luban: 29020050, Plato: 30720096, Hertz: 31302048, Engine: parlia}"
INFO [11-19|15:28:43.317] Loaded most recent local block           number=33,601,346 hash=753f3b..fc1fcd root=d1515f..7d2649 td=66,760,873 age=1d1h12m
INFO [11-19|15:28:43.317] Loaded most recent local finalized block number=33,601,344 hash=7223dd..9b8831 root=db9148..e05968 td=66,760,869 age=1d1h12m
INFO [11-19|15:28:43.425] Snapshot loaded                          diskRoot=660887..3b2836 root=d1515f..7d2649
INFO [11-19|15:28:43.425] Initialized transaction indexer          limit=0
INFO [11-19|15:28:43.425] Loaded local transaction journal         transactions=0 dropped=0
INFO [11-19|15:28:43.425] Regenerated local transaction journal    transactions=0 accounts=0
INFO [11-19|15:28:43.425] Create votePool successfully
INFO [11-19|15:28:43.425] Gasprice oracle is ignoring threshold set threshold=4
WARN [11-19|15:28:43.425] Sanitizing invalid gasprice oracle max header history provided=0 updated=1
WARN [11-19|15:28:43.425] Sanitizing invalid gasprice oracle max block history provided=0 updated=1
INFO [11-19|15:28:43.426] Starting peer-to-peer node               instance=Geth/v1.3.1-8b94dd6b-20231114/linux-amd64/go1.20.11
INFO [11-19|15:28:43.500] IPC endpoint opened                      url=/home/user/.bsc/geth.ipc
INFO [11-19|15:28:43.501] New local node record                    seq=1,700,403,779,105 id=3fa1b2c4eb79926b ip=127.0.0.1 udp=30304 tcp=30304
INFO [11-19|15:28:43.502] Started P2P networking                   self=enode://471c6848715c044cba48792d062b55e9d3a703dd0bad4e6cd1b7c948b1c6bfec95d9defe6296615f3f6c670d086730f86e7e0dff4bdf2c9517ab915e56bc6185@127.0.0.1:30304
INFO [11-19|15:28:45.266] New local node record                    seq=1,700,403,779,106 id=3fa1b2c4eb79926b ip=65.109.52.93 udp=30304 tcp=30304
WARN [11-19|15:28:47.758] Snapshot extension registration failed   peer=52bb584e err="peer connected on snap without compatible eth support"
INFO [11-19|15:28:53.826] Looking for peers                        peercount=1 tried=2 static=0
INFO [11-19|15:29:03.901] Looking for peers                        peercount=1 tried=16 static=0
INFO [11-19|15:29:14.623] Looking for peers                        peercount=1 tried=28 static=0
INFO [11-19|15:29:24.841] Looking for peers                        peercount=0 tried=26 static=0
INFO [11-19|15:29:34.841] Looking for peers                        peercount=0 tried=32 static=0
INFO [11-19|15:29:43.503] Current status                           table_size=57 pending_size=1 db_size=71525
INFO [11-19|15:29:44.861] Looking for peers                        peercount=0 tried=23 static=0
INFO [11-19|15:29:55.174] Looking for peers                        peercount=0 tried=23 static=0
INFO [11-19|15:30:05.175] Looking for peers                        peercount=0 tried=30 static=0
INFO [11-19|15:30:15.903] Looking for peers                        peercount=1 tried=31 static=0
INFO [11-19|15:30:26.403] Looking for peers                        peercount=1 tried=38 static=0
WARN [11-19|15:30:31.020] Snapshot extension registration failed   peer=c5b271da err="peer connected on snap without compatible eth support"
INFO [11-19|15:30:36.404] Looking for peers                        peercount=1 tried=31 static=0
INFO [11-19|15:30:43.502] Current status                           table_size=61 pending_size=0 db_size=71525
INFO [11-19|15:31:26.841] Looking for peers                        peercount=1 tried=23 static=0
INFO [11-19|15:31:36.842] Looking for peers                        peercount=1 tried=29 static=0
INFO [11-19|15:31:43.503] Current status                           table_size=68 pending_size=1 db_size=71525
INFO [11-19|15:31:47.174] Looking for peers                        peercount=2 tried=36 static=0
WARN [11-19|15:32:05.727] Snapshot extension registration failed   peer=9ab95370 err="peer connected on snap without compatible eth support"
INFO [11-19|15:32:07.507] Looking for peers                        peercount=2 tried=33 static=0
INFO [11-19|15:32:17.508] Looking for peers                        peercount=1 tried=32 static=0
INFO [11-19|15:32:27.722] Looking for peers                        peercount=2 tried=24 static=0
INFO [11-19|15:32:39.174] Looking for peers                        peercount=2 tried=28 static=0
INFO [11-19|15:32:43.502] Current status                           table_size=77 pending_size=1 db_size=71525
INFO [11-19|15:32:49.179] Looking for peers                        peercount=0 tried=40 static=0
INFO [11-19|15:32:59.225] Looking for peers                        peercount=0 tried=34 static=0
INFO [11-19|15:33:09.342] Looking for peers                        peercount=1 tried=30 static=0
INFO [11-19|15:33:19.603] Looking for peers                        peercount=1 tried=31 static=0
INFO [11-19|15:33:29.656] Looking for peers                        peercount=1 tried=38 static=0
INFO [11-19|15:33:40.174] Looking for peers                        peercount=0 tried=24 static=0
INFO [11-19|15:33:43.503] Current status                           table_size=78 pending_size=1 db_size=71525
INFO [11-19|15:33:50.226] Looking for peers                        peercount=2 tried=30 static=0
INFO [11-19|15:34:00.508] Looking for peers                        peercount=1 tried=31 static=0
INFO [11-19|15:34:10.509] Looking for peers                        peercount=0 tried=30 static=0
INFO [11-19|15:34:20.830] Looking for peers                        peercount=0 tried=35 static=0
INFO [11-19|15:34:30.841] Looking for peers                        peercount=0 tried=28 static=0
WARN [11-19|15:34:33.657] Snapshot extension registration failed   peer=8355ea78 err="peer connected on snap without compatible eth support"
tajelp commented 1 year ago

I also tried to remove static nodes, as per https://forum.bnbchain.org/t/try-bootnodes-after-bsc-release-v1-2-12/1998. It is still stuck at Looking for peers.

CocoStarZ commented 1 year ago

1.3.1 is pre-release and not that stable yet. pls use 1.2.13 as the stable version. thx