Quantcast
Channel: CLN config file unrecognized options - Bitcoin Stack Exchange
Viewing all articles
Browse latest Browse all 2

CLN config file unrecognized options

$
0
0

I'm trying to get CLN connected to a running Bitcoin Core node, but it is telling me I have unrecognized options in my config file. I thought the problem was that the data directory for the bitcoin node is on a USB drive that has spaces in its directory name.

In my cln.conf file, it is configured as follows:

bitcoin-rpcconnect=127.0.0.1bitcoin-rpcport=8332bitcoin-rpcuser=btcuserbitcoin-rpcpassword=btcpwbitcoin-cli=/home/myuser/bitcoin-core/bitcoin-clibitcoin-datadir=/media/myuser/Seagate\ Expansion\ Drive/bitcoin/network=bitcoinproxy=127.0.0.1:9050addr=statictor:127.0.0.1:9051bind-addr=127.0.0.1:9735always-use-proxy=truetor-service-password=torpw

When I try to run CLN, I get the following error:

$ lightningd --conf=../cln.conf lightning-cli exited with code 3: lightning-cli: -datadir=/media/myuser/Seagate\\ Expansion\\ Drive/bitcoin/: unrecognized optionMake sure you have bitcoind running and that bitcoin-cli is able to connect to bitcoind.You can verify that your Bitcoin Core installation is ready for use by running:    $ lightning-cli -datadir=/media/myuser/Seagate\\ Expansion\\ Drive/bitcoin/ -rpcconnect=127.0.0.1 -rpcport=8332 -rpcuser=... -stdinrpcpass echo 'hello world'The Bitcoin backend died.

The Bitcoin backend did not die. I can still access the node with bitcoin-cli.

$ ./bitcoin-cli --rpcconnect=127.0.0.1 --rpcport=8332 --rpcuser=btcuser --rpcpassword=btcpw getbestblockhash00000000000000000002b050f0ab9cb9f0f7c5ed4e4fc59f02debe724c571690

So I tried commenting out the bitcoin-datadir line in the config file. Then I get the following error:

$ lightningd --conf=./cln.conf lightning-cli exited with code 3: lightning-cli: -rpcconnect=127.0.0.1: unrecognized optionMake sure you have bitcoind running and that bitcoin-cli is able to connect to bitcoind.You can verify that your Bitcoin Core installation is ready for use by running:    $ lightning-cli -rpcconnect=127.0.0.1 -rpcport=8332 -rpcuser=... -stdinrpcpass echo 'hello world'The Bitcoin backend died.

These settings are all in the documentation. Why is it telling me it doesn't recognize them?


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images