informalsystems / hermes

IBC Relayer in Rust
https://hermes.informal.systems
Apache License 2.0
451 stars 331 forks source link

Add troubleshooting for scenarios where hermes cannot retrieve packet data from chain #2802

Closed ancazamfir closed 2 years ago

ancazamfir commented 2 years ago

Summary

Under certain conditions hermes cannot retrieve the packet data from chain. As a first step these should be documented together with symptoms and fixes.

Problem Definition

Triage is difficult for these scenarios and starting with a troubleshooting section would be valuable.

Proposal

Acceptance Criteria


For Admin Use

ljoss17 commented 2 years ago

Hermes version

hermes 1.0.0+ed4dd8c8

Symptoms

The command hermes tx packet-ack doesn’t seem to be able to get the events of the unreceived acknowledgments

Configuration

Pruning configuration:

    pruning = "custom"

    pruning-keep-recent = "240000"
    pruning-keep-every = "0"
    pruning-interval = "10"

    min-retain-blocks = 0

Attachments

likecoin_issue

Findings

The user ran the command:

hermes query packet pending-acks --chain likecoin-mainnet-2 --channel channel-3 --port transfer

In order to retrieve a list which start with sequence number 13599

Going to : https://mainnet-node.like.co/rpc/tx_search?query=%22send_packet.packet_sequence=%2713599%27%22

The Tx hash was retrieved in order to find the mintscan transaction https://www.mintscan.io/likecoin/txs/D740BFB856E5971B9AF03077142EFB1FEAD5FDEED350C175F93F120400080088

This is likely due to the osmosis node not having a long enough history.