Blockstream / greenlight

Build apps using self-custodial lightning nodes in the cloud
https://blockstream.github.io/greenlight/getting-started/
MIT License
106 stars 28 forks source link

Cannot create invoice (loading indefinitely) #445

Open raweber42 opened 2 months ago

raweber42 commented 2 months ago

On my node 02aff1834ae45d42bcf9e2eb6994d52db2673ea5b09f48100aa73b255851972f5c I am not able to create an invoice. The channel is very old, but still, this should work. Hit me up if you need more details.

cdecker commented 2 months ago

Ok, I found 2 invoice calls, the first one on 2024-04-12 which went through, and a second one corresponding to the date of this report. The node is busy processing the channel being closed:

2024-05-14T14:48:06+02:00 {} stdout: DEBUG   lightningd: Adding block 839177: 00000000000000000002b695c9afc79e2f1623e1d884ea47940d2782efa4acf1
2024-05-14T14:48:06+02:00 {} stdout: DEBUG   0264a62a4307d701c04a46994ce5f5323b1ca28c80c66b73c631dbcb0990d6e835-chan#1: Got UTXO spend for ad8fc87dcf5394b97f28b90ccb30355dc8fa2b07fab39a3e77f249257d52765a:0: 830da90339e0aa3be7277c4cf9af2dfdbac236a47131eff378c0ab02b177aedf
2024-05-14T14:48:06+02:00 {} stdout: UNUSUAL 0264a62a4307d701c04a46994ce5f5323b1ca28c80c66b73c631dbcb0990d6e835-chan#1: Peer permanent failure in CHANNELD_NORMAL: Funding transaction spent

For some reason the node locks up completely after that. Do you have any signer logs that'd indicate it refusing to sign something? We have a signer connecting correctly, and it is signing off on things as we can connect to a peer.

cdecker commented 6 days ago

We are skipping the automatic reaction when seeing a close on-chain, since it's too late for our unilateral close anyway. This unlocks the node and returns it to working order.