hub icon indicating copy to clipboard operation
hub copied to clipboard

IOTA Hub Uncontrollable Rollbacks

Open Tsangares opened this issue 4 years ago • 3 comments

When I am running iota, connecting to public node, I am constantly recieving this error:

Aug 26 00:39:48 marx hub[31418]: E0826 00:39:48.114866 31429 user_address_monitor.cc:122] On-Tangle sum for address: O9TGBUQLTACYETFRDTRERWZT9SPCVRPZGGGMNGSZVBDYWI9UPLBFNXAFBYKRNBLZIBVREV9ZUFMRTHQHX did not match expected. Expected (getBalances): 150 observed: 0
Aug 26 00:39:48 marx hub[31418]: E0826 00:39:48.115031 31429 user_address_monitor.cc:136] Controlled rollback.
Aug 26 00:39:48 marx hub[31418]: MySQL debug: Executing: 'ROLLBACK'

It keeps saying ROLLBACK, and it knows that the value on the ledger is 150 Expected (getBalances): 150 but for some reasion it is not showing up in the account...

Any suggestions?

Tsangares avatar Aug 26 '20 00:08 Tsangares

This is fixed when I host my own node. Am I not allowed to use a public node with IOTA hub?

Tsangares avatar Aug 27 '20 19:08 Tsangares

We do also have the same error as @Tsangares has:

37 user_address_monitor.cc:122] On-Tangle sum for address: DIZPPWQLY9VNCGOMCPTHWCHZDNPOHWRRQUFPOYKHZQDBADQWUAKPSHVJTMMMRATFET9CHDUZLCXVSEDHX did not match expected. Expected (getBalances): 860737900 observed: 0

We use our own fully synced Hornet-Node on version 0.5.3 and the hub on version 1.4.3.

When i use the Hornet-Api directly with command

{
    "command": "getBalances",
    "addresses": ["DIZPPWQLY9VNCGOMCPTHWCHZDNPOHWRRQUFPOYKHZQDBADQWUAKPSHVJTMMMRATFET9CHDUZLCXVSEDHX"],
    "threshold": 100
}

the correct amount get's responded:

{
    "balances": [
        "860737900"
    ],
    "references": [
        "OAP9FVTLQMZAMLWPFBCWOBATWGBTNKQGSGUHWFBSKOHBIB9ZXDJV9SZPMZTLSGMSJOZTHUQWFTEOA9999"
    ],
    "milestoneIndex": 1813075,
    "duration": 0
}

The Bundle which does cause this issue: https://thetangle.org/bundle/KELZJKBORUFWIIWED9OZZHTIISJSTZXTFHJHCBFVPDLXTDTZBNAQDEOETF9EIPBBZEKYAUSLBYFXQFGSZ

Does someone have an idea why the hub does not detect the correct amount? Thanks for your help!

tangleMesh avatar Sep 20 '20 13:09 tangleMesh

For everybody running into these issues. The problem is that the hornet default http body limit/findTransactions/getTrytes/requestLists parameters are set to too small size and therefore returns the wrong result to the client. You need to run your own hornet node and set it to at least double or more then the default value under the following options:

https://github.com/gohornet/hornet/wiki/Configuration#httpapi

httpAPI.limits.bodyLengthBytes
httpAPI.limits.findTransactions
httpAPI.limits.getTrytes
httpAPI.limits.requestsList

This resolved the problem for me with the controlled rollback. Hope it helps somebody here

DZDomi avatar Feb 11 '21 21:02 DZDomi