-
Notifications
You must be signed in to change notification settings - Fork 42
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
FAQ: Solution For Common Issues #41
Comments
No block header write. you could try this:
|
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. |
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. |
If you want to speed up the deployment of erigon3's new archive nodes, please refer to using multi-threaded downloads https://github.com/48Club/bsc-snapshots/blob/main/README.md#erigon-archive-node # install dependencies
sudo apt-get install -y aria2 curl jq
# download snapshot
curl -skL https://bit.ly/3znHXPc | bash
mv snapshots /data/erigon
# start erigon
erigon3 --prune.mode=archive --chain=bsc --datadir=/data/erigon ... |
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: #38
Q2: Any suggested start up command line?
Here is our command line to start on BSC Mainnet, you can use on your need.
Q3: OOM Crash?
Try not specify the body cache and batch size:
--bodies.cache=214748364800 --batchSize=4096M
.These 2 flags will bring heavy to RAM caches. Similar issue: #39
Q4: For The Lagging Sync Issue, pls refer: #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.
The text was updated successfully, but these errors were encountered: