ElementsProject / lightning

Core Lightning — Lightning Network implementation focusing on spec compliance and performance
Other
2.87k stars 906 forks source link

"Destination ... is not reachable directly and all routehints were unusable." error message #6103

Open Kruwed opened 1 year ago

Kruwed commented 1 year ago

Issue and Steps to Reproduce

I get a "Destination ... is not reachable directly and all routehints were unusable." error message when paying any amount (as low as 1 sat) to any destination (no matter how well connected the destination is). I have a single channel to a big node with +1m outbound -500k inbound liquidity. I can still receive payments with no issue.

The very first payment I made with the channel succeeded however, but it's likely a strange exception. This exception may be useful to finding and fixing the bug though, so I will describe the circumstances:

-When setting up CLN on my BTCPay Server, my goal was to shift inbound liquidity I had already accumulated in private channels on my mobile phone's Blixt wallet to my server running the routing node. I can do this by opening channels on BTCPay, sending Lightning payments to my phone, closing my phone's channels once refilled, and sending the coins on chain back to my BTCPay server to repeat the process. -I opened one channel to Blixt's node, which is a common peer I shared with my Blixt wallet on my mobile phone. I sent 500k sats to my phone, which succeeded on the first try. After closing this channel on my phone, any additional payments from sent from my server to my phone failed.

getinfo output

(I don't know how to do this from my BTCPay Server)

Kruwed commented 1 year ago

I have not successfully sent a second payment for an entire week. I opened a second channel to attempt to reproduce the situation that allowed for the only payment I succeeded with to work. After opening a new channel to a peer that has its own direct channel with the payment recipient (my mobile wallet), I was able to send some funds using the new channel.

EricPgh commented 9 months ago

I get this error too. I haven't been able to complete any payments. I funded a channel onchain and am trying to send portions to my strike account. I have a large capacity channel open with their public strike node and the final destination of the invoice is a zaphq node. getroute shows a route available when within the max and min msats. Where in the source is this error generated that I can read the boolean conditions causing it?