Default content lnd.conf lightning configuration file

Hi all,

Just finished syncing my Bitcoin node and want to open some lightning channels now.
When I want to open a channel, I get the following error:

Unable to get peer information, wallet locked, unlock it to enable full RPC access

The log has records saying:

[ERR] RPCS: [/lnrpc.Lightning/PendingChannels]: waiting to start, RPC services not available

I previously added 2 lines to the lnd.conf for garbage collecting invalid invoices and think I might have deleted one or more lines in lnd.conf in the [bitcoind] section.

I want to check if my lightning config file is complete. I have the following entries under the [bitcoind] section:
bitcoind.rpchost=localhost (I manually added this line, the rest was already in place)
bitcoind.rpcuser=umbrel
bitcoind.rpcpass=XXX
bitcoind.zmqpubrawblock=tcp://10.21.21.8:28332
bitcoind.zmqpubrawtx=tcp://10.21.21.8:28333

Can someone with another umbrel instance please check if I am missing something under the bitcoind section of my config file?

Thanks in advance.

Those lines are OK, only that instead of localhost, should be an IP like 10.x.x.x
Maybe you just add some extra spaces in the file, you should always use nano editor and be sure you do not put extra spaces or lines or other characters
Even a wrong color RGB code can make that lnd do not start.
You can stop umbrel, rename that old lnd.conf in something else and then restart the umbrel scripts. lnd.conf will be created again, clean.
Here you have an example of full lnd.conf from an umbrel (the last 2 are optional and the IPs replace them with yours ones):

[Application Options]
listen=0.0.0.0:9735
rpclisten=0.0.0.0:10009
restlisten=0.0.0.0:8080
maxpendingchannels=3
minchansize=500000
accept-keysend=true
tlsextraip=10.21.x.x
tlsextradomain=umbrel.local
tlsautorefresh=1
tlsdisableautofill=1
feeurl=
allow-circular-route=1
alias=YourFunnyAliasNode
color=#5f1be8
# Mark unpayable, unpaid invoices as deleted
gc-canceled-invoices-on-startup=1
gc-canceled-invoices-on-the-fly=1
# Avoid historical graph data sync
ignore-historical-gossip-filters=1
# Avoid slow startup time
sync-freelist=1
# Avoid high startup overhead
stagger-initial-reconnect=1

[Bitcoind]
bitcoind.rpchost=10.21.x.x
bitcoind.rpcuser=umbrel
bitcoind.rpcpass=longcharspassword
bitcoind.zmqpubrawblock=tcp://10.21.x.x:28332
bitcoind.zmqpubrawtx=tcp://10.21.x.x:28333

[Bitcoin]
bitcoin.active=1
bitcoin.mainnet=1
# Default to neutrino as the node is
# automatically switched to bitcoind once
# IBD is complete
bitcoin.node=bitcoind
bitcoin.defaultchanconfs=2

# [neutrino]
# Testnet neutrino peers that are automatically
# uncommented if Umbrel is configured for testnet
# neutrino.addpeer=testnet1-btcd.zaphq.io
# neutrino.addpeer=testnet2-btcd.zaphq.io

[tor]
tor.active=1
tor.control=10.21.x.x:29051
tor.socks=10.21.x.x:9050
tor.targetipaddress=10.21.x.x
tor.password=longcharspassword
tor.v3=1

[wtclient]
wtclient.active=true
wtclient.sweep-fee-rate=10

[protocol]
protocol.no-anchors=true

NOTE: if you just want to reset the lnd.conf file with a default one, you can do this
Make a backup of your current lnd.conf

cp ~/umbrel/lnd/lnd.conf ~/umbrel/lnd/lnd.bak

Delete your current lnd.conf, re-configure Umbrel and restart the node

rm ~/umbrel/lnd/lnd.conf && ~/umbrel/scripts/configure && sudo reboot

After is all OK, you can go and add one by one the lines you want in your lnd.conf, but be careful to not broke it again with wrong info.

1 Like

Thanks for the quick response DarthCoin. I changed the host to:

bitcoind.rpchost=10.21.21.8

and now it works :slight_smile:

1 Like

Why i don`t have the lnd directory where is supposed to be the file lnd.conf?

Something changed with the recent upgrade (0.5.0)?

Where i can find the file lnd.conf? I need the location cause i wanna add a watchtower.

Thanks in advance.

Ok i just found out that with 0.5.0 the location is:

sudo nano ~/umbrel/app-data/lightning/data/lnd/lnd.conf

Also it appear that the watchtower is already active by default since i found at the bottom these 2 lines:

[wtclient]
wtclient.active=true

I`m correct?

1 Like

My lnd.conf file is broken since i have made the update to 0.5.4.
There are only a few lines in anymore.
I have already renamed the file and reboot the node but it doesn’t creat a new lnd.conf file.
But it looks like that this is not needed anymore because my node is still running as normal. But how i can let the node create a new file?
Thanks in adavnce for your help.