Closed jleo84 closed 3 years ago
I've noticed if I run /usr/bin/lnd
instead of sudo systemctl start lnd
, the lncli works.
Is it something related to service configuration ?
That error suggests that Lightning is not connecting to Bitcoin correctly. It's most likely due to bitcoind.rpcuser
and bitcoind.rpcpass
being blank in ~/.lnd/lnd.conf
:
bitcoind.rpcuser=
bitcoind.rpcpass=
These can be filled in as follows:
$ BITCOINRPC_USER=$(cat ~standup/.bitcoin/bitcoin.conf | grep rpcuser | awk -F = '{print $2}')
$ BITCOINRPC_PASS=$(cat ~standup/.bitcoin/bitcoin.conf | grep rpcpassword | awk -F = '{print $2}')
My top guess is that you rebooted the machine to restart Bitcoin and then didn't refill these variables, so the config creation didn't work correctly. I've rewritten the chapter a little bit so that doesn't happen.
I also found one other error regarding installation (where something wasn't sudoed), and resolved that. I've verified that the CLI commands work correct following the designated setup.
Make sure you specify --rpcserver
and point it to the second node.
Hello,
In chapter "18.2 - Interlude Accessing a Second Lightning Node", I am getting the following error message when execute
lncli --network=testnet create
command:And if I run the command:
lncli --network=testnet getinfo
, I get the message:The log has some error messages:
I found similar issue here but with no applicable answer.
Can it be fixed ? Is there any step of tutorial missing ?