Open calmbeing opened 1 year ago
No block header write. you could try this:
integration state_stages --unwind=20 --chain=bsc --datadir=/path
integration stage_headers --unwind=20 --chain=bsc --datadir=/path
Since yesterday, it's still complicated to be live sync with erigon. I always have 50-100 blocks of delay. Anyone have an idea ?
Since yesterday, it's still complicated to be live sync with erigon. I always have 50-100 blocks of delay. Anyone have an idea ?
One week ago, I was also behind by dozens of blocks. Since one week ago, I have been behind by 2000 blocks, and it is getting slower and slower. Without any ideas, it can no longer provide services for the production environment.
This issue is stale because it has been open for 40 days with no activity. Remove stale label or comment, or this will be closed in 7 days.
This issue was closed because it has been stalled for 7 days with no activity.
This issue is stale because it has been open for 40 days with no activity. Remove stale label or comment, or this will be closed in 7 days.
This issue was closed because it has been stalled for 7 days with no activity.
214748364800 bytes = 200 gigabytes
The default value should be 256 megabyte, I think this parameter can be set to about 4G. There is no comparison with physical memory in the code. 200G seems to easily exceed the user's memory size.
This issue is stale because it has been open for 40 days with no activity. Remove stale label or comment, or this will be closed in 7 days.
This issue was closed because it has been stalled for 7 days with no activity.
Rationale
For some common issue encountered, such as the follows:
No block header/body write
.Database is too large for current system
Solution
Please try to specify these flags in the command line for starting node:
--p2p.protocol=68
(bsc remove 66&67 after v1.4.x)--db.pagesize=16k
Also, for some cases that now work especially in reboot scenario, it'll help to unwind some blocks:
make integration
./build/bin/integration stage_exec --datadir ./data/ --chain bsc --unwind 10
FAQs
Q1: mdbx_env_open: MDBX_TOO_LARGE? refer: https://github.com/node-real/bsc-erigon/issues/38
Q2: Any suggested start up command line?
Here is our command line to start on BSC Mainnet, you can use on your need.
Q4: For The Lagging Sync Issue, pls refer: https://github.com/node-real/bsc-erigon/issues/51
Q5: Log with "DumpBlocks: DumpHeaders: header missed in db:"
It won't affect sync. Two way to fix it.
Q6: Wrong totalDifficult in eth_getBlockByNumber.
Stop erigon and ./integration stage_headers --reset --chain=bsc --datadir=yourdata will fix.