Bitcoin Client Software and Version Number: /Satoshi/ 0.17.0.1/ & Lnd 0.5.0-beta (Also happened on 0.5.1-beta)
Operating System: Windows 10
System Hardware Specs: Ryzen 7 1700 CPU, 16GB RAM, 3TB HDD, GTX 960
Description of Problem: I have two separate errors. I believe error 2 must be dealt with before moving onto error 1. So the story goes I was doing fine running an LND Node v 0.5.0-beta through Windows Powershell. Everything was working as expected. Before funding a channel I decided to use Tor to hide my IP address. (I have never used Tor before) I downloaded the Tor Browser, set up my Bitcoin Core Full node through
Run using these flags:
"C:\Program Files\Bitcoin\bitcoin-qt.exe" -txindex=1 -zmqpubrawblock=tcp://127.0.0.1:18503 -zmqpubrawtx=tcp://127.0.0.1:18504 -rpcuser=ezra -rpcpassword=Bignoodles -server=1 -rpcallowip=127.0.0.1
I added additional flags in my Bitcoin Core Config file:
proxy=127.0.0.1:9150
bind=127.0.0.1
onlynet=onion
dnsseed=0
dns=0
externalip=qwertyuiop1234.onion
Additionally I went into C:\Users\Ezra\Desktop\Tor Browser\Browser\TorBrowser\Data\Tor\torrc and add the following flags:
Controlport 9051
CookieAuthentication 1
CookieAuthFileGroupReadable 1
Now, in a Windows Powershell Console, I would launch lnd.exe with these commands/flags:
.\lnd.exe --bitcoin.active --bitcoin.mainnet --bitcoin.node=bitcoind --bitcoind.rpchost=127.0.0.1 --bitcoind.rpcuser=ezra --bitcoind.rpcpass=Bignoodles --bitcoind.zmqpubrawblock=tcp://127.0.0.1:18503 --bitcoind.zmqpubrawtx=tcp://127.0.0.1:18504 --debuglevel=info --tor.active --tor.streamisolation --tor.v3 listen=localhost
Here is error 1:Upon unlocking wallet using a separate powershell instance with the command
I receive this error message:
2018-12-01 19:49:27.376 [INF] LNWL: Opened wallet
2018-12-01 19:49:27.456 [INF] LTND: Primary chain is set to: bitcoin
2018-12-01 19:49:27.470 [INF] LNWL: Started listening for bitcoind block notifications via ZMQ on tcp://127.0.0.1:18503
2018-12-01 19:49:27.470 [INF] LTND: Initializing bitcoind backed fee estimator
2018-12-01 19:49:27.470 [INF] LNWL: Started listening for bitcoind transaction notifications via ZMQ on tcp://127.0.0.1:18504
2018-12-01 19:49:28.324 [INF] LNWL: The wallet has been unlocked without a time limit
2018-12-01 19:49:28.327 [INF] LTND: LightningWallet opened
2018-12-01 19:49:28.343 [INF] LNWL: Catching up block hashes to height 552210, this will take a while...
2018-12-01 19:49:28.351 [INF] SRVR: Proxying all network traffic via Tor (stream_isolation=true)! NOTE: Ensure the backend node is proxying over Tor as well
2018-12-01 19:49:28.362 [INF] HSWC: Restoring in-memory circuit state from disk
2018-12-01 19:49:28.375 [INF] LNWL: Done catching up block hashes
2018-12-01 19:49:28.379 [INF] HSWC: Payment circuits loaded: num_pending=0, num_open=0
2018-12-01 19:49:28.387 [INF] LNWL: Started rescan from block 000000000000000000249228113421860caa24fbe0ada757446eefd819f1f07e (height 551100) for 0 addresses
2018-12-01 19:49:28.388 [INF] LNWL: Starting rescan from block 000000000000000000249228113421860caa24fbe0ada757446eefd819f1f07e
2018-12-01 19:49:28.403 [INF] RPCS: RPC server listening on 127.0.0.1:10009
2018-12-01 19:49:28.403 [INF] RPCS: gRPC proxy started at 127.0.0.1:8080
2018-12-01 19:49:28.405 [INF] LTND: Waiting for chain backend to finish sync, start_height=552210
2018-12-01 19:49:28.544 [INF] LNWL: Catching up block hashes to height 551100, this might take a while
2018-12-01 19:49:28.552 [INF] LNWL: Done catching up block hashes
2018-12-01 19:49:28.552 [INF] LNWL: Rescanned through block 000000000000000000203bd4f78b9f1de9e0cc3762c707c2326de1e1a097833c (height 551100)
2018-12-01 19:53:17.498 [INF] LNWL: Rescan finished at 550956 (000000000000000000249228113421860caa24fbe0ada757446eefd819f1f07e)
2018-12-01 19:53:17.580 [INF] LNWL: Catching up block hashes to height 550956, this might take a while
2018-12-01 19:53:17.594 [INF] LNWL: Done catching up block hashes
2018-12-01 19:53:17.594 [INF] LNWL: Finished rescan for 0 addresses (synced to block 000000000000000000249228113421860caa24fbe0ada757446eefd819f1f07e, height 550956)
2018-12-01 19:53:18.569 [INF] LTND: Chain backend is fully synced (end_height=552211)!
2018-12-01 19:53:18.570 [ERR] SRVR: unable to start server: unable to retrieve authentication cookie: open C:\\Users\\Ezra\\Desktop\\Tor: The system cannot find the file specified.
2018-12-01 19:53:18.605 [INF] LTND: Shutdown complete
I waited a while and tried again under the same commands/flags
2018-12-01 20:25:14.209 [WRN] LTND: open C:\Users\Ezra\AppData\Local\Lnd\lnd.conf: The system cannot find the file specified.
2018-12-01 20:25:14.210 [INF] LTND: Version: 0.5.0-beta commit=, build=production, logging=default
2018-12-01 20:25:14.210 [INF] LTND: Active chain: Bitcoin (network=mainnet)
2018-12-01 20:25:14.211 [INF] CHDB: Checking for schema update: latest_version=6, db_version=6
2018-12-01 20:25:14.220 [INF] RPCS: password RPC server listening on 127.0.0.1:10009
2018-12-01 20:25:14.220 [INF] RPCS: password gRPC proxy started at 127.0.0.1:8080
2018-12-01 20:25:14.221 [INF] LTND: Waiting for wallet encryption password. Use `lncli create` to create a wallet, `lncli unlock` to unlock an existing wallet, or `lncli changepassword` to change the password of an existing wallet and unlock it.
2018-12-01 20:25:28.361 [INF] LNWL: Opened wallet
2018-12-01 20:25:28.445 [INF] LTND: Primary chain is set to: bitcoin
2018-12-01 20:25:28.457 [INF] LTND: Initializing bitcoind backed fee estimator
2018-12-01 20:25:28.457 [INF] LNWL: Started listening for bitcoind block notifications via ZMQ on tcp://127.0.0.1:18503
2018-12-01 20:25:28.457 [INF] LNWL: Started listening for bitcoind transaction notifications via ZMQ on tcp://127.0.0.1:18504
2018-12-01 20:25:29.326 [INF] LNWL: The wallet has been unlocked without a time limit
2018-12-01 20:25:29.330 [INF] LTND: LightningWallet opened
2018-12-01 20:25:29.339 [INF] SRVR: Proxying all network traffic via Tor (stream_isolation=true)! NOTE: Ensure the backend node is proxying over Tor as well
2018-12-01 20:25:29.348 [INF] LNWL: Catching up block hashes to height 552214, this will take a while...
2018-12-01 20:25:29.351 [INF] HSWC: Restoring in-memory circuit state from disk
2018-12-01 20:25:29.359 [INF] HSWC: Payment circuits loaded: num_pending=0, num_open=0
2018-12-01 20:25:29.372 [INF] LNWL: Done catching up block hashes
2018-12-01 20:25:29.384 [INF] LNWL: Started rescan from block 000000000000000000249228113421860caa24fbe0ada757446eefd819f1f07e (height 551100) for 0 addresses
2018-12-01 20:25:29.384 [INF] LNWL: Starting rescan from block 000000000000000000249228113421860caa24fbe0ada757446eefd819f1f07e
2018-12-01 20:25:29.394 [INF] RPCS: RPC server listening on 127.0.0.1:10009
2018-12-01 20:25:29.394 [INF] RPCS: gRPC proxy started at 127.0.0.1:8080
2018-12-01 20:25:29.395 [INF] LTND: Waiting for chain backend to finish sync, start_height=552214
2018-12-01 20:25:29.535 [INF] LNWL: Catching up block hashes to height 551100, this might take a while
2018-12-01 20:25:29.556 [INF] LNWL: Done catching up block hashes
2018-12-01 20:25:29.556 [INF] LNWL: Rescanned through block 000000000000000000203bd4f78b9f1de9e0cc3762c707c2326de1e1a097833c (height 551100)
2018-12-01 20:29:22.512 [INF] LNWL: Rescan finished at 550956 (000000000000000000249228113421860caa24fbe0ada757446eefd819f1f07e)
2018-12-01 20:29:22.520 [INF] LNWL: Catching up block hashes to height 550956, this might take a while
2018-12-01 20:29:22.531 [INF] LNWL: Done catching up block hashes
2018-12-01 20:29:22.531 [INF] LNWL: Finished rescan for 0 addresses (synced to block 000000000000000000249228113421860caa24fbe0ada757446eefd819f1f07e, height 550956)
2018-12-01 20:29:22.547 [INF] LTND: Chain backend is fully synced (end_height=552215)!
2018-12-01 20:29:22.548 [ERR] SRVR: unable to start server: unable to retrieve authentication cookie: read C:\\Users\\Ezra\\Desktop\\Tor: The handle is invalid.
2018-12-01 20:29:22.573 [INF] LTND: Shutdown complete
My Tor Browser is saved under
'C:\Users\Ezra\Desktop\Tor Browser' The file path LND was looking for
'C:\\Users\\Ezra\\Desktop\\Tor' doesn't exist. I tried to rename the folder
'Tor Browser' to
'Tor' and to nobody's surprise that didn't work
Is there a way for me to manually redirect it to the correct folder? I'm kind of at a loss on this one, however it's not the most pressing issue I am having. If we are able to resolve Error #2, the next step would be fixing Error #1
I had been doing lots of closing and opening Lnd.exe & the Full Node so I decided to restart the PC.. Same issue continues.
Next I decided to delete both lnd.exe & lncli.exe from my computer, and install the newest version (0.5.1-beta)
Here is error 2:I decide to delete my Lnd folder from the %localappdata% (saved to recycle bin) & delete all my tor flags, now running these commands for:
Bitcoin Core Full Node, launched through
run"C:\Program Files\Bitcoin\bitcoin-qt.exe" -txindex=1 -zmqpubrawblock=tcp://127.0.0.1:18503 -zmqpubrawtx=tcp://127.0.0.1:18504 -rpcuser=ezra -rpcpassword=Bignoodles -server=1 -rpcallowip=127.0.0.1
Commands/flags for Lnd.exe, launched through PowerShell
.\lnd.exe --bitcoin.active --bitcoin.mainnet --bitcoin.node=bitcoind --bitcoind.rpchost=127.0.0.1 --bitcoind.rpcuser=ezra --bitcoind.rpcpass=Bignoodles --bitcoind.zmqpubrawblock=tcp://127.0.0.1:18503 --bitcoind.zmqpubrawtx=tcp://127.0.0.1:18504 --debuglevel=info -listen=localhost
The only message I get after pressing enter is:
https://imgur.com/a/zed0TvPloadConfig: Failed to create lnd directory: mkdir C:\Users\Ezra\AppData\Local\Lnd: Access is denied
(Bug info less detailed because it is not being written to the log file)
This issue is my main concern. Suddenly my PowerShell lost privileges to create/access directories? It had this privilege when I first created a node weeks ago, and it had these privileges about 30 minutes ago, before I started setting this stuff up using Tor
Next I tried running PowerShell as Administer, giving me a whole new error:
https://imgur.com/a/NYNuNo6Finally, I moved my Lnd folder back into %localappdata% and tried to launch lnd.exe through PowerShell (non-administrator) using all the same commands/flags as before, resulting in this error message:
https://imgur.com/a/0gTgXrjfailed to create file rotator: open C:\Users\Ezra\AppData\Local\Lnd\logs\bitcoin\mainnet\lnd.log: Access is denied
So yeah, I'm kind of at a loss.
I haven't used much PowerShell before trying to run an Lnd node, haven't used Tor before. Spent too much time learning about and experimenting with Lnd to give up now, I'm very willing to work with anyone who can steer me in the right direction!!!
Thank you to anybody who took the time to go through this!!!!!