lightninglabs / pool

Lightning Pool: a non-custodial batched uniform clearing-price auction for Lightning Channel Leases (LCL). An LCL packages up inbound channel liquidity (ability to receive funds) as a fixed income asset with a maturity date expressed in blocks.
MIT License
254 stars 47 forks source link

LLM looks for "invoices.macaroon" rather than "invoice.macaroon" at startup #66

Closed bryanvu closed 4 years ago

bryanvu commented 4 years ago

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?

Roasbeef commented 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.

bryanvu commented 4 years ago

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.

Roasbeef commented 4 years ago

Are you compiling with the invoice rpc tag? So like:

make install tags="signrpc walletrpc chainrpc invoicesrpc experimental"
Roasbeef commented 4 years ago

Assuming it gets past the macaroon part, it'll then return an error if you don't have any of the required tags on.

bryanvu commented 4 years ago

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