lightninglabs / lightning-terminal

Lightning Terminal: Your Home for Lightning Liquidity
MIT License
501 stars 88 forks source link

Pending actions stuck at Fetching #595

Closed eliotcougar closed 1 year ago

eliotcougar commented 1 year ago

In Terminal Web I cleared browser data and logged back in... Now the entire "Pending Actions" section of the UI is stuck in "Fetching…" state. Therefore, all the data about channel open/close fees isn't reflected in the stats… The same happens if I try a different browser… image

System information

lnd-remote mode with lnd 0.16.4, terminal 0.10.1 Windows 10 x64

There's nothing of interest in litd.log or in the browser console… I did encounter a similar bug with one of the older versions, but usually, clearing the browser data and repopulating helped. This time it made it worse - all channel open/close info is now lost…

ViktorTigerstrom commented 1 year ago

Hi @eliotcougar! Thanks for the issue report! I'd just like to start by asking for some initial sanity checking and clarifications.

1: First of all, after clearing the browser data, by logging back in, do you mean that you're also setting up a new Lightning Node Connect session with a new pairing phrase and connecting over that new session? Information of how to do so can be found here: https://docs.lightning.engineering/lightning-network-tools/lightning-terminal/connect (ie. navigating to http://127.0.0.1:8443 | "Lightning Node Connect" | "Create a new session", or creating the session through the command interface).

If not, could you please try to create a new Lightning Node Connect session and connect over it to see if the issue still persists?

Generally if the you're clearing the browser data, the browser LNC session data should be removed as well, and connecting using the same pairing phrase twice shouldn't be possible. So in case you're just logging back in after clearing the browser data, there's still some session data left in the browser data.

2: Secondly, could you please clarify what you mean by "all channel open/close info is now lost…"? Do you mean that you can no longer see the any channels open/closures under Home | Channels > Channel Actions, or that you can still see the Channel Actions but they're stuck at "Fetching"? Just for some reassurance, I'll also add that the channel open/closures data is stored in the LND node itself, and should not be lost by clearing the browser data. So it should be visible again once we resolve the Terminal Web issues you're experiencing :).

eliotcougar commented 1 year ago
  1. Yes, I create a new session, with a new pairing phrase. And I clear all the relevant data in the browser. Also, connecting from a separate empty browser (MS Edge) shows same behavior.

  2. I am aware that everything is stored in LND. What I was trying to say is that in Terminal, there is no info on the sats spent on channel management, only on routing fees. Until channel actions are resolved, the fees spent on channel opening/closing aren't counted at the top of the page or in downloadable node report...

Previously I already experienced stuck channel actions from time to time, but I was able to resolve those by clearing data and reconnecting... This time, however, it didn't solve the issue - instead, all actions since the very beginning of this node are now stuck...

levmi commented 1 year ago

Thanks for the feedback and the report! We have tested this on our end and see similar issues. So, there is a bug/problem. We'll work to get this fixed in an upcoming release and keep you updated on our progress. Thanks again for the report, super helpful for us :)

levmi commented 1 year ago

Can you retry this now? We just released a new version to terminal.lightning.engineering, which should fix the issue.

viresinnumeris-1 commented 1 year ago

Hi, I'm using the same versions as OP. Can confirm that issue has been fixed now.

levmi commented 1 year ago

Thanks for confirming! Closing for now, can always re-open.