Skip to content

pay: most payments fail #6793

@kilrau

Description

@kilrau

Issue and Steps to Reproduce

Most payments (as small as 10000 sats) we are trying to send via CLN's pay gRPC are failing with Reason: Ran out of routes to try after 18 attempts: see paystatus which is why we are not using CLN for sending payments in production right now, only receiving. Only opening this issue now because we wanted to make sure it's not sth incredibly stupid on our side. Couldn't find anything obvious.

Observations:

  • Quite often we see a large amount of mpp shards (like 15) where 1 or 2 fail that make the entire payment fail. This is the most evident thing we are observing - why so many shards?
  • Via gRPC CLN gives up trying very fast. Like within seconds.
  • The number of attempts sending the same amount to the same destination varies greatly:
PaymentPending
PaymentFailed

Reason: Ran out of routes to try after 48 attempts: see `paystatus`
---
PaymentPending
PaymentFailed
Reason: Ran out of routes to try after 61 attempts: see `paystatus`
---
PaymentPending
PaymentFailed
Reason: Ran out of routes to try after 18 attempts: see `paystatus`
  • Smaller manual payments via lightning-cli sometimes work fine, whereas they mostly fail on gRPC (just a hunch)
  • Not all gRPC payments fail, some go through, but it's sth like >90% failure rate
  • Routing and all other things work fine
  • Our CLN node definitely is large and well connected enough by now to reliably send the payments we are trying to send
  • Nothing helpful in the logs

We are absolutely clueless on what's going on and if it's simply the amount of mpp shards that make things fail. Any hints appreciated.

getinfo output

{
   "id": "02d96eadea3d780104449aca5c93461ce67c1564e2e1d73225fa67dd3b997a6018",
   "alias": "Boltz|CLN",
   "color": "ff9800",
   "num_peers": 88,
   "num_pending_channels": 0,
   "num_active_channels": 80,
   "num_inactive_channels": 1,
   "address": [
      {
         "type": "ipv4",
         "address": "45.86.229.190",
         "port": 9736
      },
      {
         "type": "ipv6",
         "address": "2a10:1fc0:3::270:a9dc",
         "port": 9736
      },
      {
         "type": "torv3",
         "address": "oo5tkbbpgnqjopdjxepyfavx3yemtylgzul67s7zzzxfeeqpde6yr7yd.onion",
         "port": 9736
      }
   ],
   "binding": [
      {
         "type": "ipv4",
         "address": "0.0.0.0",
         "port": 9736
      },
      {
         "type": "ipv6",
         "address": "::1",
         "port": 9736
      }
   ],
   "version": "v23.08.1",
   "blockheight": 812772,
   "network": "bitcoin",
   "fees_collected_msat": 80795360,
   "lightning-dir": "/home/bitcoin/.lightning/bitcoin",
   "our_features": {
      "init": "08a0000a8a69a2",
      "node": "88a0000a8a69a2",
      "channel": "",
      "invoice": "02000002024100"
   }
}

https://amboss.space/node/02d96eadea3d780104449aca5c93461ce67c1564e2e1d73225fa67dd3b997a6018

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions