Skip to content
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

[Bug Report] [sync]Waiting enough peers to sync, current: 4 peers, min peers: 5 #3823

Open
blocknodehub opened this issue Dec 23, 2022 · 7 comments
Labels
bug Something isn't working

Comments

@blocknodehub
Copy link

2022-12-23T11:56:16.090342225+08:00 INFO - [sync]Waiting enough peers to sync, current: 4 peers, min peers: 5
2022-12-23T11:56:16.612316800+08:00 INFO - network banned peer 12D3KooWB9vGtpgqyD2cG4PTEU1SHSuWV6PErMPJFbbi5vYpkj3H for 300 secs
2022-12-23T11:56:16.612492921+08:00 INFO - network banned peer 12D3KooWB9vGtpgqyD2cG4PTEU1SHSuWV6PErMPJFbbi5vYpkj3H for 300 secs
2022-12-23T11:56:16.612561775+08:00 INFO - network banned peer 12D3KooWB9vGtpgqyD2cG4PTEU1SHSuWV6PErMPJFbbi5vYpkj3H for 300 secs
2022-12-23T11:56:16.612746831+08:00 INFO - network banned peer 12D3KooWLKo5X7yntEaAhUTh62ksD8pwsSu7CyTgZ76bRcStHF7x for 300 secs
2022-12-23T11:56:16.612808853+08:00 INFO - network banned peer 12D3KooWLKo5X7yntEaAhUTh62ksD8pwsSu7CyTgZ76bRcStHF7x for 300 secs
2022-12-23T11:56:16.612876403+08:00 INFO - network banned peer 12D3KooWLKo5X7yntEaAhUTh62ksD8pwsSu7CyTgZ76bRcStHF7x for 300 secs
2022-12-23T11:56:16.613030766+08:00 INFO - network banned peer 12D3KooWH13WqMtEPQfEHHU8riaHt6L2oPLvN7GTin14AziTdukw for 300 secs
2022-12-23T11:56:16.613096197+08:00 INFO - network banned peer 12D3KooWH13WqMtEPQfEHHU8riaHt6L2oPLvN7GTin14AziTdukw for 300 secs
2022-12-23T11:56:16.613147463+08:00 INFO - network banned peer 12D3KooWH13WqMtEPQfEHHU8riaHt6L2oPLvN7GTin14AziTdukw for 300 secs
2022-12-23T11:56:17.092144845+08:00 INFO - [sync]Waiting enough peers to sync, current: 4 peers, min peers: 5

集成在代码里的几个seed,有几个总是被banned,造成peer不足,无法同步区块

@blocknodehub blocknodehub added the bug Something isn't working label Dec 23, 2022
@sanlee42
Copy link
Member

Which network is connected here?

@blocknodehub
Copy link
Author

main network

@yourmoonlight
Copy link
Collaborator

2022-12-23T11:56:16.090342225+08:00 INFO - [sync]Waiting enough peers to sync, current: 4 peers, min peers: 5 2022-12-23T11:56:16.612316800+08:00 INFO - network banned peer 12D3KooWB9vGtpgqyD2cG4PTEU1SHSuWV6PErMPJFbbi5vYpkj3H for 300 secs 2022-12-23T11:56:16.612492921+08:00 INFO - network banned peer 12D3KooWB9vGtpgqyD2cG4PTEU1SHSuWV6PErMPJFbbi5vYpkj3H for 300 secs 2022-12-23T11:56:16.612561775+08:00 INFO - network banned peer 12D3KooWB9vGtpgqyD2cG4PTEU1SHSuWV6PErMPJFbbi5vYpkj3H for 300 secs 2022-12-23T11:56:16.612746831+08:00 INFO - network banned peer 12D3KooWLKo5X7yntEaAhUTh62ksD8pwsSu7CyTgZ76bRcStHF7x for 300 secs 2022-12-23T11:56:16.612808853+08:00 INFO - network banned peer 12D3KooWLKo5X7yntEaAhUTh62ksD8pwsSu7CyTgZ76bRcStHF7x for 300 secs 2022-12-23T11:56:16.612876403+08:00 INFO - network banned peer 12D3KooWLKo5X7yntEaAhUTh62ksD8pwsSu7CyTgZ76bRcStHF7x for 300 secs 2022-12-23T11:56:16.613030766+08:00 INFO - network banned peer 12D3KooWH13WqMtEPQfEHHU8riaHt6L2oPLvN7GTin14AziTdukw for 300 secs 2022-12-23T11:56:16.613096197+08:00 INFO - network banned peer 12D3KooWH13WqMtEPQfEHHU8riaHt6L2oPLvN7GTin14AziTdukw for 300 secs 2022-12-23T11:56:16.613147463+08:00 INFO - network banned peer 12D3KooWH13WqMtEPQfEHHU8riaHt6L2oPLvN7GTin14AziTdukw for 300 secs 2022-12-23T11:56:17.092144845+08:00 INFO - [sync]Waiting enough peers to sync, current: 4 peers, min peers: 5

集成在代码里的几个seed,有几个总是被banned,造成peer不足,无法同步区块

Hi, would you consider to restart your local peer, and check local network environment?

@yourmoonlight
Copy link
Collaborator

yourmoonlight commented Dec 24, 2022

I connect to the main network and start to sync, it seems work fine. @blocknodehub

starcoin% node sync progress
{
  "ok": {
    "begin_number": 8844376,
    "current": {
      "error": 0,
      "ok": 958,
      "percent": 0.12937750974060758,
      "processed_items": 954,
      "retry": 0,
      "sub_task": 967,
      "task_name": "starcoin_sync::tasks::block_sync_task::BlockSyncTask",
      "total_items": 737377,
      "use_seconds": 90
    },
    "target_difficulty": "0x0961f9388f9080",
    "target_id": "0xf7fca8cc7ed979309a6c166a91b9f26b7592c3e87cb3807b45d2d1edd9ea574f",
    "target_number": 9581753,
    "target_peers": [
      "12D3KooWSW8t32L6VyjPZxxe3VSD7H6Ffgh69eCaDnDyab2M6tfK",
      "12D3KooWH13WqMtEPQfEHHU8riaHt6L2oPLvN7GTin14AziTdukw",
      "12D3KooWKqZ2k2qQWY1khPH6WV2qFD5X2TZrpRMj75MHxCd8VH5r",
      "12D3KooWB9vGtpgqyD2cG4PTEU1SHSuWV6PErMPJFbbi5vYpkj3H",
      "12D3KooW9quK2EEjeyTs3csNRWPnfMw4M3afGE1SHm1dCZDRWSAj",
      "12D3KooWLKo5X7yntEaAhUTh62ksD8pwsSu7CyTgZ76bRcStHF7x",
      "12D3KooWMuvSkk51syDSSesKs4QmApETBBfC2FWfA4b59vEpqtH9"
    ]
  }
}

@blocknodehub
Copy link
Author

starcoin% node sync progress
{
"ok": {
"begin_number": 1,
"current": {
"error": 0,
"ok": 5,
"percent": 0.0,
"processed_items": 0,
"retry": 0,
"sub_task": 9,
"task_name": "starcoin_sync::tasks::accumulator_sync_task::BlockAccumulatorSyncTask",
"total_items": 9612574,
"use_seconds": 1
},
"target_difficulty": "0x096aa584921f05",
"target_id": "0x24e86568edb77ecd35ee62a3c59d8f42e181d7e54916be605df56e58554fa156",
"target_number": 9612575,
"target_peers": [
"12D3KooWMuvSkk51syDSSesKs4QmApETBBfC2FWfA4b59vEpqtH9",
"12D3KooW9quK2EEjeyTs3csNRWPnfMw4M3afGE1SHm1dCZDRWSAj",
"12D3KooWLtWQE76AL41cgMs4baRDpBUH8ARR6b19zSPQQzjtRqWq",
"12D3KooWBWsibdKdogDpFUfSVejPdK6t4s1eEvcqjuPVJ3gSpypx",
"12D3KooWH13WqMtEPQfEHHU8riaHt6L2oPLvN7GTin14AziTdukw",
"12D3KooWSW8t32L6VyjPZxxe3VSD7H6Ffgh69eCaDnDyab2M6tfK",
"12D3KooWMUto6c2qAsXep9bJhdN9Bs9nNTLiH5GPurfy2Q5R1w5a",
"12D3KooWQajuoiuY1Ba4Cz2Z7fGpNK38hKwzECGJQyCWnRb17JJ4"
]
}
}

@sanlee42
Copy link
Member

which platform is your starcoin node running?

@blocknodehub
Copy link
Author

i try ubuntu18 and ubuntu 22, the same problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants