-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
lnd becoming unusable after htlcs in a channel > default-remote-max-htlcs #5297
Comments
I have force closed the channel in question. I seems there are no longer issues in the log. |
The remote max htlcs only applies to one side's commitment transaction |
Disk storage increase is probably (I'm guessing) from failed payments that are stored. We might be mis-handling the remote max htlc's though so I'll look into it. |
looking at the payment index (774714, several order of magnitude of the number payment this node is doing on a daily basis) with cpu maxing at 200% (instead of 10 or 20%) made me thing of a loop within lnd that was trying to do a payment and failing but continuously retrying. this issue seems to correlate very well with the time the channel suddenly reached 30 htlc. |
Maybe related to #4656 ? |
seems it's related indeed. the loop seems endless in this case. |
is there a way to clean this up (that doesn't involve creating a new node?) |
You can use the |
ok thanks I'll get it a try once the .13 is released. by default lnd keeps forever trace of all payment, including failed one/and also failed htlc? |
Yeah, we keep everything by default. Failed payments and failed htlc attempts. If you want to just delete all failed payments, that's already available. 0.13 just adds the option to only delete the htlcs but keep the payments, so depends on how much you want to delete. |
ok I'll try that. I'll use the api to do it, but why not providing this option to lncli as well? seems this would be valuable for node operator when their db has grown too much already. |
Background
Since the last 24 hours, lnd is behaving weirdly.
One thing I have seen is that there is 30 htlc in one channel, despite having
default-remote-max-htlcs=10
option setDisk storage went from ~1Gb to 6Gb in 2 days. and the node is overly slow.
The log seems to show a log of error failure related to the channel that has more than 10 htlc.
Your environment
lnd
: 0.12.1uname -a
on *Nix): Linux lnd-0 4.19.167+ Fix name typo in README #1 SMP Tue Feb 2 07:59:55 PST 2021 x86_64 Linuxbtcd
,bitcoind
, or other backend: bitcoin 0.21Steps to reproduce
Do not know how the node ends up in this situation
Actual behaviour
The text was updated successfully, but these errors were encountered: