Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internal node not working #770

Open
louneskmt opened this issue Dec 13, 2022 · 21 comments
Open

Internal node not working #770

louneskmt opened this issue Dec 13, 2022 · 21 comments
Assignees
Labels
bug Something isn't working low priority This doesn't need to happen right away

Comments

@louneskmt
Copy link

Describe the bug

Since a few days, the LDK node doesn't seem to be working:

  • I'm no longer able to see the node id in "Advanced > Lightning Node"
  • The only channel I had is detected as "Closed connection" while there is no closing tx on the chain

The channel is marked as "Channel Ready Yes", "Channel Usable False". The local balance of the balance no longer appears on the main screen balance + Spending balance.

Reproduce

There isn't really any step to reproduce.

Screenshots / Recording

AD26AF68-D8E2-4ABD-B188-A870A1792A34
4B2F4EEC-F624-45FC-AE46-91B7EC0E5784

Operating system

iOS 16

Bitkit version

1.0 (23)

Log output

No response

@louneskmt louneskmt added bug Something isn't working triage This issue needs to be looked over by the team labels Dec 13, 2022
@coreyphillips
Copy link
Collaborator

Hey @louneskmt, thanks for creating an issue. Sorry to read you're having trouble with the lightning node's connection.

There are some instances where using a VPN will prevent a successful connection to your lightning node's peers. To prevent this, please ensure you're not using a VPN service on your device and attempt to restart the application to reconnect.

If this isn't the case, another way to troubleshoot this issue would be to enable "Developer mode" and attempt to restart and refresh LDK from the Settings menu. To enable dev mode, tap the Cog at the bottom of the Settings menu ~5 times. If successful, you should see a notification appear letting you know dev options were enabled. From there, you can navigate to "Advanced"->"Lightning Connections". You should now see several new buttons. Two of which are labeled "Restart LDK" & "Refresh LDK". Tapping "Restart LDK", wait several seconds and then tapping "Refresh LDK" should attempt to re-add and connect to your lightning peers.

Please let us know if this helps resolve your issue or if you notice any additional connection issues.

@louneskmt
Copy link
Author

Hey @coreyphillips! You're right, I use a VPN on my phone at times. Unfortunately, I tried your protocol multiple times, either on 5G or WiFi, without VPN, and nothing changed. Is there a way to get the logs?

@coreyphillips
Copy link
Collaborator

coreyphillips commented Dec 14, 2022

Sorry to hear that. There's no way to get the lightning logs yet, but it's a feature we're actively working on. Logs should be available if not for the next release, then the release after that. In the meantime, you should be able to close the channel from the app if you wish or feel free contact support here (support@synonym.to) and request that they close the channel. That would at least allow you to get your funds back while we sort these issues out.

@pwltr
Copy link
Collaborator

pwltr commented Feb 21, 2023

Hi @louneskmt , were you able to resolve this issue? If not you should be able to export the logs in the latest version by navigating to Advanced -> Lightning Connection -> Export Logs.

@pwltr pwltr removed the triage This issue needs to be looked over by the team label Feb 21, 2023
@louneskmt
Copy link
Author

Hey! I haven't been able to solve this, but I missclicked on the "Reset wallet state" so I ended up restoring my wallet hahaha. The channel got force closed.

I then opened a new channel, but it got force closed 3 days after the opening for no apparent reason.

@Darth-Coin
Copy link

Darth-Coin commented Feb 21, 2023

Yes, I have similar situation.
Using Bitkit v.1.0.0 beta35
Playing with 2 devices, both Motorola G9 Plus, android 12 (LineageOS) and android 11 (vanilla android).

On LineageOS Bitkit is opening, not crashing like before.
I can activate the dev options and export logs.
The LDK node is not starting, even after several intents with dev options.
I even reinstalled the app several times, and restore from scratch with seed.
I can see the left over sats in an onchain address / balance, from an opening a LN channel, but LN channel is gone.
Luckily I saved the nodeID first time I installed Bitkit, because now is impossible to obtain it, not even with dev options.

On vanilla android 11, I installed fresh Bitkit v1.0.0 beta35, restored from seed and app it just crash immediately after the rocket animated logo flew 2-3 times.

Note: my Bitkit nodeID is 030587afffaf646d768ef71ef46fe2cde422a81bc24c0695165ba15158b354210f
In case is needed for further investigation. This is a testing session so no worry about leaving it here.

@JeanlChristophe JeanlChristophe added the low priority This doesn't need to happen right away label Mar 2, 2023
@JeanlChristophe
Copy link

Hi @louneskmt and @Darth-Coin.

Could you please, uninstalled and reinstalled the app with the latest version (v51) and restore the seed? It should be fixed from now.

@Darth-Coin
Copy link

Yes @JeanlChristophe I did that. I just wanted to come back here to update the situation after I had an email exchange with Pavel Nikolov (Bitkit support).
I requested him to force close the channel from Blocktank side, just to move forward with this issue. So he said that the channel is closed on June 1.
So I tried first to just open Bitkit with version 46. It crashed, then later I saw the update to v51 and I update it.
Again it crashed.
So I uninstalled completely Bitkit and reinstall it again v51, restoring with seed.
Again crashed.
Is strange that with the version 35 it didn't crashed (same device) but the LDK node still not starting.

I have imported the seed into Electrum wallet, thinking that I could see the funds from force closure coming back onchain.
I can see the previous txs and a small amount remained onchain from that opening channel, but still can't see the funds from force closure.

Maybe the force closure is not released yet, usually takes at least a week. So let's wait some days more. From my side I cannot see the closing tx.

I attach here the latest logs that I could export with v51 when is crashing.
bitkit_ldk_logs_1685982775903.zip

Thanks for looking into this issue. I really want to help you identify what is the problem.

@JeanlChristophe
Copy link

Hi @Darth-Coin,
You're right, closing channel can may take 14 days. From a new seed, can you confirm that you don't have this problem?
Thanks! And it's really very annoying because we can't reproduce this issue on our side. We've identified few use cases where the app crashed: #1070 #1087 #1067

Can you ping me when the channels are closed?
Thanks for testing, we appreciate the time you take to test the wallet.

@JeanlChristophe
Copy link

Hi @Darth-Coin
It's been 14 days since you started the closure procedure. Can you tell me the status?

@Darth-Coin
Copy link

Hi @JeanlChristophe
Still no sign of recovery funds.
I am checking every day.
Do you have any txID from force closing to trace it?
I think it should be displayed in the app in some way.
The app is still crashing at start. I am just checking in Electrum imported seed from Bitkit.

@JeanlChristophe
Copy link

No we don't @Darth-Coin and that's probably something we should add. Can you share your logs with me so that I can identify the source of the problem?

@Darth-Coin
Copy link

Sure, here are the logs
bitkit_ldk_logs_1685982775903.zip

@JeanlChristophe
Copy link

I can see that these are the same logs as those you shared two weeks ago. Can you go into development mode and share these logs with us?

Thank you very much.

@Darth-Coin
Copy link

Sure, here is a new export of logs
bitkit_ldk_logs_1687523683612.zip

@Jasonvdb
Copy link
Collaborator

@Darth-Coin can you switch on dev mode before sharing. Go to Settings and tap that cog icon at the bottom more than 5 times. Then if you then share the logs it includes the channel tx details that will help debug this.

@Darth-Coin
Copy link

As you can read this whole issue, is about that Bitkit entirely is crashing before reaching to see the "Settings" menu.
These logs are obtained by tapping several times when Bitkit is starting and get into the hidden recovery menu.
Otherwise the app is just crashing, poof, disappear instantly.
There's no way to get to a normal start. And I tried several times from Nov 2022 until today with many different versions, on 2 different devices, trying to restore it (of course not in the same time).

@JeanlChristophe
Copy link

Hi @Darth-Coin, We've probably found the solution to the issue. It won't be in the next version (end of week) but in the next one. I'll get back to you to let you know when you'll be able to test the release.

@Darth-Coin
Copy link

@JeanlChristophe Thanks for the heads up. I just saw the new version beta60 available and I tried the following:

  • update over existing beta51 that was stuck in recovery. Result was "failed to restore". Tried few times clicking the button "try again" but didn't get through.
  • removed totally Bitkit from device and installed again beta60. Restored the seed and the result was the same "failed to restore".
  • I restarted the app and clicking on the logo at the start, I entered into the hidden recovery menu and I clicked on the "Lightning recovery" option that is trying to force close the existing channels. After few seconds, the result was "lightning recovery success" - pending balance 0 sats recovered (strange! it must be at least 90k sats in that testing channel). I restarted the app after that message, but is still entering in setting up the wallet and with the result "failed to restore".
    So I restarted again into the hidden recovery menu and exported the logs (here you have them attached, if that can help identify where is the problem).
    bitkit_ldk_logs_1689954577677.zip

I checked the wallet that I had imported into Electrum (just as a backup testing, not for making txs) and the balance is still the same dust sats from opening the LN channel in Bitkit. Maybe from the logs you can find out if the channel was really force closed now so that could take another days until the sats will appear in the onchain balance. But worry me that message about "pending balance 0 sats".
force-close-bitkit-chans

Please let me know what can I do more.

@JeanlChristophe
Copy link

Hi @Darth-Coin . We are investigating whether there are ways to restore the broken LN node or claim the channels, and we are working on implementing ways to prevent this bug in the future. We will let you know when if we make progress.

@JeanlChristophe
Copy link

Hi @Darth-Coin we haven't forgotten you.
Since you sent us your issue, we've recently released a new version with a fix. Can you please update your application and tell me if this problem has been solved?
Thanks for testing, we appreciate the time you take to test the wallet, feedback from our beta testers is more than important.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working low priority This doesn't need to happen right away
Projects
None yet
Development

No branches or pull requests

6 participants