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

[bug]: Unable to fundchannel - message payload is too large #1250

Closed
vanditshah99 opened this issue Dec 12, 2024 · 1 comment · Fixed by #1259
Closed

[bug]: Unable to fundchannel - message payload is too large #1250

vanditshah99 opened this issue Dec 12, 2024 · 1 comment · Fixed by #1259
Assignees
Labels
Milestone

Comments

@vanditshah99
Copy link

Background

We are trying to create a channel from speed4 to speed3, using fundchannel command, receiving the following error

[litcli] error funding channel: rpc error: code = Unknown desc = error funding channel: unable to send input ownership proofs: unable to send proof to peer: rpc error: code = Unknown desc = message payload is too large - encoded 66255 bytes, but maximum message payload is 65533 bytes

Your environment

Mainnet

tapcli getinfo
{
    "version": "0.5.0-alpha.rc2 commit=v0.5.0-rc2",
    "lnd_version": "0.18.4-beta.rc2",
    "network": "mainnet",
    "lnd_identity_pubkey": "038dbb70e3484da0bed806156f5270d39b480a659c82fb4b56ba3dcbe0edd74d55",
    "node_alias": "speed4",
    "block_height": 874391,
    "block_hash": "000000000000000000005d8175570bdf70133d57b2c7820a1445082a9c53eb39",
   
}
lncli getinfo
67503f3564b2:/src# lncli getinfo
{
    "version":  "0.18.4-beta.rc2 commit=lightning-terminal-v0.14.0-alpha.rc2",
    "commit_hash":  "890764a28af254243c64856c4addf6b9dc674716",
    "identity_pubkey":  "038dbb70e3484da0bed806156f5270d39b480a659c82fb4b56ba3dcbe0edd74d55",
    "alias":  "speed4",
    "color":  "#f2f2f2",
    "num_pending_channels":  0,
    "num_active_channels":  1,
    "num_inactive_channels":  0,
    "num_peers":  3,
    "block_height":  874391,
    "block_hash":  "000000000000000000005d8175570bdf70133d57b2c7820a1445082a9c53eb39",
    "best_header_timestamp":  "1734005631",
    "synced_to_chain":  true,
    "synced_to_graph":  true,
    "testnet":  false,
    "chains":  [
        {
            "chain":  "bitcoin",
            "network":  "mainnet"
        }
    ],
    "uris":  [
        "038dbb70e3484da0bed806156f5270d39b480a659c82fb4b56ba3dcbe0edd74d55@44.207.210.37:8737"
    ],
    "features":  {
        "0":  {
            "name":  "data-loss-protect",
            "is_required":  true,
            "is_known":  true
        },
        "5":  {
            "name":  "upfront-shutdown-script",
            "is_required":  false,
            "is_known":  true
        },
        "7":  {
            "name":  "gossip-queries",
            "is_required":  false,
            "is_known":  true
        },
        "8":  {
            "name":  "tlv-onion",
            "is_required":  true,
            "is_known":  true
        },
        "12":  {
            "name":  "static-remote-key",
            "is_required":  true,
            "is_known":  true
        },
        "14":  {
            "name":  "payment-addr",
            "is_required":  true,
            "is_known":  true
        },
        "17":  {
            "name":  "multi-path-payments",
            "is_required":  false,
            "is_known":  true
        },
        "19":  {
            "name":  "wumbo-channels",
            "is_required":  false,
            "is_known":  true
        },
        "23":  {
            "name":  "anchors-zero-fee-htlc-tx",
            "is_required":  false,
            "is_known":  true
        },
        "25":  {
            "name":  "route-blinding",
            "is_required":  false,
            "is_known":  true
        },
        "27":  {
            "name":  "shutdown-any-segwit",
            "is_required":  false,
            "is_known":  true
        },
        "30":  {
            "name":  "amp",
            "is_required":  true,
            "is_known":  true
        },
        "31":  {
            "name":  "amp",
            "is_required":  false,
            "is_known":  true
        },
        "45":  {
            "name":  "explicit-commitment-type",
            "is_required":  false,
            "is_known":  true
        },
        "47":  {
            "name":  "scid-alias",
            "is_required":  false,
            "is_known":  true
        },
        "51":  {
            "name":  "zero-conf",
            "is_required":  false,
            "is_known":  true
        },
        "55":  {
            "name":  "keysend",
            "is_required":  false,
            "is_known":  true
        },
        "181":  {
            "name":  "simple-taproot-chans-x",
            "is_required":  false,
            "is_known":  true
        },
        "2023":  {
            "name":  "script-enforced-lease",
            "is_required":  false,
            "is_known":  true
        },
        "2025":  {
            "name":  "taproot-overlay-chans",
            "is_required":  false,
            "is_known":  true
        }
    },
    "require_htlc_interceptor":  false,
    "store_final_htlc_resolutions":  false
}

uname -mrsv
Linux 6.8.0-1017-aws #18~22.04.1-Ubuntu SMP Thu Oct  3 19:57:42 UTC 2024 x86_64

bitcoind --version || btcd --version
Bitcoin Core version v23.0.0

litcli --v
litcli version 0.14.0-alpha.rc2 commit=v0.14.0-alpha.rc2

Steps to reproduce

Firing the following fundchannel command gives us

67503f3564b2:/src# litcli ln fundchannel --node_key 036280ce2a8346991c39fd616d2c8693017f073709f38f3c5eaa39891e40cb2ab9 --sat_per_vbyte 15 --asset_amount 1000000000 --asset_id d75dae162be7cd0a2df76831ee1cce4eaeb74a32fabb0d46be7a0ad70fd6ad27

Expected behavior

A successful fund channel and publishing of onchain tx

Actual behavior

Failing with message payload error, attaching the output and command here

Output

[litcli] error funding channel: rpc error: code = Unknown desc = error funding channel: unable to send input ownership proofs: unable to send proof to peer: rpc error: code = Unknown desc = message payload is too large - encoded 66255 bytes, but maximum message payload is 65533 bytes

Logs

1cce4eaeb74a32fabb0d46be7a0ad70fd6ad27, min_amt=1000000000: [7112d8bf810534055414f8f5d0826f364a3f4b18a0abc700e0520a328daf60c8:1 a21802da9c47fe184b57b230086cb436bdf7ff5692fbb72cf703dc5854481c85:1 45cf662142997dfb5e4b9d9a8bd692c71362443f91e5e8f26107ba3b788bd210:0 c833cce88829e3010b39a3a2b8f97beb1f7b213698c4447bce9d99e374bd83e5:0 ce3ab677a419e40558d095faf7165ba143467c1dc5691632ad511224473eabc9:1 1390353e08f27b62ae3393e18136de458ba5be6aacabf0c7817e7d156c7c7089:1 4bfdf27703989d1ac9ab085c7eb6e56f418e37d635e04e13804411d76d00598a:1]
2024-12-12 09:55:25.124 [INF] FRTR: Selected 1 asset inputs for send of 1000000000 to d75dae162be7cd0a2df76831ee1cce4eaeb74a32fabb0d46be7a0ad70fd6ad27
2024-12-12 09:55:25.163 [DBG] TAPD: Deriving new key for fam_family=212
2024-12-12 09:55:25.163 [DBG] RPCS: [/walletrpc.WalletKit/DeriveNextKey] requested
2024-12-12 09:55:25.195 [INF] TCHN: Generating input ownership proofs for 1 inputs
2024-12-12 09:55:25.195 [INF] FRTR: Generating ownership proof for asset d75dae162be7cd0a2df76831ee1cce4eaeb74a32fabb0d46be7a0ad70fd6ad27
2024-12-12 09:55:25.196 [DBG] RPCS: [/signrpc.Signer/SignOutputRaw] requested
2024-12-12 09:55:25.196 [DBG] SGNR: Generating sigs for 1 inputs:
2024-12-12 09:55:25.202 [DBG] RPCS: [/lnrpc.Lightning/SendCustomMessage] requested
2024-12-12 09:55:25.203 [INF] PEER: Peer(036280ce2a8346991c39fd616d2c8693017f073709f38f3c5eaa39891e40cb2ab9): disconnecting 036280ce2a8346991c39fd616d2c8693017f073709f38f3c5eaa39891e40cb2ab9@3.208.164.212:8736, reason: unable to write message: message payload is too large - encoded 66255 bytes, but maximum message payload is 65533 bytes
2024-12-12 09:55:25.203 [INF] PEER: Peer(036280ce2a8346991c39fd616d2c8693017f073709f38f3c5eaa39891e40cb2ab9): unable to read message from peer: read next header: read tcp 172.18.0.2:51078->3.208.164.212:8736: use of closed network connection
2024-12-12 09:55:25.203 [ERR] RPCS: [/lnrpc.Lightning/SendCustomMessage]: message payload is too large - encoded 66255 bytes, but maximum message payload is 65533 bytes
2024-12-12 09:55:25.203 [DBG] TCHN: unlocking asset inputs: ([]wire.OutPoint) (len=1 cap=1) {
  (wire.OutPoint) 4bfdf27703989d1ac9ab085c7eb6e56f418e37d635e04e13804411d76d00598a:1
}

2024-12-12 09:55:25.237 [ERR] TCHN: unable to send input ownership proofs: unable to send proof to peer: rpc error: code = Unknown desc = message payload is too large - encoded 66255 bytes, but maximum messagepayload is 65533 bytes
2024-12-12 09:55:25.237 [ERR] RPCS: [/tapchannelrpc.TaprootAssetChannels/FundChannel]: error funding channel: unable to send input ownership proofs: unable to send proof to peer: rpc error: code = Unknown desc= message payload is too large - encoded 66255 bytes, but maximum message payload is 65533 bytes
2024-12-12 09:55:25.303 [DBG] SRVR: Peer 036280ce2a8346991c39fd616d2c8693017f073709f38f3c5eaa39891e40cb2ab9@3.208.164.212:8736 has been disconnected
2024-12-12 09:55:25.303 [DBG] FNDG: Cancelling all reservations for peer 036280ce2a8346991c39fd616d2c8693017f073709f38f3c5eaa39891e40cb2ab9
2024-12-12 09:55:25.303 [DBG] FNDG: No active reservations for node: 036280ce2a8346991c39fd616d2c8693017f073709f38f3c5eaa39891e40cb2ab9
2024-12-12 09:55:25.303 [INF] DISC: Removing GossipSyncer for peer=036280ce2a8346991c39fd616d2c8693017f073709f38f3c5eaa39891e40cb2ab9
2024-12-12 09:55:25.303 [INF] HSWC: ChannelLink(0216b4a152ae06e87daaa323549e64222b474707cf65839eae40a7ab4478bf67:0): stopping
2024-12-12 09:55:25.303 [INF] HSWC: ChannelLink(0216b4a152ae06e87daaa323549e64222b474707cf65839eae40a7ab4478bf67:0): exited
2024-12-12 09:55:25.303 [INF] HSWC: Removing channel link with ChannelID(67bf7844aba740ae9e8365cf0747472b22649e5423a3aa7de806ae52a1b41602)
2024-12-12 09:55:25.303 [DBG] SRVR: Notifying that peer 036280ce2a8346991c39fd616d2c8693017f073709f38f3c5eaa39891e40cb2ab9@3.208.164.212:8736 is offline
2024-12-12 09:55:25.303 [DBG] SRVR: removing peer 036280ce2a8346991c39fd616d2c8693017f073709f38f3c5eaa39891e40cb2ab9@3.208.164.212:8736
2024-12-12 09:55:25.303 [DBG] PRNF: PeerNotifier notifying peer: 036280ce2a8346991c39fd616d2c8693017f073709f38f3c5eaa39891e40cb2ab9 offline
2024-12-12 09:55:25.303 [DBG] SRVR: Scheduling connection re-establishment to persistent peer 036280ce2a8346991c39fd616d2c8693017f073709f38f3c5eaa39891e40cb2ab9 in 9.261s
2024-12-12 09:55:25.827 [DBG] RPCS: [/lnrpc.Lightning/ListPeers] requested
2024-12-12 09:55:25.828 [DBG] RPCS: [listpeers] yielded [03421a7f5cd783dd1132d96a64b2fe3f340b80ae42a098969aaf184b183aafb10d@44.196.30.230:9735 031e47777e35627e1018bc886ee24f81633a54527cfce24df0183a8fee7b3a24ef@108.225.35.253:9735] peers
2024-12-12 09:55:25.839 [DBG] RPCS: [/lnrpc.Lightning/ListChannels] requested
2024-12-12 09:55:25.840 [DBG] RPCS: [listchannels] fetched 1 channels from DB
2024-12-12 09:55:25.847 [DBG] RPCS: [/lnrpc.Lightning/GetInfo] requested
2024-12-12 09:55:25.861 [DBG] RPCS: [/lnrpc.Lightning/GetChanInfo] requested
2024-12-12 09:55:25.871 [DBG] RPCS: [/lnrpc.Lightning/ListInvoices] requested
2024-12-12 09:55:25.873 [DBG] RPCS: [/lnrpc.Lightning/GetInfo] requested
2024-12-12 09:55:25.880 [DBG] RPCS: [/lnrpc.Lightning/ListPayments] requested
2024-12-12 09:55:25.882 [DBG] RPCS: [/lnrpc.Lightning/ForwardingHistory] requested
2024-12-12 09:55:25.885 [DBG] RPCS: [/lnrpc.Lightning/GetTransactions] requested
2024-12-12 09:55:25.887 [DBG] RPCS: [/lnrpc.Lightning/ClosedChannels] requested
@Roasbeef
Copy link
Member

Thanks for this report! I know exactly what's going on here. The fix will be able to be applied directly to the nodes once we get out rc3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: ✅ Done
Development

Successfully merging a pull request may close this issue.

3 participants