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.

Why is .lnd directory created when connecting to a remote lnd instance?

See original GitHub issue

Consider the following command used to start up lit.

litd --remote.lnd.network=testnet \
  --remote.lnd.rpcserver=localhost:10009 \
  --remote.lnd.macaroondir=/root/.lnd/data/chain/bitcoin/testnet \
  --remote.lnd.tlscertpath=/root/.lnd/tls.cert \
  --uipassword=1234

After startup these 4 directories exist.

ls -al /root
drwxr-xr-x    3 root     root          4096 Nov 12 09:45 .faraday
drwx------    4 root     root          4096 Nov 12 09:45 .lit
drwxr-xr-x    2 root     root          4096 Oct 19 20:36 .lnd
drwxr-xr-x    4 root     root          4096 Nov 12 09:45 .loop

The .lnd directory is created by lit even though it’s not actually running lnd. This can cause some unexpected issues when trying to run lit on a machine where .lnd already exists as part of another lnd install (eg, where .lnd is a shared mount from another container that is running lnd)

Why is the .lnd directory created by lit when lit is not starting up a local lnd instance?

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mrfeltoncommented, Nov 16, 2020

Interesting. You could be right… will recheck on my end

0reactions
guggerocommented, Dec 14, 2020

Any update on this? Can the issue be closed?

Read more comments on GitHub >

github_iconTop Results From Across the Web

lnd/remote-signing.md at master · lightningnetwork/lnd - GitHub
The advantage of such a setup is that the lnd instance containing the private keys (the "signer") can be completely offline except for...
Read more >
lnd.conf - Builder's Guide
The LND configuration file can be edited to customize your Lightning Network node.
Read more >
Running Bitcoin & Lightning Nodes Over The Tor Network ...
When we launch LND it's going to create a hidden /.lnd folder where the node's data and configurations will be placed, similar to...
Read more >
lnd package - github.com/brsuite/lnd - Go Packages
var ( // DefaultLndDir is the default directory where lnd tries to find its // configuration file and store its data. This is...
Read more >
npm:bitcoin-lightning-nodejs | Skypack
LND_DIR will be used as a placeholder to denote the base directory of the lnd ... is the first method that should be...
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