lightning-terminal icon indicating copy to clipboard operation
lightning-terminal copied to clipboard

litd crashes upon LND accounts payment timeout

Open Liongrass opened this issue 2 years ago • 2 comments

  • I created an LND account with some funds in it
  • I pay an invoice, but the payment attempt times out
  • litd crashes when my wallet tries to look up the timed-out payments
2023-02-24 01:04:53.293 [WRN] CRTR: payment attempt not completed before timeout
2023-02-24 01:04:53.305 [DBG] CRTR: Payment baa0ccccf40ad95c59de4b09789bd3775be186b25aad7195348ed5cc65157b61 in state terminate=true, active_shards=0, rem_value=231179000 mSAT, fee_limit=100000 mSAT
2023-02-24 01:04:53.305 [ERR] CRTR: Payment baa0ccccf40ad95c59de4b09789bd3775be186b25aad7195348ed5cc65157b61 failed: timeout
2023-02-24 01:04:53.320 [ERR] LITD: Received critical error from subsystem, shutting down: payment baa0ccccf40ad95c59de4b09789bd3775be186b25aad7195348ed5cc65157b61 not mapped to any account

Actual behavior

To reproduce

litd 0.8.6 in integrated mode, compiled from source

Liongrass avatar Feb 24 '23 18:02 Liongrass

I am having the same thing happen with HOLD invoices, getting the error:

[ERR] LITD: Received critical error from subsystem, shutting down: payment xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx not mapped to any account

In this case, the "LND Account" is sending a HOLD invoice payment, rather than receive it (can't receive HOLD invoices with LND Accounts because of https://github.com/lightninglabs/lightning-terminal/issues/538). The error is intermittent, but it comes up I believe after the HOLD invoice is cancelled. I am using Zeus to send the payments, so I think there may be some timing issue of Zeus making a call to request the status of the payment while the payment is being cancelled by the receiver.

I am wondering if this is related to https://github.com/lightninglabs/lightning-terminal/issues/632 because in my case the accounts also stop working and the litd process stays running.

I am using the following version, compiled from source:

[INF] LITD: LiT version: 0.10.5-alpha commit=v0.10.5-alpha

AndySchroder avatar Feb 26 '24 19:02 AndySchroder

I think I've seen the above HODL invoices error before, but it should be fixed. I'm on "version": "0.12.1-alpha commit=v0.12.1-alpha" and have successfully paid HODL invoices through my LND Accounts.

Liongrass avatar Feb 26 '24 20:02 Liongrass