question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"No path found" error gets stuck after the offline destination comes online

See original GitHub issue

This is about Lightning payments with gossip enabled and no trampoline routing. Testing the following case on 4.1.2:

  • On testnet, run two instances of Electrum with different wallets, let’s call them Alice and Bob for conformity.
  • They both open channels to some random nodes and have incoming liquidity, payments between them work fine.
  • Alice wants to pay Bob
  • Bob creates an invoice and sends it to Alice
  • For whatever reason Bob goes offline (we close the wallet B)
  • Alice pays the invoice but the process fails with “No path found”, which is fully expected and fine.
  • Bob goes back online (we open the wallet B again) and notifies Alice.
  • Alice clicks Retry on the payment.
  • However, Electrum clearly doesn’t even try to find a path instantly returning the “No path found” error. At the same time, status of the payment changes from Failed to Expires in about 24 hours which is also confusing. The Log menu item also disappears.
  • Alice restarts her Electrum (here you need to fully restart Electrum, not just close one of the wallets), waits until gossip is fully synchronized (important!) and chooses Pay... in the failed payment’s context menu.
  • The payment should complete fine.

This error seems to be pretty sticky. If you only reopen the wallet without exiting Electrum (in case you run both Bob and Alice on the same machine) it doesn’t go away and instantly says “Path not found”. If you don’t wait until gossip is downloaded and try to pay you’ll get the same error, and it won’t go away even after gossip is synchronized. So Electrum needs to be restarted fully again.

It seems that when using trampoline all of this above doesn’t apply. As soon as the other node goes online it can be paid with a simple retry.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
rkfgcommented, May 11, 2021

Yes, sorry. Just checked with master and indeed clearing the blacklist helped to resolve it. I suppose it should be done automatically if the user retries a failed payment, also the Failed status shouldn’t disappear like that together with the log.

1reaction
bitromortaccommented, May 11, 2021

Thanks for the report. What’s the onion error you get back in the log for the last hop? This behavior is probably because the onion error handling blacklists the receiving channel and the blacklist gets reset after restarting. Could you try clear_ln_blacklist() in the console? There is some work going on in this area right now and we could exempt the last part of the route from getting blacklisted somehow.

Read more comments on GitHub >

github_iconTop Results From Across the Web

USMT common issues - Windows Client | Microsoft Learn
Cause: The computer name was changed during an offline migration of a local user profile.
Read more >
Enable or Disable Offline Files in Windows 10 | Use it Correctly
By default, the network folders online-only are empty, with no files, if your computer is not connected to the network drive. Offline Files....
Read more >
Konica Minolta Printer Errors - common codes and messages
Here you'll find a list of the most common Konica printer errors and proven quick fix solutions: Konica Minolta Error “Printer is offline”...
Read more >
CUPS/Troubleshooting - ArchWiki
If all jobs sent to the printer become "stopped", first check the error log at /var/log/cups/error_log . If it does not yield any...
Read more >
Unable to restore - Code42 Support
If you receive a message that the destination is offline when trying to restore from a cloud destination, such as CrashPlan Central, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found