ordhook icon indicating copy to clipboard operation
ordhook copied to clipboard

blocks are written to the db in an incomplete state which halts indexing

Open habibitcoin opened this issue 1 year ago • 6 comments

I just tried this using the latest archives, and then trying the 20240920 archives

Each time, I hit this issue:

Sep 20 17:27:19 ip-172-31-87-211 ordhook[3957448]: Sep 20 17:27:19.359 INFO Inscriptions data computation for block #860926 collected
Sep 20 17:27:19 ip-172-31-87-211 ordhook[3957448]: Sep 20 17:27:19.359 INFO Inscriptions data computation for block #860926 ended
Sep 20 17:27:19 ip-172-31-87-211 ordhook[3957448]: Sep 20 17:27:19.359 ERRO Unable to retrieve backward traversal result for inscription 0x8f24e1365658017220c603559f46f0b84748316dd8bf9261d3448cd8c2d61087

Any ideas?

Im wondering if perhaps there is a bug in the archives themselves? Curiously, the updated date when extracting the brc20.sqlite and hord.sqlite files are Sept 11 and Sept 12 respectively.

Related issues: https://github.com/hirosystems/ordhook/issues/334 https://github.com/hirosystems/ordhook/issues/310

habibitcoin avatar Sep 24 '24 23:09 habibitcoin

I have the same issue. Recompiling ordhook = no go Deleting the database = no go Using other backup archives from Hiro = no go It's exactly the same block and inscription that generates the problem OS = Windows 10 I7 RAM 32gb m2 2to

inatendu29 avatar Oct 22 '24 03:10 inatendu29

hi @inatendu29 thanks for reporting, I just confirmed that the archive does contain this flaw so even if you download our latest you'll stumble into this issue.

I haven't yet identified the cause for this issue, though, so I will continue to investigate.

what you can do to fix it for now is to run this command first

ordhook db drop 860926 860926 --config-path <path>

which will get rid of the corrupt block, and then go back to

ordhook service start --config-path <path>

this will resume indexing

rafaelcr avatar Oct 22 '24 22:10 rafaelcr

leaving here for reference, this line causes the error because some data for this block exists which causes the sequencing code to skip some previously-seen inscriptions

rafaelcr avatar Oct 22 '24 22:10 rafaelcr

Thanks for your reply. Fixed with drop cmd or download the last archive

inatendu29 avatar Oct 28 '24 09:10 inatendu29

I downloaded the latest snapshot and ran into an identical error on block 868629. I didn't capture the inscription ID but drop cmd got it going again. Seems odd that the snapshot itself would have invalid blocks.

dwasyluk avatar Nov 20 '24 19:11 dwasyluk

I have the same problem. I had to stop and unfortunately I'm looking for a reply solution to ordhook-- Sebastien

20 nov. 2024, 20:16 de @.***:

I downloaded the latest snapshot and ran into an identical error on block > 868629> . I didn't capture the inscription ID but drop cmd got it going again. Seems odd that the snapshot itself would have invalid blocks.

— Reply to this email directly, > view it on GitHub https://github.com/hirosystems/ordhook/issues/368#issuecomment-2489361830> , or > unsubscribe https://github.com/notifications/unsubscribe-auth/BJBUZHCJRVTZ6OJRN7QWUMT2BTNZLAVCNFSM6AAAAABOZJ5CV6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOBZGM3DCOBTGA> . You are receiving this because you were mentioned.> Message ID: > <hirosystems/ordhook/issues/368/2489361830> @> github> .> com>

inatendu29 avatar Nov 22 '24 14:11 inatendu29