LND Rest connection refused to a remote BTCPayServer #8807
Unanswered
dme1sc
asked this question in
Troubleshooting
Replies: 2 comments 1 reply
-
What's your |
Beta Was this translation helpful? Give feedback.
0 replies
-
yes, confirmed that it is 8080. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have LND on a start9 personal server. I have a BTCPayServer on a remote hosted clearnet server.
I'm trying to connect btcpay to LND using the lnd-rest connection.
BTCPay has the connection built as
type=lnd-rest;server=http://address.onion:8080;macaroon=XXXXXXhexidecimalformat;allowinsecure=true;
If I do it this way, I get:
The lightning node did not reply in a timely manner.
The LND logs show:
[ERR] CMGR: Can't accept connection: unable to accept connection from x.x.x.x:51540: read tcp x.x.x.y:9735->x.x.x.x:51540: i/o timeout
If I change the onion address to an https clearnet domain name with a reverse proxy in this format:
type=lnd-rest;server=https://address.com:8080;macaroon=XXXXXXhexidecimalformat;
I get:
Error while connecting to the API: Connection refused (lnd.domainname.com:8080) (Connection refused)
I found that my reverse proxy was forwarding to port 80, I switched to 8080 in the proxy, and also removed 8080 from the URL:
type=lnd-rest;server=https://address.com;macaroon=XXXXXXhexidecimalformat;
and now just get a timeout consistently with The lightning node did not reply in a timely manner.
If I put the 8080 back in the URL I get:
Error while connecting to the API: Connection refused (lnd.domainname.com:8080) (Connection refused)
But if I test the onion address to 8080 (http://address.onion:8080), I get a JSON page.
It seems my reverse proxy is misconfigured but I'm not sure what else to check as the reverse proxy in this format works for other services.
Beta Was this translation helpful? Give feedback.
All reactions