bitkit icon indicating copy to clipboard operation
bitkit copied to clipboard

[Bug] Channel opens/closes only after restart

Open thisispav opened this issue 2 years ago • 7 comments

Describe the bug

tried opening a channel - was waiting for 30 min - the channel state said Connection Open but when I switched on Dev Mode the channel was bot Not Usable and Not Ready.

Order ID - Order ID - 12a83f07-fd31-4d37-be52-5ea8c2668f0c

Sev suggested it is a peer connection issue - I tried to refresh the app multiple times, then closed and opened the app and received notification that the channel was finally opened.

Reproduce

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Screenshots / Recording

Operating system

Graphene OS Pixel 6A

Bitkit version

v66

Log output

bitkit_ldk_logs_1695133081875.zip

thisispav avatar Sep 19 '23 14:09 thisispav

Experiencing the same issue on occasion. Have to sometimes restart Bitkit for the channel to be opened, refreshing alone is not enough.

pwltr avatar Sep 19 '23 16:09 pwltr

Also an issue when closing channels.

pwltr avatar Oct 02 '23 10:10 pwltr

Couldn't repro yet, will keep trying.

ovitrif avatar Feb 21 '24 19:02 ovitrif

While I couldn't repro this issue yet I noticed an error that was reported twice in the logs:

2023-09-19 23:12:19 ERROR (LDK): Peer sent channel_ready when we needed a channel_reestablish.
  The peer is likely lnd,
  see https://github.com/lightningnetwork/lnd/issues/4006
  (lightning::ln::channelmanager 7085)

Just wanted to add it here, even though I'm skeptical this is the cause of the issue. I mean, I wouldn't expect this error to resolve automatically after restart 🤷

ovitrif avatar Feb 26 '24 19:02 ovitrif

bitkit_ldk_logs_1709043704903.zip here the logs from Pav. he had the same issue

JeanlChristophe avatar Feb 27 '24 14:02 JeanlChristophe

Latest theory is this was caused by electrum issues and may have been resolved in other updates. Restarting allowed it to reconnect and see the funding tx making the channel usable.

Jasonvdb avatar May 16 '24 10:05 Jasonvdb

Putting this in the backlog again for now, will keep an eye out for this issue.

pwltr avatar May 21 '24 12:05 pwltr

Seems to be fixed, closing.

pwltr avatar Aug 19 '24 15:08 pwltr

Also think maybe it was caused by dropped peer connections. And now we have a patch that reconnects right away if a peer is dropped.

Jasonvdb avatar Aug 20 '24 11:08 Jasonvdb