Skip to content

Syncing stopped at height 58214823 - bad block #5681

@ttibord

Description

@ttibord

System information

OS : Linux
JVM : Private Build 1.8.0_392 amd64
Git : 9e95599
Version : 4.7.2 (upgraded to 4.7.3.1 just in case, no change)
Code : 18031

Expected behaviour

Node to continue syncing.

Actual behaviour

One of our nodes running version 4.7.2 stopped syncing on block height 58214823, following log error now repeats:

14:47:59.687 ERROR [sync-handle-block] [net](TronNetDelegate.java:289) Process block failed, Num:58214824,ID:00000000037849a8aa1faee85a5f373ace9ae9d60829d43e5214fe927c1ccea9, reason: account [TNJZQfCnsmYNoDRFZwKJRrmUNNc8rGi1Rk] has insufficient bandwidth[266] and balance[266000] to create new account
14:47:59.687 ERROR [sync-handle-block] [net](SyncService.java:307) Process sync block Num:58214824,ID:00000000037849a8aa1faee85a5f373ace9ae9d60829d43e5214fe927c1ccea9 failed, type: 10, bad block

We attempted to upgrade to latest version, 4.7.3.1, and the node unwound for a couple of blocks, but stopped at the same one:

Client version: "TRON/v4.7.2/Linux/Java1.8"
Block number: 58214823
Block timestamp: 2024-01-15T00:30:06
System time:     2024-01-17T13:17:31

Client version: "TRON/v4.7.3.1/Linux/Java1.8"
Block number: 58214805
Block timestamp: 2024-01-15T00:29:12
System time:     2024-01-17T13:19:00

Client version: "TRON/v4.7.3.1/Linux/Java1.8"
Block number: 58214817
Block timestamp: 2024-01-15T00:29:48
System time:     2024-01-17T13:19:04

Client version: "TRON/v4.7.3.1/Linux/Java1.8"
Block number: 58214823
Block timestamp: 2024-01-15T00:30:06
System time:     2024-01-17T13:19:05

Client version: "TRON/v4.7.3.1/Linux/Java1.8"
Block number: 58214823
Block timestamp: 2024-01-15T00:30:06
System time:     2024-01-17T14:16:25

This is the first occurrence of log error on block 58214824, 2023-01-15:

00:30:09.492 INFO  [nioEventLoopGroup-6-16] [net](P2pEventHandlerImpl.java:167) Receive message from  peer: /8.217.69.117:45128, type: BLOCK
Num:58214824,ID:00000000037849a8aa1faee85a5f373ace9ae9d60829d43e5214fe927c1ccea9, trx size: 169

00:30:09.492 INFO  [nioEventLoopGroup-6-16] [net](FetchBlockService.java:84) Fetch block success, Num:58214824,ID:00000000037849a8aa1faee85a5f373ace9ae9d60829d43e5214fe927c1ccea9
00:30:09.493 INFO  [nioEventLoopGroup-6-77] [net](P2pEventHandlerImpl.java:167) Receive message from  peer: /198.244.177.175:44788, type: INVENTORY
invType: BLOCK, size: 1, First hash: 00000000037849a8aa1faee85a5f373ace9ae9d60829d43e5214fe927c1ccea9
00:30:09.493 ERROR [PeerClient-52] [DB](Manager.java:1306) account [TNJZQfCnsmYNoDRFZwKJRrmUNNc8rGi1Rk] has insufficient bandwidth[266] and balance[266000] to create new account
org.tron.core.exception.AccountResourceInsufficientException: account [TNJZQfCnsmYNoDRFZwKJRrmUNNc8rGi1Rk] has insufficient bandwidth[266] and balance[266000] to create new account
        at org.tron.core.db.BandwidthProcessor.consume(BandwidthProcessor.java:153)
        at org.tron.core.db.Manager.consumeBandwidth(Manager.java:954)
        at org.tron.core.db.Manager.processTransaction(Manager.java:1432)
        at org.tron.core.db.Manager.processBlock(Manager.java:1728)
        at org.tron.core.db.Manager.applyBlock(Manager.java:1012)
        at org.tron.core.db.Manager.pushBlock(Manager.java:1298)
        at org.tron.core.net.TronNetDelegate.processBlock(TronNetDelegate.java:260)
        at org.tron.core.net.messagehandler.BlockMsgHandler.processBlock(BlockMsgHandler.java:147)
        at org.tron.core.net.messagehandler.BlockMsgHandler.processMessage(BlockMsgHandler.java:89)
        at org.tron.core.net.P2pEventHandlerImpl.processMessage(P2pEventHandlerImpl.java:196)
...

We have two more nodes running 4.7.2 that passed that block normally and are in sync, as well as a DB snapshot from this node some 20 hours before the offending block, so checking here to see:

  1. if I can do something more precise to the stuck node besides copying a healthy DB to resume, or syncing from last snapshot
  2. if our current node state is useful for troubleshooting a bug

Otherwise very happy with TRON stability, thanks for all the work!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions