Friday, December 27, 2019

Is it possible to link / point bitcoind to zmq post-compilation?

I tried my hand at compiling bitcoind from source on a raspberry pi running raspbian. Everything works fine, but when I tried running lightning (lnd) on top of it I got the error:

Unable to create chain control: unable to subscribe for zmq block events: dial tcp [127.0.0.1:28332](https://127.0.0.1:28332): connect: connection refused\

Lightning exits itself after running the command

lncli unlock

I also have this error message in the output of bitcoind:

AddPortMapping(8333, 8333, 192.168.0.20) failed with code 718 (ConflictInMappingEntry) which is related to upnpc not being able to do something related to the listening ports I think. I have previously run bitcoind and lightning (C-lightning, however) on another machine (ubuntu) on the same network with no issues, so I don't think the port issue is related to the router.

Forum crawling has suggested that the issue may have to do with me forgetting to include zmq while compiling bitcoind. Is there a way to fix this without having to compile from source again? If not, how do I compile bitcoind from source with zmq? Bitcoind runs fine despite showing errors, but does not allow lightning to function on top of it.

This is my bitcoin.conf:

rpcconnect=127.0.0.1 rpcport=8332 rpcallowip=0.0.0.0/0 zmqpubrawblock=tcp://127.0.0.1:28332 zmqpubrawtx=tcp://127.0.0.1:28332

And this is my lnd.conf

[Bitcoin] bitcoin.mainnet=1 bitcoin.active=1 bitcoin.node=bitcoind [Bitcoind] bitcoind.rpchost=127.0.0.1:8332 bitcoind.zmqpubrawblock=127.0.0.1:28332 bitcoind.zmqpubrawtx=127.0.0.1:28333


No comments:

Post a Comment