Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to read macaroon from Path #184

Open
jiyu3 opened this issue Dec 3, 2018 · 2 comments
Open

Failed to read macaroon from Path #184

jiyu3 opened this issue Dec 3, 2018 · 2 comments

Comments

@jiyu3
Copy link

jiyu3 commented Dec 3, 2018

I edited config/defaults.js as below:

// config/defaults.js

module.exports = {
   :  
   :  
  macaroonPath: `~/.lnd/data/chain/bitcoin/mainnet/admin.macaroon`,
   :  
   :  
};

ls ~/.lnd/data/chain/bitcoin/mainnet/admin.macaroon works, so that file exists.

But I failed to run node server --lndhost=localhost:10009 with that error:

Macaroon support is enabled. Macaroon path is ~/.lnd/data/chain/bitcoin/mainnet/admin.macaroon
info:    Recreating active client
error:   The specified macaroon file ~/.lnd/data/chain/bitcoin/mainnet/admin.macaroon was not found.
Please add the missing lnd macaroon file or update/remove the path in the application configuration.

I succeed to run lncli getinfo, so lnd and lncli are working.

My lnd.conf is below:

[Application Options]
externalip=35.211.30.191:9999
listen=0.0.0.0:9999
listen=[::1]:9998
rpclisten=0.0.0.0:10009

[Bitcoin]
bitcoin.active=1
bitcoin.mainnet=1
bitcoin.node=bitcoind

(I exactly opened port 9999, 9998 and 10009)

Any clue?

@mably
Copy link
Owner

mably commented Dec 3, 2018

Related code is here: https://github.com/mably/lncli-web/blob/master/app/lightning.js

Can't see anything wrong there. Probably some access rights missing somewhere.

@veritasdigitalis
Copy link

I had this issue and fixed it by specifying the path directly:

/home/user/.lnd/data/chain/bitcoin/mainnet/admin.macaroon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants