Skip to content

Failed to read macaroon from Path #184

Description

@jiyu3

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions