lightningnetwork / lnd

Lightning Network Daemon ⚡️
MIT License
7.67k stars 2.07k forks source link

Documentation on macaroons is wrong #5444

Closed jblachly closed 2 years ago

jblachly commented 3 years ago

Background

Macaroons are created after wallet creation. However, the documentation in the main installation (https://github.com/lightningnetwork/lnd/blob/master/docs/INSTALL.md) states the following:

Running lnd for the first time will by default generate the admin.macaroon, read_only.macaroon, and macaroons.db files that are used to authenticate into lnd.

As a first-time LND user, I was bitten by this today because I first wanted to run lncli getinfo; it took some searching to realize I had to first run lncli create in order to create the macaroon files.

As you can see, this has confused users for a long time: this old closed issue https://github.com/lightningnetwork/lnd/issues/1190 which is reflective of the same wrong documentation, had a user post as recently as late 2020.

Your environment

Steps to reproduce

  1. Run lnd for the first time, connecting via RPC to bitcoind
  2. Run lncli getinfo

Expected behaviour

Should not fail with macaroon error

Actual behaviour

Macaroons do not yet exist, which is in direct conflict with the documentation

guggero commented 3 years ago

Yes, the doc could be improved here. PRs are welcome.

gabbyprecious commented 2 years ago

Hi @guggero can I send a quick pr for this?

tvolk131 commented 2 years ago

@guggero this is fixed with #6348, right?

guggero commented 2 years ago

Yes, thanks for the reminder, @tvolk131!

Fixed by https://github.com/lightningnetwork/lnd/pull/6348.