"Adding HTLC timed out: killed channel", "Timed out while waiting", and blinking connections #2632
Description
I've been running c-lightning, 0.7.0 at the moment, for about a year on the same database and it's been accumulating weird issues over time.
The latest and fatal issue is that attempting to pay anything would end up with
{ "code" : 200, "message" : "Timed out while waiting" }
message, and channels would randomly get and lose an "Adding HTLC timed out: killed channel" status:
"status": [
"CHANNELD_NORMAL:Reconnected, and reestablished.",
"CHANNELD_NORMAL:Adding HTLC timed out: killed channel"
],
The log is full of "Peer connection lost" and "Adding HTLC too slow: killing channel" messages.
Eventually the payment would go into failed state.
I've tried restarting everything, to no effect.
I've retried the payment many times, and in the end one of the channels went into unilateral close ( "Peer permanent failure in CHANNELD_NORMAL: Offered HTLC 8 SENT_ADD_COMMIT cltv 575751 hit deadline" ) with 1200 blocks of waiting, at which point i've stopped trying.
Currently contemplating closing everything, salvaging the funds and starting from blank. Is there any useful data i can provide here?
Other weird things started around the beginning of the year.
First i noticed that the channels kept blinking - showing as connected, then as disconnected, then connected again. Every hour i check, there is a random list of connected and disconnected channels. Before then they would all typically be connected all the time. Nothing changed on the network level, and internet connection remains stable.
That was also around the last time my node routed any payments (or at least listforwards stopped showing any new ones, even when they should have been logged).
Then, about a month ago, channels started to drop out into unilateral closes on bitcoind updates and restarts, if the node was out for more than a few hours. However, payments still worked.
Finally, this happened today.