oxen-io/oxen-core

[SOLVED] Sync doesn't work ("failed to add block to batch rewards")

qdhj opened this issue · 3 comments

qdhj commented

Sync has stopped at 99% and now gives this type of error:

2023-09-26 15:55:20.085 I [2.56.98.192:22209 OUT] Sync data returned a new top block candidate: 1365022 -> 1418397 [Your node is 53375 blocks (2 months behind)]
SYNCHRONIZATION started
2023-09-26 15:55:43.705 E Block height (1365022) out of sync with batching database (1365038)
2023-09-26 15:55:43.707 E Failed to add block to batch rewards DB.
2023-09-26 15:55:43.708 E Block height out of sync with batching database
2023-09-26 15:55:43.709 E Failed to pop to batch rewards DB
terminate called after throwing an instance of 'std::runtime_error'
  what():  Failed to pop batch rewards DB

What could be the problem?..

  • Operating System: Windows 10
  • Local node
  • Daemon version: v10.3.0-1~deb11

image

qdhj commented

Tried to start again from scratch, now sync is stuck on another block near to the mentioned above with the same problem ("Failed to pop batch rewards DB")

Hi qdhi

Could you try deleting the batching db? (Oxen datadir->sqlite.db).

it will rebuild from scratch using the current block, but if its been corrupted during the sync process it will struggle to get itself into the correct state

qdhj commented

Hi qdhi

Could you try deleting the batching db? (Oxen datadir->sqlite.db).

it will rebuild from scratch using the current block, but if its been corrupted during the sync process it will struggle to get itself into the correct state

worked! thanks!