MutinyWallet / mutiny-web

The frontend for Mutiny Wallet
https://app.mutinywallet.com
MIT License
175 stars 50 forks source link

First lightning transaction did not open channel #889

Closed bronco1 closed 5 months ago

bronco1 commented 5 months ago

I created an invoice, and paid it via lightning. I can see the payment completed. I can see the transaction in the activity,

But there isn't a channel open, no balance, not able to send.

What should be done to resolve the issue?

benthecarman commented 5 months ago

Can you submit logs and screenshots, otherwise we aren't able to help you

bronco1 commented 5 months ago

[Screenshot_20240217-134134.png

mutiny-logs (1).txt

Thanks for your prompt reply.

TonyGiorgio commented 5 months ago

Something went wrong with the channel. The logs also do not go very far back. Are you using this wallet on multiple devices at the same time?

bronco1 commented 5 months ago

mutiny-logs.txt Yes, I imported the state to a different browser, hoping it would reset. Here's the log from the original browser

TonyGiorgio commented 5 months ago

The logs aren't going back far enough to see what the original issue is. We'll reach out to the LSP to see if the channel appears on their end and what the status of it is.

node: 03a9f16b52e71baeac05102fa112302f3d20890052dee4151703ce51c99d8147f8

TonyGiorgio commented 5 months ago

Does anything show up in the channel view in the settings?

bronco1 commented 5 months ago

The channel page is empty

Screenshot_20240217-160521.png

TonyGiorgio commented 5 months ago

Are you using the original browser to check this? Is there anything if you go to admin tools and look at the channel list there?

It's never been the case previously that channels just disappear on the mutiny wallet side. It shows that the channel exists on the LSP side. So I'm very unsure what happened to cause this and if it's the result of bouncing between multiple devices.

In total, what devices and what browsers did you use originally and later to use Mutiny?

TonyGiorgio commented 5 months ago

One problem I notice is that there seems to be multiple "node managers" that have been initialized and created, but the channel does/should exist. We'll have to spend some time thinking about this problem and how to reproduce/solve it. Though any additional information you can provide will go a long way. We'll hopefully have something additional later this week.

benthecarman commented 5 months ago

@bronco1 as @TonyGiorgio said, this seems to a weird bug where multiple versions of the channel manager were spun up. It seems the one that has the channel is not the one that is saved to your local storage. This should be fixable.

In your state file you'll have something like this

{"nodes":{"bd2d8dba-a5e1-4415-a58b-fc767b16d1db":{"child_index":0,"lsp": "..."},"archived":false}},"version":3}}

what you will need to do is replace the uuid (here in my case it's bd2d8dba-a5e1-4415-a58b-fc767b16d1db) with 4223775b-2702-4a65-88d8-8af82cc33e65 and you'll want to increase the version number.

If you edit that and import the new state file that should hopefully resolve the issue.

bronco1 commented 5 months ago

Thank you both, this did resolve my issue.

TonyGiorgio commented 5 months ago

Great, thank you for reporting! The next version should prevent this from happening to other people, it is apparently a rare edge case.

bronco1 commented 5 months ago

I've subscribed to Mutiny+. looking forward to your future updates..

TonyGiorgio commented 5 months ago

I've subscribed to Mutiny+. looking forward to your future updates..

Thank you for the support!