<p>Ubuntu 22.04<br />
lnd 0.15.3-beta<br />
tor 0.4.6.10</p>
<p>When I run <code>lnd</code>, it never connects to the network. The output contains the line:</p>
<pre><code>[ERR] SRVR: Unable to retrieve initial bootstrap peers: no addresses found
</code></pre>
<p><code>tor.log</code> contains lots of lines like these:</p>
<pre><code>We tried for 15 seconds to connect to '[scrubbed]' using exit $B558F456FB410E6CDF3D33AC5EB5305D66DA8B19~bauruine [hu1YYHdLr/hlWFXBWKMxQnaQbHIK4+9aotdZtYoZ2c4] at 23.137.251.61. Retrying on a new circuit.
Tried for 130 seconds to get a connection to [scrubbed]:53. Giving up.
</code></pre>
<p>The messages in the <code>tor.log</code> file only show up when lnd is running.</p>
<p>lnd.conf</p>
<pre><code>bitcoin.active=true
bitcoin.mainnet=true
bitcoin.node=bitcoind
bitcoin.minhtlc=1
bitcoin.feerate=1
bitcoin.basefee=1000
bitcoin.defaultchanconfs=2

bitcoind.rpchost=192.168.1.38:8901
bitcoind.zmqpubrawblock=tcp://192.168.1.38:28332
bitcoind.zmqpubrawtx=tcp://192.168.1.38:28333
bitcoind.rpcuser=username
bitcoind.rpcpass=password

tor.active=true
tor.v3=true
tor.socks=127.0.0.1:9050
tor.control=127.0.0.1:9051
tor.streamisolation=true

listen=0.0.0.0:9735
rpclisten=0.0.0.0:10009
debuglevel=debug

sync-freelist=1
stagger-initial-reconnect=1
ignore-historical-gossip-filters=1
db.bolt.auto-compact=1
max-channel-fee-allocation=1.0
maxpendingchannels=10
protocol.wumbo-channels=true
minchansize=5000000
max-cltv-expiry=5000

routerrpc.apriorihopprob=0.5
routerrpc.aprioriweight=0.75
routerrpc.attemptcost=10
routerrpc.attemptcostppm=10
routerrpc.minrtprob=0.005
routerrpc.penaltyhalflife=6h0m0s

tlsautorefresh=true
tlsdisableautofill=true
</code></pre>
<p>torrc</p>
<pre><code>ControlPort 9051
CookieAuthentication 1
CookieAuthFileGroupReadable 1
CookieAuthFile /var/lib/tor/control_auth_cookie
DataDirectoryGroupReadable 1
CacheDirectoryGroupReadable 1
Log notice file /var/log/tor/tor.log
</code></pre>
<p>It seems like the problem would have something to do with <code>lnd</code> because I stop getting the <code>tor.log</code> error messages when I shut down <code>lnd</code>. Also, I am able to reach the outside Internet by using <code>torsocks</code>.</p>
<p>What do I have to change to get this working?</p>

CC BY-SA 4.0
2022-10-23T11:13:16.173Z
No. It returns an empty JSON object.
Zephyrus
CC BY-SA 4.0
2022-10-23T15:27:50.893Z
The result contains an array that has one peer in it.
Zephyrus
CC BY-SA 4.0
2022-10-23T15:33:00.297Z
And I am seeing a lot of activity in my terminal. Also, running `lncli getnetworkinfo` is showing actual numbers instead of all zeros, and the numbers are growing as if it is syncing. Are the calls to `connect` and `listpeers` a requirement, or was something configured incorrectly?
Zephyrus
<lightning-network-daemon><tor>
lnd fails to connect to the network
Zephyrus
# lnd fails to connect to the network

(Asked by: username_0 on 2022-10-22)

Ubuntu 22.04  
lnd 0.15.3-beta  
tor 0.4.6.10

When I run `lnd`, it never connects to the network. The output contains the line:

```
[ERR] SRVR: Unable to retrieve initial bootstrap peers: no addresses found

```

`tor.log` contains lots of lines like these:

```
We tried for 15 seconds to connect to '[scrubbed]' using exit $B558F456FB410E6CDF3D33AC5EB5305D66DA8B19~bauruine [hu1YYHdLr/hlWFXBWKMxQnaQbHIK4+9aotdZtYoZ2c4] at 23.137.251.61. Retrying on a new circuit.
Tried for 130 seconds to get a connection to [scrubbed]:53. Giving up.

```

The messages in the `tor.log` file only show up when lnd is running.

lnd.conf

```
bitcoin.active=true
bitcoin.mainnet=true
bitcoin.node=bitcoind
bitcoin.minhtlc=1
bitcoin.feerate=1
bitcoin.basefee=1000
bitcoin.defaultchanconfs=2

bitcoind.rpchost=192.168.1.38:8901
bitcoind.zmqpubrawblock=tcp://192.168.1.38:28332
bitcoind.zmqpubrawtx=tcp://192.168.1.38:28333
bitcoind.rpcuser=username
bitcoind.rpcpass=password

tor.active=true
tor.v3=true
tor.socks=127.0.0.1:9050
tor.control=127.0.0.1:9051
tor.streamisolation=true

listen=0.0.0.0:9735
rpclisten=0.0.0.0:10009
debuglevel=debug

sync-freelist=1
stagger-initial-reconnect=1
ignore-historical-gossip-filters=1
db.bolt.auto-compact=1
max-channel-fee-allocation=1.0
maxpendingchannels=10
protocol.wumbo-channels=true
minchansize=5000000
max-cltv-expiry=5000

routerrpc.apriorihopprob=0.5
routerrpc.aprioriweight=0.75
routerrpc.attemptcost=10
routerrpc.attemptcostppm=10
routerrpc.minrtprob=0.005
routerrpc.penaltyhalflife=6h0m0s

tlsautorefresh=true
tlsdisableautofill=true

```

torrc

```
ControlPort 9051
CookieAuthentication 1
CookieAuthFileGroupReadable 1
CookieAuthFile /var/lib/tor/control_auth_cookie
DataDirectoryGroupReadable 1
CacheDirectoryGroupReadable 1
Log notice file /var/log/tor/tor.log

```

It seems like the problem would have something to do with `lnd` because I stop getting the `tor.log` error messages when I shut down `lnd`. Also, I am able to reach the outside Internet by using `torsocks`.

What do I have to change to get this working?

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

> **Comments:**
> **username_0**: No. It returns an empty JSON object.  
> **username_0**: The result contains an array that has one peer in it.  
> **username_0**: And I am seeing a lot of activity in my terminal. Also, running `lncli getnetworkinfo` is showing actual numbers instead of all zeros, and the numbers are growing as if it is syncing. Are the calls to `connect` and `listpeers` a requirement, or was something configured incorrectly?  

---

## 0 answers

