ain icon indicating copy to clipboard operation
ain copied to clipboard

BlockConnected: WARNING: Block xxx does not connect to an ancestor of known best chain (tip=xxx); not updating index

Open Martin8617 opened this issue 3 years ago • 3 comments

What happened:

After running 1 day with warning (mention in title) the masternode stopped with debug.log-input: 2022-07-01T00:14:25Z BlockUntilSyncedToCurrentChain: txindex is catching up on block notifications defid: spv/bitcoin/BRWallet.cpp:1151: int BRWalletRegisterTransaction(BRWallet *, BRTransaction *): Assertion `tx != NULL && BRTransactionIsSigned(tx)' failed. Abgebrochen

See attached log-file for more information: 220701-debug.log

What you expected to happen:

Running without warnings and updated index.

How to reproduce it (as minimally and precisely as possible):

First I had same issue with levelDB-error on a Raspberry. Snapshot could not re-sync the node, only copy of the blockchain of another node restarts the crashed node. So now the 2nd MN (Linux, oversized PC) crashed...

What are your environment parameters:

HP EliteBook 8760w / 1TB SSD / 8GB Ram

--> Linux Bullseye / Kernel 5.10.0-15-amd64 x86_64 --> Client v2.9.0

Anything else we need to know?:

Martin8617 avatar Jul 01 '22 09:07 Martin8617

@Martin8617: Thanks for opening an issue, it is currently awaiting triage.

The triage/accepted label can be added by foundation members by writing /triage accepted in a comment.

Details

I am a bot created to help the DeFiCh developers manage community feedback and contributions. You can check out my manifest file to understand my behavior and what I can do. If you want to use this for your project, you can check out the DeFiCh/oss-governance-bot repository.

defichain-bot avatar Jul 01 '22 09:07 defichain-bot

My MN is back:

2022-07-01T10:26:29Z UpdateTip: new best=d9c3ac03e0b2a7e21a56f72252e4851fb8cd0ea9cc8173b741d30f3a27c8ce98 height=2019249 version=0x20000000 log2_work=86.190087 tx=14802987 date='2022-07-01T10:24:33Z' progress=0.999999 cache=0.3MiB(2012txo) 
2022-07-01T10:26:29Z UpdateTip: new best=b8af09b09e7ee9fe1e45ad5fb6ccc26c70f19032c1f8ce06784a740918740d7c height=2019250 version=0x20000000 log2_work=86.190088 tx=14802988 date='2022-07-01T10:24:39Z' progress=0.999999 cache=0.3MiB(2014txo) 
2022-07-01T10:26:31Z socket recv error Connection reset by peer (104)
2022-07-01T10:26:51Z Syncing txindex with block chain from height 1907657
2022-07-01T10:27:22Z Syncing txindex with block chain from height 1994864
2022-07-01T10:27:27Z txindex is enabled at height 2019250
2022-07-01T10:27:27Z txindex thread exit
  1. Copy the actual blockchain from another node doesn't worked
  2. Restart PC and recopy the blockchain worked ==> Looks like a tmp-file or a chache causing the error

Martin8617 avatar Jul 01 '22 10:07 Martin8617

Same error at some Nodes here with another block today:

2022-07-05T08:24:36Z BlockConnected: WARNING: Block ef2aeb9ac670c803e3adf289fa537e0d47a5a07790af4f71a85b5e96e6afc7c3 does not connect to an ancestor of known best chain (tip=a3e802fb5d6d4986e98613ec6878a262cacb674f9a4941d67c1ea3ebb347e8a0); not updating index

~/.defi/defi-cli getblock a3e802fb5d6d4986e98613ec6878a262cacb674f9a4941d67c1ea3ebb347e8a0
{
  "hash": "a3e802fb5d6d4986e98613ec6878a262cacb674f9a4941d67c1ea3ebb347e8a0",
  "confirmations": -1,
  "strippedsize": 527,
  "size": 672,
  "weight": 2253,
  "height": 2027835,
  "masternode": "0380e4ea889157574abe4d6bc6b573651f1605de8366f27c62796047b4a0c03b",
  "minter": "8P2trwgRGTcie877aHDycmH4DnWCgWtSP3",
  "mintedBlocks": 132,
  "stakeModifier": "928cc7238e614873fd05827188934865a7ea3c5d93002b907c5ff9567a3bf0f0",
  "version": 536870912,
  "versionHex": "20000000",
  "merkleroot": "ba4fdc028dd26e332ee69c4d0feec6db0cbcfe2bb2476b7c0705440c7f72ec89",
  "nonutxo": [
    {
      "AnchorReward": 0.04588335,
      "Burnt": 141.64191065
    }
  ],
  "tx": [
    "85f4a143290a8ba3bd6726177d1509ae923fb3560347004dde45412672d42f18",
    "80822e53b114e8dcb0bb302c80503d9d3167809ce6a44c5a7945d627b02a5489"
  ],
  "time": 1656933228,
  "mediantime": 1656933228,
  "bits": "184297be",
  "difficulty": 16510730784.6164,
  "chainwork": "000000000000000000000000000000000000000000498a15b1c318935b758334",
  "nTx": 2,
  "previousblockhash": "b50acd2c9d63540029a5034bf71cdbe06d70b45af218237efbceb19d498369b9"

Stonygan avatar Jul 05 '22 08:07 Stonygan