bsc icon indicating copy to clipboard operation
bsc copied to clipboard

My node cannot be synchronized! ! !

Open heisentab opened this issue 5 years ago • 25 comments

#Steps to deploy nodes(Sync From Snapshot) https://docs.binance.org/smart-chain/developer/fullnode.html#steps-to-run-a-fullnode

#Node machine configuration
AWS
ec2:c5.4xlarge 
disk: 2T SSD

1、Download the image package geth-20211119.tar.gz(https://github.com/binance-chain/bsc-snapshots)

wget -q -O - "https://tf-dex-prod-public-snapshot-site1.s3-accelerate.amazonaws.com/geth-20211119.tar.gz?AWSAccessKeyId=AKIAYINE6SBQPUZDDRRO&Signature=LTyL9FVIIerKEoCwyq1fkfdhmeE%3D&Expires=1639914603" | tar -zxvf -

2、Change data directory (BSC_DataDir=/data/bsc)

mv server/data-seed/geth/chaindata ${BSC_DataDir}/geth/chaindata; mv server/data-seed/geth/triecache ${BSC_DataDir}/geth/triecache

3、Start node(supervisor) supervisorctl start bsc

4、The version of the current node Version: 1.1.5 5、Configuration file

wget https://github.com/binance-chain/bsc/releases/download/v1.1.5/mainnet.zip
unzip mainnet.zip

Unzip the downloaded configuration file. The default configuration has not been modified 6、supervisor Configuration file

[program:bsc]
directory = /data/node
command = /scripts/bsc/geth --config /scripts/bsc/config.toml --datadir /data/node --http.vhosts "*" --syncmode snap --diffsync --cache 8000 --maxpeers 100 --rpc.allow-unprotected-txs --txlookuplimit 0
autostart = true
startsecs = 3
autorestart = true
startretries = 3
redirect_stderr = false
stdout_logfile_maxbytes = 50MB
stdout_logfile_backups = 10
stdout_logfile = /var/log/supervisor/%(program_name)s.log

7、The above are my steps. The height of the node is still 3 days behind. Can you help me solve this problem

heisentab avatar Nov 24 '21 06:11 heisentab

How long has your node been running? It usually takes 3-4 days to complete the synchronization using 'geth-20211119.tar.gz'.

masayil avatar Nov 24 '21 06:11 masayil

@masayil My node has been running for more than 4 days

heisentab avatar Nov 24 '21 06:11 heisentab

@masayil image

heisentab avatar Nov 24 '21 06:11 heisentab

I have same problem however, self host server has no problem

seonggwonyoon avatar Nov 24 '21 06:11 seonggwonyoon

Try to use geth-20211122.tar.gz

https://github.com/binance-chain/bsc-snapshots

RumeelHussainbnb avatar Nov 24 '21 07:11 RumeelHussainbnb

Try to use geth-20211122.tar.gz

https://github.com/binance-chain/bsc-snapshots

I'm using 20211122 snapshot but no change

seonggwonyoon avatar Nov 24 '21 07:11 seonggwonyoon

Here are the Tips that you can followed:

https://github.com/binance-chain/bsc/issues/502

So far, if you follow these tips, it will work and start diffsync

RumeelHussainbnb avatar Nov 24 '21 08:11 RumeelHussainbnb

Has anyone seen it worked with #502 ?

All of those tips don't seem to work. I have already given --diffsync, --syncmode=snap snapshot=true options, but nothing has changed. Still sync is very slow.

The config.toml used was bundled with v1.1.5.

seonggwonyoon avatar Nov 24 '21 08:11 seonggwonyoon

It's impossible to sync. Project is broken.

mcoelho80 avatar Nov 24 '21 08:11 mcoelho80

以下是您可以遵循的提示:

#502

到目前为止,如果您遵循这些提示,它将起作用并启动 diffsync

I have used this parameter diffsync. But synchronization is still very slow. Is there any specific parameter configuration. Are my startup steps correct?

heisentab avatar Nov 24 '21 09:11 heisentab

Has anyone seen it worked with #502 ?

All of those tips don't seem to work. I have already given --diffsync, --syncmode=snap snapshot=true options, but nothing has changed. Still sync is very slow.

The config.toml used was bundled with v1.1.5.

So did I. I tried many ways to change the configuration, but none of them worked.

heisentab avatar Nov 24 '21 09:11 heisentab

You may try geth-20211122.tar.gz, my node sync within 2 days.

Also you may recheck the spec of your disk, that is very important.

realuncle avatar Nov 24 '21 09:11 realuncle

You may try geth-20211122.tar.gz, my node sync within 2 days.

Also you may recheck the spec of your disk, that is very important.

image Currently my disk is like this,Can you share your machine model and disk specifications?

heisentab avatar Nov 24 '21 10:11 heisentab

image

I'm using gp3, 2tb, iops 8k, throughput 250mbps but cannot sync.

seonggwonyoon avatar Nov 24 '21 10:11 seonggwonyoon

@wzt-tao @seonggwonyoon gp3 is too slow to sync up now, try instances with NVMe disks. And overall, AWS seems to be a bad choice now, I've tried multiple different instances, of different types and sizes, all of them exhibit similar issues and fall out of sync constantly. Look for other hosting provider with LOCAL SSD disks.

psdlt avatar Nov 24 '21 15:11 psdlt

@psdlt I totally agree. The suggestion document seems to be outdated.

Can you recommend a hosting provider?

seonggwonyoon avatar Nov 24 '21 16:11 seonggwonyoon

It seems the overload of online node make us hard to sync, tried everything but the head block keeps me far away, it's a joke

dylan425 avatar Nov 25 '21 02:11 dylan425

It seems the overload of online node make us hard to sync, tried everything but the head block keeps me far away, it's a joke

I think so. I can't synchronize their nodes all the time

heisentab avatar Nov 25 '21 02:11 heisentab

Almost same issue there, after a full disk, had to sync over after pruning, now syncing for more then 36 hours and actually stuck for 12h at block 12964936 ... Is this block even mined already ? Bscscan show last block number is 12946561 ... Should i start the node again ... ?? Tired of this BSC so hard to keep syncing !!

cpecorari avatar Nov 25 '21 14:11 cpecorari

You may try geth-20211122.tar.gz, my node sync within 2 days. Also you may recheck the spec of your disk, that is very important.

image Currently my disk is like this,Can you share your machine model and disk specifications?

@wzt-tao late comment but... c5.4xlarge can do sustained 20k 16KiB iops and 593MB/S (128 KiB ops), but your 2TB gp2 disk cannot... you can see in your picture that it is stuck in its read limit 6k iops. If you take a look at your system you will probably see it io waiting a lot. Also, don't know if related, but my nodes in the singapore region always take longer to catch up, I have had better luck with ap-south-1 (mumbai) (with proper sized instances)

ascunha avatar Nov 26 '21 08:11 ascunha