Closed bryanvu closed 4 years ago
If your node is really old, then it may not have this macaroon. You should be running the latest version of lnd
. One is for reading only invoices, while the other is for the invoice sub-server. Clearing all your macaroons then restarting should fix it.
Did the delete/restart and still having the issue. It's only creating invoice.macaroon.
$:~/.lnd/data/chain/bitcoin/testnet$ ls
admin.macaroon chainnotifier.macaroon macaroons.db peers.json reg_filter_headers.bin signer.macaroon walletkit.macaroon
block_headers.bin invoice.macaroon neutrino.db readonly.macaroon router.macaroon wallet.db
This is a new v0.11 node as well. If I copy invoice.macaroon to invoices.macaroon, it seems to work.
Are you compiling with the invoice rpc tag? So like:
make install tags="signrpc walletrpc chainrpc invoicesrpc experimental"
Assuming it gets past the macaroon part, it'll then return an error if you don't have any of the required tags on.
Ah... I built with signrpc, walletrpc, chainrpc and experimental. I think this line needs to be updated: https://github.com/lightninglabs/LLM/blob/1c11ad9b3ddadddf51b512931824d5c376f21900/server.go#L36
Upon startup, got: "unable to start server: unable to obtain macaroons: open /home//.lnd/data/chain/bitcoin/testnet/invoices.macaroon: no such file or directory"
I believe this may be because llm is looking for invoice.macaroon rather than invoices.macaroon?