<p>Found the issue, lncli needed to be set to testnet and you need to create a wallet as well</p>

<pre><code>lncli --network=testnet create
lncli --network=testnet getinfo
</code></pre>

CC BY-SA 4.0
2018-11-15T09:59:24.193Z
The answer should be more general. try mentioning the fact that one needs to provide a proper --rpcserver and --macaroonpath to match both `lnd` and `lncli`. For example: if lnd was started with:
`lnd --rpclisten=localhost:10003 --listen=localhost:10031 --restlisten=localhost:8003 --datadir=data `
then lncli should be started with:
`lncli --rpcserver=localhost:10003 --macaroonpath=data/chain/bitcoin/testnet/admin.macaroon`

supposing `lnd` was to be used with the `testnet` flag. The flags `network=testnet` or `-n testnet` are just a particular scenario of this.
ranchalp
CC BY-SA 4.0
2018-09-22T18:54:15.393Z
2018-09-22T19:00:27.160Z
2018-09-22T19:00:27.160Z
arshbot
<p>After installation of the lnd for the first time you should initialize a wallet with a command: <code>lncli create</code></p>

<p>Here is description of startup commands:</p>

<pre><code>lncli help
...
Startup:
create          Initialize a wallet when starting lnd for the first time.
unlock          Unlock an encrypted wallet at startup.
changepassword  Change an encrypted wallet's password at startup.
</code></pre>

<p>It may require you to create the path:</p>

<pre><code>mkdir -p &lt;path from error message&gt;
</code></pre>

CC BY-SA 4.0
2019-02-13T22:47:06.733Z
2019-02-13T22:47:06.733Z
Roman Shishkin
<p>Just started lnd for the first time connected to a bitcoind node. Do <code>lncli getinfo</code> and this is the error message. How can I get past this? </p>

<p>EDIT: Would like to add that I'm using lnd on testnet, however lncli is looking in the mainnet folder</p>

<lightning-network><lightning-network-daemon>
unable to read macaroon path (check the network setting!): admin.macaroon: no such file or directory on lncli getinfo
arshbot
# unable to read macaroon path (check the network setting!): admin.macaroon: no such file or directory on lncli getinfo

(Asked by: username_0 on 2018-09-22)

Just started lnd for the first time connected to a bitcoind node. Do `lncli getinfo` and this is the error message. How can I get past this?

EDIT: Would like to add that I'm using lnd on testnet, however lncli is looking in the mainnet folder

**Tags:** lightning-network, lightning-network-daemon


---

## 2 answers

### Answer by username_0 on 2018-09-22. Score: 2 | Accepted answer

Found the issue, lncli needed to be set to testnet and you need to create a wallet as well

```
lncli --network=testnet create
lncli --network=testnet getinfo

```

> **Comments:**
> **username_1**: The answer should be more general. try mentioning the fact that one needs to provide a proper --rpcserver and --macaroonpath to match both `lnd` and `lncli`. For example: if lnd was started with: `lnd --rpclisten=localhost:10003 --listen=localhost:10031 --restlisten=localhost:8003 --datadir=data ` then lncli should be started with: `lncli --rpcserver=localhost:10003 --macaroonpath=data/chain/bitcoin/testnet/admin.macaroon`  supposing `lnd` was to be used with the `testnet` flag. The flags `network=testnet` or `-n testnet` are just a particular scenario of this.  

---

### Answer by username_2 on 2019-02-13. Score: 1

After installation of the lnd for the first time you should initialize a wallet with a command: `lncli create`

Here is description of startup commands:

```
lncli help
...
Startup:
create          Initialize a wallet when starting lnd for the first time.
unlock          Unlock an encrypted wallet at startup.
changepassword  Change an encrypted wallet's password at startup.

```

It may require you to create the path:

```
mkdir -p <path from error message>

```


---

