Channel has enough Balance, but INSUFFICIENT_BALANCE Errors for HTLC Forwards are happening #7383
Replies: 2 comments
-
Thank you for the detailed report. I'm looking into this. For completeness, do you run any other tools that intercept HTLCs? #7108 may be related, although both balances are high (so I'd rule this out). The number of accepted HTLCs of your peer is also very low Could you send to yourself to trigger a insufficient balance error (dest should be your node pubkey, this should not settle if you don't have keysend activated)?: |
Beta Was this translation helpful? Give feedback.
-
Yes, I do run other tools, but I'm not sure if they actually intercept HTLCs. My guess would be that they don't. The tools: I tried some autopilot features from LNDg a while ago, which may have changed some things, like the
No errors, worked as expected: lncli sendpayment \
--keysend -d 02d3c80335a8ccb2ed364c06875f32240f36f7edb37d80f8dbe321b4c364b6e997 \
--allow_self_payment \
-a 10000 \
--outgoing_chan_id 850181973150531585
Sounds reasonable. An update: Channel got "back to normal," and now I'm routing payments. So, here's what I'm going to do: I will remove all those tools. I was experimenting, but now I have my own tooling and don't need them anymore, so I believe it would be easier to debug things without potential interference/noise from them. Additionally, sounds like, for debugging purposes, it would be very helpful to have a "snapshot" of the node/channels at the exact moment of the failure. Gonna implemented this to evaluate if it will be useful in potential future failures. About Also, how would it be possible, at the moment of the failure, to evaluate if this ( Let me know if you need additional info, and thanks for the help! |
Beta Was this translation helpful? Give feedback.
-
I'm monitoring events through router/SubscribeHtlcEvents.
I started receiving
INSUFFICIENT_BALANCE
forwarding errors for a Channel that actually appears to have more than enough balance:local_balance
outgoingAmtMsat
local_chan_reserve_sat
dust_limit_sat
I was able to forward
50
payments through the channel successfully before, and a day ago, I started to have this issue after a rebalance - with feels like just a coincidence and not related to the rebalance.When the failure happens, I receive two failures in a row (maybe a kind of retry is happening?).
Example of a failure (the two in a row, as I mentioned):
Outgoing Channel State
lightning/list-channels
lightning/get-chan-info
I was suspicious about this being exactly this issue because
max_pending_amt_msat
=18446744073709551615
andmin_htlc_msat
=0
:Plus, the Node to who I have the channel opened apparently runs on CLN:
But, following the issue, appears to be something already fixed by #5478.
From my math, there should be no reason for an
INSUFFICIENT_BALANCE
error, but I keep receiving HTLC forwarding failures for this channel.Thoughts about what could be happening and suggestions about how to debug this?
Environment
0.15.5-beta commit=v0.15.5-beta
c0a09209782b1c62c3393fcea0844e095c25046b
Linux 5.15.0-58-generic #64-Ubuntu SMP x86_64 x86_64 x86_64 GNU/Linux
24.0.1
Beta Was this translation helpful? Give feedback.
All reactions