Bitcoin Forum

Bitcoin => Wallet software => Topic started by: NotATether on February 23, 2024, 07:13:20 AM



Title: [SOLVED] Cannot send sats from my LN node (lnd)
Post by: NotATether on February 23, 2024, 07:13:20 AM
Hi guys, I've started trying out Lightning a few months ago and I am able to receive sats just fine. However, I am having an issue with sending sats to any LNURL, because it keeps failing with "insufficient_balance".

Currently my node has 4300 sats. But even micropayments of 100 sats fail with this error.

I have one channel open to Voltage.cloud, which you can see in my Thunderhub control panel:

https://www.talkimg.com/images/2024/02/23/YjTvj.png

I also have an LNbits control panel that shows largely the same thing as this. And a macaroon that is capable with interfacing with the LND node itself.

I went to Amboss.space to see if I could buy some additional channels, but all of them have a "min size" of 0.0005BTC or more so I was turned off by that.

What should I do?


Title: Re: Cannot send sats from my LN node (lnd)
Post by: Mia Chloe on February 23, 2024, 07:25:37 AM
Check if your funds are tied up in outbound channels. Most times it's difficult to route payments if you have insufficient inbound funds. Also check if the the provider you are using supports that channel. If not try reestablishing your connection.


Title: Re: Cannot send sats from my LN node (lnd)
Post by: nc50lc on February 23, 2024, 08:09:57 AM
I have one channel open to Voltage.cloud, which you can see in my Thunderhub control panel:
I don't use Thunderhub but if you can find an option to check your channel's "local reserve", see if it's almost as much as your local balance.
If yes, that's what causing it to be short on available balance since it needs to keep that amount for future on-chain fees.


Title: Re: Cannot send sats from my LN node (lnd)
Post by: NotATether on February 23, 2024, 12:14:51 PM
Check if your funds are tied up in outbound channels. Most times it's difficult to route payments if you have insufficient inbound funds.

How do I do that?

I've received the balance in one transaction, and that slider on the right says 4300 on my side vs (5m - 4300) on the other channel's side.

Also check if the the provider you are using supports that channel. If not try reestablishing your connection.

That channel was automatically opened by Voltage themselves who are also hosting my node.

I don't use Thunderhub but if you can find an option to check your channel's "local reserve", see if it's almost as much as your local balance.
If yes, that's what causing it to be short on available balance since it needs to keep that amount for future on-chain fees.

I can't seem to find it but I do find a section for "Local balance" which is 4306 sats and "Remote balance" is 492,224 for the 500,000 sat channel.

LNbits shows I have 0 sats, maybe that is related.


Title: Re: Cannot send sats from my LN node (lnd)
Post by: DaveF on February 23, 2024, 01:05:42 PM
Check if your funds are tied up in outbound channels. Most times it's difficult to route payments if you have insufficient inbound funds.

How do I do that?

I've received the balance in one transaction, and that slider on the right says 4300 on my side vs (5m - 4300) on the other channel's side.

Also check if the the provider you are using supports that channel. If not try reestablishing your connection.

That channel was automatically opened by Voltage themselves who are also hosting my node.

I don't use Thunderhub but if you can find an option to check your channel's "local reserve", see if it's almost as much as your local balance.
If yes, that's what causing it to be short on available balance since it needs to keep that amount for future on-chain fees.

I can't seem to find it but I do find a section for "Local balance" which is 4306 sats and "Remote balance" is 492,224 for the 500,000 sat channel.

LNbits shows I have 0 sats, maybe that is related.

I am mobile at the moment so can't do a good cut & paste, but google 'lightning network channel reserve'. More or less you keep 1% or so of your balance in a reserve that cannot be spent. If both parties trust each other when you setup the channel it's not needed, but for the most part opening up with an unknown peer LN will automatically have that.

So you might have funds there but you can't spend them.

-Dave


Title: Re: Cannot send sats from my LN node (lnd)
Post by: NotATether on February 23, 2024, 01:42:49 PM
I am mobile at the moment so can't do a good cut & paste, but google 'lightning network channel reserve'. More or less you keep 1% or so of your balance in a reserve that cannot be spent. If both parties trust each other when you setup the channel it's not needed, but for the most part opening up with an unknown peer LN will automatically have that.

So you might have funds there but you can't spend them.

-Dave

What does that mean?

Is the 1% in relation to the 500k sats channel capacity (= 5000 sats)? Otherwise this makes no sense.

I'll probably try to send more sats to the wallet to reach that threshold and then try to make the transaction again.

But if this is the case, how is someone supposed to "exit" the LN in terms of swapping all the LNBTC out for real BTC?


Title: Re: Cannot send sats from my LN node (lnd)
Post by: DaveF on February 23, 2024, 05:42:03 PM
I am mobile at the moment so can't do a good cut & paste, but google 'lightning network channel reserve'. More or less you keep 1% or so of your balance in a reserve that cannot be spent. If both parties trust each other when you setup the channel it's not needed, but for the most part opening up with an unknown peer LN will automatically have that.

So you might have funds there but you can't spend them.

-Dave

What does that mean?

Is the 1% in relation to the 500k sats channel capacity (= 5000 sats)? Otherwise this makes no sense.

I'll probably try to send more sats to the wallet to reach that threshold and then try to make the transaction again.

But if this is the case, how is someone supposed to "exit" the LN in terms of swapping all the LNBTC out for real BTC?

https://bitcoin.design/guide/how-it-works/liquidity/#channel-reserve

So long as a channel is open you should, unless you agreed with the other party, to keep 1% (default can be changed) sitting in there no matter what.

When you close the channel, you close it and all the funds go back on-chain to you you.

Now, and here is where it gets fun, either side when opening the channel can request different percentages. It's not hidden, but the same way you and I can agree to have 0% reserve. You and Bob who don't trust each other at all can have a 5% reserve.

-Dave


Title: Re: Cannot send sats from my LN node (lnd)
Post by: nc50lc on February 24, 2024, 06:21:51 AM
-snip-
I can't seem to find it but I do find a section for "Local balance" which is 4306 sats and "Remote balance" is 492,224 for the 500,000 sat channel.

LNbits shows I have 0 sats, maybe that is related.
Most of the time, it's automatically discounted from your spendable amount so since LNbits shows '0', your local reserve must be higher than your local balance.

Is the 1% in relation to the 500k sats channel capacity (= 5000 sats)? Otherwise this makes no sense.
Upon checking my channels in Electrum, that is actually the case.
So your local reserve and the remote node's reserve should be 5000sats both by default.


Title: Re: Cannot send sats from my LN node (lnd)
Post by: DaveF on February 24, 2024, 12:31:38 PM
@NotATether either post or PM me a LN invoice and I'll send you some sats you can then see if you can see if the balance changes as expected. I'm out taking care of stuff most of the day today but I should be able to check in now and then, if not tomorrow morning.

Also from the too lazy to look department, are you on clearnet or tor or both?
And I don't know if you posted it, but is this your node?

03e2b8f741b13d0746816a2a609032e4da6729347835e574d9407b7dd183face65@62hauxwzb43piimc3biqu3ggihbrja5dvx44myso54yg2zudlpcdvlqd.onion:9735

-Dave


Title: Re: Cannot send sats from my LN node (lnd)
Post by: NotATether on February 24, 2024, 01:38:17 PM
@NotATether either post or PM me a LN invoice and I'll send you some sats you can then see if you can see if the balance changes as expected. I'm out taking care of stuff most of the day today but I should be able to check in now and then, if not tomorrow morning.

Also from the too lazy to look department, are you on clearnet or tor or both?
And I don't know if you posted it, but is this your node?

03e2b8f741b13d0746816a2a609032e4da6729347835e574d9407b7dd183face65@62hauxwzb43piimc3biqu3ggihbrja5dvx44myso54yg2zudlpcdvlqd.onion:9735

-Dave

Give me a couple hours to get the info ready.

I'll need to check my dashboard or on LND for my node ID as I haven't taken note of the node details before, to be honest. I'll edit this post with the ID and stuff once I'm done.

Edit: The node ID is:

0e68dab0-dcdf-410e-960f-876ef3ace54bN

Also my channel just got disconnected. I dunno if that's the reason I can't make an LN invoice in LNbits now because it's complaining something about an "expired X.509" certificate.

So maybe we gotta create a test channel too. After I update to the latest LND and restart.


Title: Re: Cannot send sats from my LN node (lnd)
Post by: philipma1957 on February 24, 2024, 03:07:10 PM
I have some popcorn as I want to see this resolve.


I also just use Kraken and Nicehash both allow me to access their LN nodes. which are not as much maintenance for me than my own node.


Title: Re: Cannot send sats from my LN node (lnd)
Post by: DaveF on February 25, 2024, 07:41:25 PM
I see this as being you

https://1ml.com/node/03e2b8f741b13d0746816a2a609032e4da6729347835e574d9407b7dd183face65

Using the channel ID that you have in the image above. It matches the voltage-C2 that you are connected to.
The Wacker one is one I opened to you.

As of this post if you look at the link above both channels are still open.

In thunderhub what happens if you try to create an invoice?

-Dave


Title: Re: Cannot send sats from my LN node (lnd)
Post by: NotATether on March 07, 2024, 07:50:27 AM
I see this as being you

https://1ml.com/node/03e2b8f741b13d0746816a2a609032e4da6729347835e574d9407b7dd183face65

Using the channel ID that you have in the image above. It matches the voltage-C2 that you are connected to.
The Wacker one is one I opened to you.

As of this post if you look at the link above both channels are still open.

In thunderhub what happens if you try to create an invoice?

-Dave


That long hex string matches my node's public key, so yeah it looks like it's mine.

I do see the whacker channel in my dashboard.

I can create an invoice in Thunderhub, and redeem it for withdrawal. I just tried with 500 sats.

Sending sats out of the wallet still doesn't work though. I notice that Thunderhub says my Bitcoin balance is 0 sats (my LN balance is 4.8k sats). Could this mean I need to send onchain bitcoins to my wallet, somehow?



Title: Re: Cannot send sats from my LN node (lnd)
Post by: DaveF on March 07, 2024, 04:06:30 PM
Odd, send me (or post) an invoice that I can pay, and I'll see if I can send to you.
Then you can see if you can send back.

It's a simple 1st step to check.

PM it or post it here.

I usually do this between my own nodes to make sure there is nothing wrong before I start doing more with them.


-Dave


Title: Re: Cannot send sats from my LN node (lnd)
Post by: NotATether on March 11, 2024, 09:29:37 AM
Odd, send me (or post) an invoice that I can pay, and I'll see if I can send to you.
Then you can see if you can send back.

It's a simple 1st step to check.

PM it or post it here.

I usually do this between my own nodes to make sure there is nothing wrong before I start doing more with them.


-Dave

Alright, here is the invoice:

lnbc5u1pj7ank2pp57qa2ep4y75l7sau205gjh0pseamg3lwt606cx0zzymyav9yglfjqdz22djk2gr fvcsx67fqdehkgefqvdskugrjv43k26tkv5sr2vpsypekzarnypn8ymmdypzxzan9gccqzzsxqyz5vq sp5atsrv5gmpp7jv48v6uw6du0m9jcfsn7wyzw8mnsvtafrw4dtx0es9qyyssq5767tk7ha33elhje5 pdq4y5dhxjss3h3pg0qcj5rw4crnxpkpugnsxrx5uwcwkmcesu0cvp72ejxmlwmxj7mkznpyfwjtf86 gzsqz0sq9amkhg

It's for 500 sats.

This will put my balance above 5k sats so if the channel reserve is the problem, I should be able to send at least some of it back.


Title: Re: Cannot send sats from my LN node (lnd)
Post by: DaveF on March 11, 2024, 11:56:28 AM
Paid.
Single hop from my node to yours.


https://talkimg.com/images/2024/03/11/yKqbH.jpeg

This is a repayment for 0 sats TO ME you should be able to add whatever amount you want:

https://talkimg.com/images/2024/03/11/yKxsI.png

If you can't scan the QR:

Code:
lnbc1pj7a6s4pp5s9yuq6tz05324wha0lnx8rn8hx3kk7gdxafmvv73ctc2al8xjjxqdqv23jhxapqxysqcqzzsxqyjw5qsp5gnqsgxpkqqwkl4mgtkvj3qjxyujlfs8aysz23dgsdypjnjza7srs9qyyssq7acrduv9duynhahph2k3cremcjrucf6mr7mkq4p9m7hjpcnfwavs4l59g09rjz778s2f04lcwknq6h9mp8fzs5fnv8fvye4jwmcrdcspl9cl7f

This is a repayment of 200 sats:


https://talkimg.com/images/2024/03/11/yb29d.png

Code:
lnbc2u1pj7a6kcpp5qyl3gm9fnfqj4wuc2ep09u7v32af9vw32k9z0vsgyrr8nreyq4sqdquxgcrqgzng92zq5n9wpshjmt9de6qcqzzsxqyjw5qsp5gp5fhuexjgusvjyf792pewzkv8hyf907wfek4kpt3p9xza9mqh8q9qyyssqmdhmvttgzkjkdxjwa6kr7kfmce7c54f9x7ps0lvpx2ewljzc4g0r3us03srv02nmamxuzr0ytvqep5d8fudj85swfue8lzhvry5d2jqq9pu3nh

And this is another 0 amount so you can add whatever you want to it. It goes to another location that should be able to receive either from you thought me to them or you through voltage
.

https://talkimg.com/images/2024/03/11/ybHyq.png

Code:
lnbc1pj7am5upp5ku9mkkr49ptkcwnjkg03haf3ky48wz80plyjd260d4la2yasss0qdzygf5hgun9ve5kcmpqg3jhqmmnd96zqd34v4jk2efevdjrwwf4vvurgd3ev93kzepevsuqcqzx7xqyz5vqsp535urk6lqwmlysgvktntgclmzfww3elvwsh9qesw3v8epexyfpp8q9qyyssqhq677hec8w52q8tn7m78tslj0xwf5a7wc5we7knctznas03u8mfnd00m67qfta3gxunyutfv2crzfvnnwt7hd6ztadvf3xhv2c3mn8gqq5l0ga

So should be a good test to see that everything works.

-Dave


Title: Re: Cannot send sats from my LN node (lnd)
Post by: NotATether on March 13, 2024, 07:49:45 AM
As usual, I have received this payment but am not able to send anything in return. Not even the zero amount ones. However, now I'm starting to figure out why:

Code:
zenulabidin@destroyer:~/Documents$ lncli --macaroonpath=/tmp/macaroon --rpcserver=zippy-the-pinhead.m.voltageapp.io --tlscertpath='' listunspent
{
        "utxos": []
}
zenulabidin@destroyer:~/Documents$ lncli --macaroonpath=/tmp/macaroon --rpcserver=zippy-the-pinhead.m.voltageapp.io --tlscertpath='' listchaintxns
{
    "transactions": []
}
zenulabidin@destroyer:~/Documents$ lncli --macaroonpath=/tmp/macaroon --rpcserver=zippy-the-pinhead.m.voltageapp.io --tlscertpath='' wallet addresses list
{
    "account_with_addresses": []
}
zenulabidin@destroyer:~/Documents$ lncli --macaroonpath=/tmp/macaroon --rpcserver=zippy-the-pinhead.m.voltageapp.io --tlscertpath='' channelbalance
{
    "balance": "5307",
    "pending_open_balance": "0",
    "local_balance": {
        "sat": "5307",
        "msat": "5307000"
    },
    "remote_balance": {
        "sat": "587753",
        "msat": "587753000"
    },
    "unsettled_local_balance": {
        "sat": "0",
        "msat": "0"
    },
    "unsettled_remote_balance": {
        "sat": "0",
        "msat": "0"
    },
    "pending_open_local_balance": {
        "sat": "0",
        "msat": "0"
    },
    "pending_open_remote_balance": {
        "sat": "0",
        "msat": "0"
    }
}
zenulabidin@destroyer:~/Documents$ lncli --macaroonpath=/tmp/macaroon --rpcserver=zippy-the-pinhead.m.voltageapp.io --tlscertpath='' walletbalance
{
    "total_balance": "0",
    "confirmed_balance": "0",
    "unconfirmed_balance": "0",
    "locked_balance": "0",
    "reserved_balance_anchor_chan": "20000",
    "account_balance": {
        "default": {
            "confirmed_balance": "0",
            "unconfirmed_balance": "0"
        }
    }
}
zenulabidin@destroyer:~/Documents$ lncli --macaroonpath=/tmp/macaroon --rpcserver=zippy-the-pinhead.m.voltageapp.io --tlscertpath='' wallet requiredreserve
{
    "required_reserve": "20000"
}
zenulabidin@destroyer:~/Documents$ lncli --macaroonpath=/tmp/macaroon --rpcserver=zippy-the-pinhead.m.voltageapp.io --tlscertpath='' newaddress p2wkh
{
    "address": "bc1qsa9k6xga5kw2ffyefdnn9eyu0kkn670t3l97q9"
}
zenulabidin@destroyer:~/Documents$ lncli --macaroonpath=/tmp/macaroon --rpcserver=zippy-the-pinhead.m.voltageapp.io --tlscertpath='' wallet addresses list
{
    "account_with_addresses": [
        {
            "name": "default",
            "address_type": "WITNESS_PUBKEY_HASH",
            "derivation_path": "m/84'/0'/0'",
            "addresses": [
                {
                    "address": "bc1qsa9k6xga5kw2ffyefdnn9eyu0kkn670t3l97q9",
                    "is_internal": false,
                    "balance": "0"
                }
            ]
        }
    ]
}

No UTXOs, no transactions, not even any on-chain addresses until I created one. And the reserve is 20k sats. Much higher than what is available in the local balance. Actually, now I'm even seeing two different types of balances - channel balance (of which there is local and remote that we already know) and wallet balance. And the wallet balance is completely empty.

So basically, all I have to do here, is fund the bc1 address to fix this mess, right? I would do it now, but I'm waiting for some advice so I don't burn some BTC by accident.

But then after I do that, how are future LN payments going to affect the wallet (on chain) balance?


Title: Re: Cannot send sats from my LN node (lnd) - Wallet/Channel balances don't match
Post by: nc50lc on March 13, 2024, 08:17:30 AM
You might also need to fulfill the "local_chan_reserve_sat" shown in listchannels command.
Aside from the on-chain "reserved_balance_anchor_chan" of your wallet, your channels must have a local reserve and remote (other party's) reserve.


Title: Re: Cannot send sats from my LN node (lnd) - Wallet/Channel balances don't match
Post by: DaveF on March 13, 2024, 01:31:18 PM
Yes you should have a balance since if you have to close it you need funds to broadcast that transaction.

BUT and I could be 100% wrong here

AFAIK none of that should matter. I have a channel open between the node @NotATether has and mine with an In-Bound liquidity of 500 Sats
Sending 200 of that should not matter since the channel is open and working.

https://www.talkimg.com/images/2024/03/13/J2z2H.png

On that note I am brain fried at the moment due to work things and have not thought this through all the way.

-Dave


Title: Re: Cannot send sats from my LN node (lnd) - Wallet/Channel balances don't match
Post by: NotATether on March 14, 2024, 11:56:16 AM
OK, at this point, it's getting nuts.

Now I have sent an on-chain payment to the bc1q address such that my on-chain balance is about 22k sats. But I still cannot send anything.

Not just my wallet app, but even the lncli `payinvoice` command is failing:

Code:
zenulabidin@destroyer:~/Documents$ lncli --macaroonpath=/tmp/macaroon --rpcserver=zippy-the-pinhead.m.voltageapp.io --tlscertpath='' payinvoice lnbc1u1pjl9c9kpp5t8nfrvflnedazxysn9z2a6h659kekd4mwlpe49mdl7rfkalr8lvqdpuge6kuerfdenjqsz6v4h82mzlg93xjerfdcsx7m3qwd6xzcmtv4ezumn9waescqzzsxqrrs0sp5swya6zr4qn37uvxyfytg53u59eqjqg56r2p4cchxamcgg44dce3q9qyyssquxzs5dsu5fjytnydm2a4yal64lxaat2st88v2rkage7dd9sm4dcxzvjz0urp9jsc3h605s68lg4530twt4xsf4vs0pxkr5yvrh4l99cp8d29da
Payment hash: 59e691b13f9e5bd118909944aeeafaa16d9b36bb77c39a976dff869b77e33fd8
Description: Funding @Zenul_Abidin on stacker.news
Amount (in satoshis): 100
Fee limit (in satoshis): 100
Destination: 03cc1d0932bb99b0697f5b5e5961b83ab7fd66f1efc4c9f5c7bad66c1bcbe78f02
Confirm payment (yes/no): yes
+------------+--------------+--------------+--------------+-----+----------+----------+-------+
| HTLC_STATE | ATTEMPT_TIME | RESOLVE_TIME | RECEIVER_AMT | FEE | TIMELOCK | CHAN_OUT | ROUTE |
+------------+--------------+--------------+--------------+-----+----------+----------+-------+
+------------+--------------+--------------+--------------+-----+----------+----------+-------+
Amount + fee:   0 + 0 sat
Payment hash:   59e691b13f9e5bd118909944aeeafaa16d9b36bb77c39a976dff869b77e33fd8
Payment status: FAILED, reason: FAILURE_REASON_INSUFFICIENT_BALANCE
[lncli] FAILED


Although I did see something suspicious in the LND logs:

Code:
2024-03-14 11:46:47.585
CRTR: Payment 59e691b13f9e5bd118909944aeeafaa16d9b36bb77c39a976dff869b77e33fd8 failed: insufficient_balance
2024-03-14 11:46:47.572
CRTR: Failed to find route for payment 59e691b13f9e5bd118909944aeeafaa16d9b36bb77c39a976dff869b77e33fd8: insufficient local balance
2024-03-14 11:46:47.572
CRTR: ShortChannelID=831822:3096:1: cannot add outgoing htlc: commitment transaction dips peer below chan reserve: our balance below chan reserve
2024-03-14 11:46:47.572
CRTR: ShortChannelID=823048:2451:0: cannot add outgoing htlc: commitment transaction dips peer below chan reserve: our balance below chan reserve

All the other failed payments made this error too, apparently.

What does "commitment transaction dips peer below chan reserve" mean and why is it complaining about balance below channel reserve when both the on-chain and lightning local balances are both well above it? (local_chan_reserve_sat 1000 sats for Dave's channel - Voltage is 5000 sats).

Meanwhile LNbits continues to show a balance of 0, in total. But Thunderhub shows the correct balance ???

Most importantly: Is there a way to specifically choose which channel to route to for an invoice? I think the invoice payment is just choosing some channel at random and somehow it is using the Voltage channel where I have a lower local balance than the reserve.



Running a node is not supposed to be this hard >:(


Title: Re: Cannot send sats from my LN node (lnd) - Wallet/Channel balances don't match
Post by: DaveF on March 14, 2024, 03:15:03 PM
It should just use the channel back to me. By default it should choose the cheapest route. And in this case, it should be one straight back to me.

No idea why it's acting so strange.

Part of me says close all the channels and then open a small one to me (20k sat) and I'll send you a new invoice and see if that works.
Just wondering if something else got out of sync someplace.

-Dave







Title: Re: Cannot send sats from my LN node (lnd) - Wallet/Channel balances don't match
Post by: NotATether on March 14, 2024, 05:44:37 PM
It should just use the channel back to me. By default it should choose the cheapest route. And in this case, it should be one straight back to me.

No idea why it's acting so strange.

Part of me says close all the channels and then open a small one to me (20k sat) and I'll send you a new invoice and see if that works.
Just wondering if something else got out of sync someplace.

-Dave

Tomorrow I'll try closing the channels and see what happens. Or maybe I will try fulfilling the local reserve for at least one of the channels (my Voltage C2 channel local balance is 4.8k versus 5k reserve).

It makes me wish the Lightning experts Rath_ and oeleo were still on the forum. Actually, there is a third. @BlackHatCoiner pinging you so you can see if there's something wrong with my setup.


Title: Re: Cannot send sats from my LN node (lnd) - Wallet/Channel balances don't match
Post by: DaveF on March 14, 2024, 06:09:19 PM
Slightly OT but any idea what happened to @Rath_
Not sure if @achow101 but pinging out to him too.

Other thought is, is Voltage.cloud doing something odd, not sure how they could but you never know.

-Dave


Title: Re: Cannot send sats from my LN node (lnd) - Wallet/Channel balances don't match
Post by: NotATether on March 15, 2024, 03:25:35 AM
Other thought is, is Voltage.cloud doing something odd, not sure how they could but you never know.

Have you ever experienced this sort of problem on your LN node? Just wondering.

It might help to know what your setup is as well. I might also try to bootstrap an LN node with a different stack  to see if it's just an LND thing.


Title: Re: Cannot send sats from my LN node (lnd) - Wallet/Channel balances don't match
Post by: DaveF on March 15, 2024, 11:59:21 AM
The one I am connecting to you from is a mynodebtc box.
So it's Core 26.0 and LND 0.17.3

I have set LN nodes up myself, and used mynode or umbrel or Raspiblitz over the years, never had the issue you are seeing.

My office just moved so I had shutdown the other nodes I was running and have not set them up again yet or I would test against something else too.

-Dave



Title: Re: Cannot send sats from my LN node (lnd) - Wallet/Channel balances don't match
Post by: NotATether on March 17, 2024, 09:23:17 AM
OK, here is my new plan:

I am going to close the Whacker channel (DaveF it is pending), so that means the 500 sats should be added to the Voltage channel I believe. Bringing the total to 5.3k sats.

And so, that means I should at least be able to spend 300 sats, since the channel local reserve is 5k sats.

If that doesn't work I'm probably just going to delete my node at this point :-\  I would use something like Strike or Wallet of Satoshi but my phone is too old to run any of those.


Title: Re: Cannot send sats from my LN node (lnd) - Wallet/Channel balances don't match
Post by: DaveF on March 17, 2024, 10:58:29 AM
Closing the channel just puts the sats into your onchain balance it does not move it to another channel.
How old is your phone? WoS will run on just about anything at least on the Android side, don't know about iOS.

If you have the spare hardware and bandwidth, and really don't want to install and configure it all yourself from scratch. Both umbrel and mynodebtc have PC and RPi versions.

Keep in mind you NEED (or at least really really should) use a 2TB SSD for the node and storage. You CAN get away with a 1TB but will be redoing it in about 18 months at this point when all the things needed go over the 1 TB point.

Don't know where you are in the world and what hardware you have available but it's a fun thing to do at least once.

And since both of them have a 1 click install for mempool.space it also solves this issue for you: https://bitcointalk.org/index.php?topic=5485806.msg63692754#msg63692754

-Dave


Title: Re: Cannot send sats from my LN node (lnd) - Wallet/Channel balances don't match
Post by: NotATether on March 17, 2024, 01:19:23 PM
Closing the channel just puts the sats into your onchain balance it does not move it to another channel.
How old is your phone? WoS will run on just about anything at least on the Android side, don't know about iOS.

If you have the spare hardware and bandwidth, and really don't want to install and configure it all yourself from scratch. Both umbrel and mynodebtc have PC and RPi versions.

Keep in mind you NEED (or at least really really should) use a 2TB SSD for the node and storage. You CAN get away with a 1TB but will be redoing it in about 18 months at this point when all the things needed go over the 1 TB point.

Don't know where you are in the world and what hardware you have available but it's a fun thing to do at least once.

And since both of them have a 1 click install for mempool.space it also solves this issue for you: https://bitcointalk.org/index.php?topic=5485806.msg63692754#msg63692754

-Dave

It is an iPhone 6s (ios12.3) so unfortunately I am out of luck there. [Muun wallet does work though, but it uses Submarine swaps so is not a real LN wallet.]

Also, I don't really have the setup required to get a 2TB SSD system running continuously at home. That means we're looking at cloud-based dedicated hardware here. And I'm already paying $20/month for this Voltage Lite node.

Maybe running Alby directly might be better but I haven't tried that tbh.

So apparently its just gonna increase the onchain balance as you said? In that case, how can I do the reverse? I have a bunch of on-chain sats just sitting there currently, and I just need 200-300 more sats to reach the C2 channel threshold.


Title: Re: Cannot send sats from my LN node (lnd) - Wallet/Channel balances don't match
Post by: NotATether on March 18, 2024, 08:41:17 AM
FINALLY.

So it turns out it was the channel local reserve all along.

After I had sent 200 additional sats, I was able to use Alby to make a 1 sat invoice. (Obviously you cannot spend what is part of the reserve).

I was also able to send an invoice through Thunderhub.

And here is me paying the invoice through lncli:

Code:
zenulabidin@destroyer:~/Downloads$ lncli --macaroonpath=/tmp/macaroon --rpcserver=zippy-the-pinhead.m.voltageapp.io --tlscertpath='' payinvoice lnbc10n1pjl0ldspp56qrezcfnnx684ge3y808asx9ezgmplg63d9gev8gpsggn68q22kqdpuge6kuerfdenjqsz6v4h82mzlg93xjerfdcsx7m3qwd6xzcmtv4ezumn9waescqzzsxqrrsssp579cdfw3z9dl7yv5tqf52dullkkyrzlax2jygf42g7y4jclp60rmq9qyyssqjzgrs8qgskx7s7xdr9fa3ep65slvwt6pthp9kp3ehyesfe74ce98dumnguaha7lmqwh5ezj22hdq69sdg6dse76k4pw64dq5dqe0q7gq3js63l
Payment hash: d00791613399b47aa33121de7ec0c5c891b0fd1a8b4a8cb0e80c1089e8e052ac
Description: Funding @Zenul_Abidin on stacker.news
Amount (in satoshis): 1
Fee limit (in satoshis): 1
Destination: 03cc1d0932bb99b0697f5b5e5961b83ab7fd66f1efc4c9f5c7bad66c1bcbe78f02
Confirm payment (yes/no): yes
+------------+--------------+--------------+--------------+-----+----------+--------------------+-------------------------------------------------+
| HTLC_STATE | ATTEMPT_TIME | RESOLVE_TIME | RECEIVER_AMT | FEE | TIMELOCK | CHAN_OUT           | ROUTE                                           |
+------------+--------------+--------------+--------------+-----+----------+--------------------+-------------------------------------------------+
| SUCCEEDED  |        0.018 |        4.799 | 1            | 1   |   835504 | 904950846378409984 | Voltage-C2->flashsats.xyz->⚡️ STACKER.NEWS ⚡️ |
+------------+--------------+--------------+--------------+-----+----------+--------------------+-------------------------------------------------+
Amount + fee:   1 + 1 sat
Payment hash:   d00791613399b47aa33121de7ec0c5c891b0fd1a8b4a8cb0e80c1089e8e052ac
Payment status: SUCCEEDED, preimage: e4aa5366eecc5f2af90d3923c319cccf27159a75755a1e2126f10677283241fc

Thanks DaveF and nc50lc!

One more question though: Ever since I (cooperatively) closed the whacker channel a few days ago, that 500 sats has been stuck in pending until now. What can I do about that?


Title: Re: Cannot send sats from my LN node (lnd) - Wallet/Channel balances don't match
Post by: DaveF on March 18, 2024, 09:51:35 AM
FINALLY.

...

One more question though: Ever since I (cooperatively) closed the whacker channel a few days ago, that 500 sats has been stuck in pending until now. What can I do about that?

Try making the node see it this way:

Code:
lncli wallet publishtx <hex tx of closing tx>


Not the TXID, the full hex.

So:

Code:
lncli wallet publishtx 02000000000101f1787442430d87ac2287cd3a9e498191b14b135e87355f0a4e91c2012fecef51000000000054f11480024a01000000000000220020c82667248ac6609764c8851a8ed611f213f5fc01979ceff10f9ed1909fc2e998b2340f000000000022002091c2af559a18211e4cf65783a640e91a564f7eec591c7c9ed4c724370e598332040047304402207572f9d1972063fdcb53c37a46c71732795d8a8126a39e20f1f205c6d5e08c9f02202b3ed44ad689dd889a769962497331101528e144b3c93ff5ffacd421f40253d101483045022100f2aaff3848572e4e2e0286411eb03d7b688403a11e8118eb2edebc00a305a24902202f666b0850f94dcbdee57c8e0e21e851fdb5f6fd91688a51702b8f17dccd56140147522102104bf0b74f3d872dbf6b4a763c5a55cdc1630be561021d2ebea0de73dbcd564c210245375b8e9c36044ef4011c8c898a345e03f2832063017b1495ec6c22869ce1cb52aee814ed20

Should make the node see it, if for whatever reason it did not.

Usually only happens on force closes, but you never know.

-Dave


Title: Re: [SOLVED] Cannot send sats from my LN node (lnd)
Post by: NotATether on March 19, 2024, 06:46:29 AM
Looks like it returned the funds to on-chain by itself.

Once again, thank you for your help @DaveF.