Closed dpblnt closed 3 years ago
Does the exit status 1 mean Operation not permitted ?
No, it means failure. But we handle failure, did you experience a crash ? What's the issue ?
I presume you're running bitcoind
with pruning enabled? The block it is trying to retrieve is block 598345 which at the time of writing has ~57k confirmations, and is likely in the pruned part of the blockchain, i.e., your bitcoind
discarded the block to save disk space.
The error happens because your lightningd
is trying to verify a channel_announcement
that refers to a channel confirmed in that block. However, lightningd
fails to retrieve the block (bitcoind
discarded it), so it prints a small warning and may retry if another announcement for the same block comes in, or it may retry the same some seconds later.
It is not a fatal error, the daemon can continue just fine. It'll discard that one channel, but the rest of the network should be resilient enough to provide sufficiently many alternative paths to whatever destination.
It is therefore safe to ignore this warning.
True, I run bitcoind pruned. Thank you for your complete answer.
Issue and Steps to Reproduce
I'm looking at these lines in the log, and I don't understand why, since
lightning-cli getinfo |grep blockheight
gives up to date info. Does the exit status 1 mean Operation not permitted ?2020-11-02T17:50:11.585Z UNUSUAL plugin-bcli: /usr/local/bin/bitcoin-cli -datadir=/mnt/system/bitcoin -rpcconnect=127.0.0.1 -rpcport=8332 -rpcuser=... -rpcpassword=... getblock 0000000000000000001024ddf26af504ed13fb5b0bca48c76a56d800675089ab 0 exited with status 1
2020-11-02T17:50:12.589Z UNUSUAL plugin-bcli: /usr/local/bin/bitcoin-cli -datadir=/mnt/system/bitcoin -rpcconnect=127.0.0.1 -rpcport=8332 -rpcuser=... -rpcpassword=... getblock 0000000000000000001024ddf26af504ed13fb5b0bca48c76a56d800675089ab 0 exited with status 1
getinfo
output