Open toneloc opened 9 months ago
Yep that's definitely a bug, and a weird one at that.
Not exactly sure what's happening but lightningd is sending a message to another internal daemon (called dualopend) with the signatures it needs to finish the open. The message it's sending isn't in the format that dualopend is expecting, so it falls over.
Can you send me or post the info from the logline that says STATUS_FAIL_MASTER_IO: Error parsing 7011: ...
. The extra info it prints is the actual message that it failed to parse. Looking at that should help clue me into what went wrong.
Thanks for the report + your help tracking this down!
Oh actually just looking at the code I found the problem. Sometimes the message we get back from lightningd is a failure message, instead of a success message.
We try to parse it as a success message, and fall over.
Would still love to see what the failure message is, but I think I can make a patch for this no problem.
Can you give me any info about the setup you've got that's causing this error? It'd be nice to be able to reproduce it before fixing it.
Oh one more thing. What does this log line say?
2023-11-22T16:44:06.067Z **BROKEN** ....
The line at "STATUS_FAIL_MASTER_IO: Error parsing 7011:" is:
-chan#7: STATUS_FAIL_MASTER_IO: Error parsing 7011: 1b5b50656572206572726f7220776974682050534254207369676e6174757265732e00
The line "2023-11-22T16:44:06.067Z BROKEN ...." says:
2023-11-22T16:44:06.067Z **BROKEN** PEER_ID-chan#7: Plugin must return a 'psbt' with signatures for their inputs
Oh, and I am running this version of Ubuntu below, and I was trying to open this channel above on mainnet.
LSB Version: core-11.1.0ubuntu4-noarch:printing-11.1.0ubuntu4-noarch:security-11.1.0ubuntu4-noarch
Distributor ID: Ubuntu
Description: Ubuntu 22.04.3 LTS
Release: 22.04
Codename: jammy
Let me know anything else, and thanks for your help!
Ah ok! Are you using the default funder
plugin for this? I can fix the
underlying broken patch but you're still going to have an issue with the
"must return psbt" requirement that's currently failing.
On Wed, Nov 22, 2023 at 3:48 PM toneloc @.***> wrote:
Oh, and I am running this version of Ubuntu below, and I was trying to open this channel above on mainnet.
LSB Version: core-11.1.0ubuntu4-noarch:printing-11.1.0ubuntu4-noarch:security-11.1.0ubuntu4-noarch Distributor ID: Ubuntu Description: Ubuntu 22.04.3 LTS Release: 22.04 Codename: jammy
Let me know anything else, and thanks for your help!
— Reply to this email directly, view it on GitHub https://github.com/ElementsProject/lightning/issues/6891#issuecomment-1823552502, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIMAKOLWI7VH5WAASQ3B2LYFZXJZAVCNFSM6AAAAAA7WSQD7SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRTGU2TENJQGI . You are receiving this because you were assigned.Message ID: @.***>
Are you using the default
funder
plugin for this?
I think so? :) This process is running: /usr/libexec/c-lightning/plugins/funder
I can fix the underlying broken patch but you're still going to have an issue with the "must return psbt" requirement that's currently failing.
I see, well maybe I can use a different version to get around this bug. I had dual-funding working on a much older version of CLN.
And the set-up that I documented in this issue did succeed in creating a dual-funded channel at least once.
What I want to do is open a balanced channel, and I don't really care about other lease-related settings. Any other suggestions, please let me know. Cheers.
when you run listfunds
on L2 what do you get?
when you run listfunds on L2 what do you get?
Under outputs, I see two available outputs. These outputs were both "reserved" yesterday; today they are available.
I see one channel that says "DUALOPEND_OPEN_INIT" ... this is indeed the channel that I had documented above.
Should I try to close this "DUALOPEND_OPEN_INIT" channel?
L1 listfunds
does not show this channel
For what it's worth, I was able to open dual-funded channels, locally, with these same settings with no problems on version v23.05.2
.
when you run listfunds on L2 what do you get?
Under outputs, I see two available outputs. These outputs were both "reserved" yesterday; today they are available.
I see one channel that says "DUALOPEND_OPEN_INIT" ... this is indeed the channel that I had documented above.
Should I try to close this "DUALOPEND_OPEN_INIT" channel?
L1
listfunds
does not show this channel
FYI, this status changed to "AWAITING_UNILATERAL" today ... when I tried to close this channel, CLN reported "Channel ID not found" ... well that makes sense.
I am going to withdraw all funds from these CLN instances, downgrade to 23.05.02, and try to run my dual-funds on that version, as it sounds like an upgrade will not solve these present issues.
Issue and Steps to Reproduce
I am having difficulty opening dual-funded channels on v23.08.1. I am seeing spotty behavior that is difficult to pin down. At some times, the behavior appears to create a single-sided channel. Once, I was able to create a dual-funded channel successfully.
Maybe this behvior is related to : https://github.com/ElementsProject/lightning/commit/3190c26bc9003b250f466fd2d261b9fee4a4935b
I have debug logs from a specific error occurrence that I share below. With these logs, the "fundchannel" command simply hung for several minutes.
TL;DR the most relevant messages from the debug logs appears to be:
Is there a version I can try to resolve this?
Here is more information:
I am trying to open a channel from LN Node 1 to LN Node 2.
I start LN Node 1 with:
lightningd --daemon --log-file=/home/ubuntu/cln.log --experimental-dual-fund --funder-policy=match --funder-policy-mod=100 --funder-min-their-funding=1000 --funder-per-channel-max=700000 --funder-fuzz-percent=0 --lease-fee-base-sat=2sat --lease-fee-basis=50 --experimental-splicing --experimental-offers --funder-lease-requests-only=false --log-level=debug
"funderupdate" on LN Node 1 returns:
I start LN Node 2 with:
lightningd --daemon --experimental-dual-fund --log-file=/home/ubuntu/cln2.log --lightning-dir=/home/ubuntu/.second-lightning --announce-addr=0.0.0.0:19736 --funder-policy=match --funder-policy-mod=100 --funder-min-their-funding=1000 --funder-per-channel-max=700000 --funder-fuzz-percent=0 --lease-fee-base-sat=2sat --lease-fee-basis=50 --experimental-splicing --experimental-offers --log-level=debug
"funderupdate" on LN Node 2 returns:
I then run
lightning-cli fundchannel CHANNEL_ID 0.002...btc
Relevant (abridged) debug logs from LN Node 1:
Relevant (abridged) debug logs from LN Node 2:
Please let me know what further information I can provide. Thank you.