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

[SYNC] no peers to connect to #4206

Open
jasonyic opened this issue Jun 22, 2022 · 1 comment
Open

[SYNC] no peers to connect to #4206

jasonyic opened this issue Jun 22, 2022 · 1 comment

Comments

@jasonyic
Copy link
Contributor

harmony version: v4.3.10
try to start a node by connecting to mainnet, with no snapshot. I can see quite a few peers get connected

harmony_1  | {"level":"info","hostID":"QmeiP4UvhrcFQeNnoTYaeZDZMJm2pFBrKQJW7C2v9pfkzv","node":"QmQtcXgV21TDbk3pnvJ6C6r9SXWSrhV2EhbcmXXvojBwdF","caller":"/home/runner/work/harmony/harmony/harmony/p2p/host.go:434","time":"2022-06-22T17:28:16.583666817Z","message":"peer connected"}
harmony_1  | ...

but block is not syncing with the following errors:

harmony_1  | {"level":"debug","len":0,"isBeacon":false,"caller":"/home/runner/work/harmony/harmony/harmony/api/service/legacysync/syncing.go:326","time":"2022-06-22T17:29:53.377022885Z","message":"[SYNC] CreateSyncConfig: len of peers"}
harmony_1  | {"level":"warn","error":"[SYNC] no peers to connect to","peers":[],"caller":"/home/runner/work/harmony/harmony/harmony/node/node_syncing.go:307","time":"2022-06-22T17:29:53.377248096Z","message":"[SYNC] create peers error"}
harmony_1  | {"level":"debug","err":[{}],"length of newTxs":1,"totalPending":0,"totalQueued":0,"caller":"/home/runner/work/harmony/harmony/harmony/node/node.go:234","time":"2022-06-22T17:29:54.564033439Z","message":"[addPendingTransactions] Adding more transactions"}
harmony_1  | {"level":"debug","err":[{}],"length of newTxs":1,"totalPending":0,"totalQueued":0,"caller":"/home/runner/work/harmony/harmony/harmony/node/node.go:234","time":"2022-06-22T17:29:54.902270143Z","message":"[addPendingTransactions] Adding more transactions"}

any suggestion would be helpful. thank you

harmony.config

Version = "2.5.2"

[BLSKeys]
  KMSConfigFile = ""
  KMSConfigSrcType = "shared"
  KMSEnabled = false
  KeyDir = "/harmony/.hmy/blskeys"
  KeyFiles = []
  MaxKeys = 10
  PassEnabled = true
  PassFile = ""
  PassSrcType = "auto"
  SavePassphrase = false

[DNSSync]
  Client = true
  LegacySyncing = true
  Port = 6000
  Server = true
  ServerPort = 6000
  Zone = "t.hmny.io"

[General]
  DataDir = "/data"
  EnablePruneBeaconChain = false
  IsArchival = false
  IsBeaconArchival = false
  IsOffline = false
  NoStaking = false
  NodeType = "validator"
  ShardID = 0
  TraceEnable = false
  #IsBackup = false
  #EnablePruneBeaconChain = false

[HTTP]
  AuthPort = 9501
  Enabled = true
  IP = "0.0.0.0"
  Port = 9500
  RosettaEnabled = false
  RosettaPort = 9700

[Log]
  FileName = "harmony.log"
  Folder = "/harmony/log/latest"
  RotateCount = 0
  RotateMaxAge = 0
  RotateSize = 100
  Verbosity = 3

  [Log.VerbosePrints]
    Config = true

[Network]
  BootNodes = ["/dnsaddr/bootstrap.t.hmny.io"]
  NetworkType = "mainnet"

[P2P]
  DisablePrivateIPScan = false
  DiscConcurrency = 0
  IP = "0.0.0.0"
  KeyFile = "/harmony/.hmykey"
  MaxConnsPerIP = 10
  Port = 9000

[Pprof]
  Enabled = false
  Folder = "/harmony/profiles"
  ListenAddr = "0.0.0.0:6060"
  ProfileDebugValues = [0]
  ProfileIntervals = [600]
  ProfileNames = []

[RPCOpt]
  DebugEnabled = false
  RateLimterEnabled = false
  RequestsPerSecond = 5000

[ShardData]
  CacheSize = 512
  CacheTime = 10
  DiskCount = 8
  EnableShardData = false
  ShardCount = 4

[Sync]
  Concurrency = 6
  DiscBatch = 8
  DiscHardLowCap = 6
  DiscHighCap = 128
  DiscSoftLowCap = 8
  Downloader = false
  Enabled = false
  InitStreams = 8
  MinPeers = 2

[TxPool]
  AccountSlots = 16
  BlacklistFile = "/harmony/.hmy/blacklist.txt"
  RosettaFixFile = ""

[WS]
  AuthPort = 9801
  Enabled = true
  IP = "0.0.0.0"
  Port = 9800

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@jasonyic and others