Lnd: lncli ignores lnd.conf settings

Created on 29 Dec 2017  路  2Comments  路  Source: lightningnetwork/lnd

I don't know if you are aware of the problem or if it is a real problem but I got the following setup.

I'm working with OSX 10.12.6. I have installed lnd like provided in the readme document.

Now I don't like to have the lnd data, logs and macroon directory in its default places. I have configured it in the correct place in the lnd.conf file. lnd does pick up the settings quite fine. But lncli does always output [lncli] open /Users/<user>/Library/Application Support/Lnd/admin.macaroon: no such file or director although I have set the correct place of the admin.macaroon file in the lnd.conf via adminmacaroonpath=/<my path to the file>/admin.macaroon. So the only way to make lncli work is by adding the command line parameter --macaroonpath on every command which is quite nasty.

If you need more information just drop me a message here.

P4 cli config

Most helpful comment

Ok I get the point.
But why couldn't it use the lnd.conf by default (if available) and if there is a cli parameter given e.g. ----macaroonpath it could get that one. (cli parameters would always override the lnd.conf setting)

All 2 comments

This is expected. If you change the location of the macaroon, you need to use the --macaroonpath argument for lncli. Consider a case where you're using lncli remotely, and there's no lnd.conf at all on that machine.

Ok I get the point.
But why couldn't it use the lnd.conf by default (if available) and if there is a cli parameter given e.g. ----macaroonpath it could get that one. (cli parameters would always override the lnd.conf setting)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

stevenroose picture stevenroose  路  3Comments

qubenix picture qubenix  路  3Comments

Richard87 picture Richard87  路  3Comments

hxsquid picture hxsquid  路  3Comments

alec-djinn picture alec-djinn  路  3Comments