BSC node can't sync
System information
Geth version: geth v1.1.2
OS & Version: Linux
Commit hash : (if develop)
Expected behaviour
Full sync on nvm disks.
Actual behaviour
It never sync complete, always a few blocks behind. my node has 32gb ram + 3T nvm disk.
eth.syncing { currentBlock: 11332290, highestBlock: 11332357, knownStates: 326395741, pulledStates: 326332549, startingBlock: 11330116 }
Steps to reproduce the behaviour
./geth --config ./config.toml --datadir ./node --cache 18000 --rpc.allow-unprotected-txs --txlookuplimit 0
Backtrace
[backtrace]
When submitting logs: please submit them as text and not screenshots.
+1
@nav1d @gogopro-dev is this issue appears with sync from genesis.json or snapshot?
We are having the same issue in Azure. 8 cores, 32GB RAM, Premium SSD disks with 7500 IOPS and 250MB/sec throughput. Metrics show not even half of the capacity is actually being used. So it can't be the (allocated) hardware.
@nav1d @gogopro-dev is this issue appears with sync from genesis.json or snapshot?
This issue appears with fast or span sync from genesis.json in my case. But now i tested it on bare metal nvme and got synced.
I haven't success with syncing via genesis.json but always success from snapshot.zip. One more issue is don't pass --cache more than RAM, because geth could start using swap file and really slow down work
We found disabling or limiting swap on Linux (vm.swappiness = 1 or sudo swapoff -a for session) did the trick for performance. But, syncing from genesis.json is still an issue. We are trying syncing from the latest snapshot now.
I'm having the same issue. Could sync before but after I reinstalled the OS no longer able to sync.
same problem
It is recommended to use the official snapshot and use the full mode. Based on this method, my nodes can be synchronized to the latest and fast as expected
@0fuz Are you using an EC2 server?
- download and unzip snapshot
- start geth like bcs full node tells
- first hours geth will do some presync stage when its checking snapshot data blocks, so at this period of time, could seems that geth slow sync, but its not. pattern of this stage are lines like "lvl=info msg="Unindexing transactions"" where "blocks=" increasing over time
It is recommended to use the latest snapshot as @overload-ak said, maybe we can forward this discuss to #338
We have responded to the question and will proceed to close the case as we didn't get any additional question after 3days. Please proceed to join our Discord channel for more discussion at https://discord.com/invite/YPDsUqcwR8