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

ldk: faile to find a path to pay an invoice #103

Closed
vincenzopalazzo opened this issue Aug 22, 2023 · 0 comments · Fixed by #189
Closed

ldk: faile to find a path to pay an invoice #103

vincenzopalazzo opened this issue Aug 22, 2023 · 0 comments · Fixed by #189
Labels
🦀 - rust Rust related things P-waiting Waiting for the issue triage

Comments

@vincenzopalazzo
Copy link
Owner

2023-08-22T23:19:35.830Z DEBUG ldk lightning::routing::router:1562 TRACE Searching for a route from payer 0223381502b3139bba27a697e0b11134082f7cce0e22640c29aedd39c20e430890 to payee node id 026b92e6cc3e0f24b42494672ecf65f3d147b9deb95186bf024da7a7745008ee75 with MPP and 1 first hops overriding the network graph
2023-08-22T23:19:35.830Z DEBUG ldk lightning::routing::router:1649 TRACE Building path from payee node id 026b92e6cc3e0f24b42494672ecf65f3d147b9deb95186bf024da7a7745008ee75 to payer 0223381502b3139bba27a697e0b11134082f7cce0e22640c29aedd39c20e430890 for value 50000 msat.
2023-08-22T23:19:35.830Z DEBUG ldk lightning::routing::router:1995 TRACE Added direct route to payee via first hop with SCID 172971870746968065
2023-08-22T23:19:35.830Z DEBUG ldk lightning::routing::router:2176 TRACE Starting main path collection loop with 1 nodes pre-filled from first/last hops.
2023-08-22T23:19:35.830Z DEBUG ldk lightning::routing::router:2249 TRACE Found a path back to us from the target with 1 hops contributing up to 50000 msat: 
 [
    PathBuildingHop {
        node_id: NodeId(026b92e6cc3e0f24b42494672ecf65f3d147b9deb95186bf024da7a7745008ee75),
        short_channel_id: Some(
            172971870746968065,
        ),
        total_fee_msat: 0,
        next_hops_fee_msat: 0,
        hop_use_fee_msat: 0,
        total_fee_msat - (next_hops_fee_msat + hop_use_fee_msat): 0,
        path_penalty_msat: 500,
        path_htlc_minimum_msat: 0,
        cltv_expiry_delta: 0,
    },
]
2023-08-22T23:19:35.830Z DEBUG ldk lightning::routing::router:2296 TRACE Disabling route candidate first hop with SCID 172971870746968065 for future path building iterations to
						avoid duplicates.
2023-08-22T23:19:35.830Z DEBUG ldk lightning::routing::router:2356 TRACE Collected exactly our payment amount on the first pass, without hitting an htlc_minimum_msat limit, exiting.
2023-08-22T23:19:35.831Z INFO ldk lightning::routing::router:2495 INFO Got route: path 0:
 node_id: 026b92e6cc3e0f24b42494672ecf65f3d147b9deb95186bf024da7a7745008ee75, short_channel_id: 172971870746968065, fee_msat: 50000, cltv_expiry_delta: 10
 blinded_tail: None

2023-08-22T23:19:35.831Z DEBUG ldk lightning::ln::channelmanager:3185 TRACE Attempting to send payment for path with next hop 172971870746968065
2023-08-22T23:19:35.832Z DEBUG bitcoincore_rpc JSON-RPC request: estimatesmartfee [6]
2023-08-22T23:19:35.834Z TRACE bitcoincore_rpc JSON-RPC response for estimatesmartfee: {"feerate":0.00001000,"blocks":6}
2023-08-22T23:19:35.834Z DEBUG ldk lightning::ln::channel:5162 DEBUG Pushing new outbound HTLC for 50000 msat to peer
2023-08-22T23:19:35.834Z DEBUG ldk lightning::ln::channel:5209 TRACE Updating HTLC state for a newly-sent commitment_signed...
2023-08-22T23:19:35.835Z DEBUG ldk lightning::ln::channel:1231 TRACE Building commitment transaction number 281474976710654 (really 1 xor 48482926633948) for channel d8d2dd33c12e4f88ac36842329714c490f13e020fb54bb1f9f498122b6a000e6 for remote, generated by us with fee 1004...
2023-08-22T23:19:35.835Z DEBUG ldk lightning::ln::channel:1332 TRACE    ...including outbound LocalAnnounced dust HTLC 0 (hash 10a2dcb98ace7fb8f33b39cf6d572797ae762cc8e4eeb82c5aee38c5e6bdd9ad) with value 50000
2023-08-22T23:19:35.835Z DEBUG ldk lightning::ln::channel:1397 TRACE    ...including to_local output with value 399224
2023-08-22T23:19:35.835Z ERROR ldk lightning::chain::chainmonitor:694 ERROR Failed to update channel monitor: no such monitor registered
2023-08-22T23:19:35.835Z ERROR ldk lightning::ln::channelmanager:3221 ERROR Closing channel d8d2dd33c12e4f88ac36842329714c490f13e020fb54bb1f9f498122b6a000e6 due to monitor update ChannelMonitorUpdateStatus::PermanentFailure
2023-08-22T23:19:35.835Z DEBUG ldk lightning::ln::channelmanager:3108 TRACE Attempting to generate broadcast channel update for channel d8d2dd33c12e4f88ac36842329714c490f13e020fb54bb1f9f498122b6a000e6
2023-08-22T23:19:35.835Z DEBUG ldk lightning::ln::channelmanager:3124 TRACE Attempting to generate channel update for channel d8d2dd33c12e4f88ac36842329714c490f13e020fb54bb1f9f498122b6a000e6
2023-08-22T23:19:35.835Z DEBUG ldk lightning::ln::channelmanager:3134 TRACE Generating channel update for channel d8d2dd33c12e4f88ac36842329714c490f13e020fb54bb1f9f498122b6a000e6
2023-08-22T23:19:35.836Z DEBUG ldk lightning::ln::channelmanager:2560 DEBUG Finishing force-closure of channel with 0 HTLCs to fail
2023-08-22T23:19:35.836Z ERROR ldk lightning::chain::chainmonitor:694 ERROR Failed to update channel monitor: no such monitor registered
2023-08-22T23:19:35.836Z ERROR ldk lightning::ln::channelmanager:3247 ERROR ChannelMonitor storage failure
2023-08-22T23:19:35.836Z INFO ldk lightning::ln::outbound_payment:742 INFO Result sending payment with id 10a2dcb98ace7fb8f33b39cf6d572797ae762cc8e4eeb82c5aee38c5e6bdd9ad: Err(AllFailedResendSafe([Channel unavailable: ChannelMonitor storage failure]))
2023-08-22T23:19:35.836Z ERROR ldk lightning::ln::outbound_payment:926 ERROR Failed to send along path due to error: Channel unavailable: ChannelMonitor storage failure
2023-08-22T23:19:35.836Z DEBUG ldk lightning::routing::router:1562 TRACE Searching for a route from payer 0223381502b3139bba27a697e0b11134082f7cce0e22640c29aedd39c20e430890 to payee node id 026b92e6cc3e0f24b42494672ecf65f3d147b9deb95186bf024da7a7745008ee75 with MPP and 1 first hops overriding the network graph
2023-08-22T23:19:35.836Z DEBUG ldk lightning::routing::router:1649 TRACE Building path from payee node id 026b92e6cc3e0f24b42494672ecf65f3d147b9deb95186bf024da7a7745008ee75 to payer 0223381502b3139bba27a697e0b11134082f7cce0e22640c29aedd39c20e430890 for value 50000 msat.
2023-08-22T23:19:35.836Z DEBUG ldk lightning::routing::router:1993 TRACE Ignoring first hop with SCID 172971870746968065 due to a failed previous payment attempt.
2023-08-22T23:19:35.836Z DEBUG ldk lightning::routing::router:1995 TRACE Skipped direct route to payee via first hop with SCID 172971870746968065
2023-08-22T23:19:35.836Z DEBUG ldk lightning::routing::router:2009 TRACE Ignoring first hop with SCID 172971870746968065 due to a failed previous payment attempt.
2023-08-22T23:19:35.836Z DEBUG ldk lightning::routing::router:2120 TRACE Ignoring first hop with SCID 172971870746968065 due to a failed previous payment attempt.
2023-08-22T23:19:35.836Z DEBUG ldk lightning::routing::router:2176 TRACE Starting main path collection loop with 0 nodes pre-filled from first/last hops.
2023-08-22T23:19:35.836Z DEBUG ldk lightning::routing::router:1993 TRACE Ignoring first hop with SCID 172971870746968065 due to a failed previous payment attempt.
2023-08-22T23:19:35.836Z DEBUG ldk lightning::routing::router:1995 TRACE Skipped direct route to payee via first hop with SCID 172971870746968065
2023-08-22T23:19:35.836Z DEBUG ldk lightning::routing::router:2009 TRACE Ignoring first hop with SCID 172971870746968065 due to a failed previous payment attempt.
2023-08-22T23:19:35.836Z DEBUG ldk lightning::routing::router:2120 TRACE Ignoring first hop with SCID 172971870746968065 due to a failed previous payment attempt.
2023-08-22T23:19:35.836Z DEBUG ldk lightning::routing::router:2176 TRACE Starting main path collection loop with 0 nodes pre-filled from first/last hops.
2023-08-22T23:19:35.836Z DEBUG ldk lightning::routing::router:2346 TRACE Have now collected 0 msat (seeking 150000 msat) in paths. Last path loop did not find a new path.
2023-08-22T23:19:35.836Z DEBUG ldk lightning::routing::router:2367 TRACE Ignored 0 candidate hops due to insufficient value contribution, 0 due to path length limit, 0 due to CLTV delta limit, 8 due to previous payment failure. Total: 8 ignored candidates.
2023-08-22T23:19:35.837Z ERROR ldk lightning::ln::outbound_payment:778 ERROR Failed to find a route on retry, abandoning payment 10a2dcb98ace7fb8f33b39cf6d572797ae762cc8e4eeb82c5aee38c5e6bdd9ad: LightningError {
    err: "Failed to find a path to the given destination",
    action: IgnoreError,
}
@vincenzopalazzo vincenzopalazzo added P-waiting Waiting for the issue triage 🦀 - rust Rust related things labels Aug 22, 2023
vincenzopalazzo added a commit that referenced this issue Mar 6, 2024
Link: #103
Signed-off-by: Vincenzo Palazzo <[email protected]>
vincenzopalazzo added a commit that referenced this issue Mar 6, 2024
Link: #103
Signed-off-by: Vincenzo Palazzo <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🦀 - rust Rust related things P-waiting Waiting for the issue triage
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant