Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
habibitcoin opened this issue Sep 24, 2024 · 4 comments
Assignees

Comments

@habibitcoin
Copy link

habibitcoin commented Sep 24, 2024

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:
#334
#310

@github-project-automation github-project-automation bot moved this to 🆕 New in Ordinals Sep 24, 2024
@andresgalante andresgalante moved this from 🆕 New to 📋 Backlog in Ordinals Sep 30, 2024
@inatendu29
Copy link

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

@rafaelcr
Copy link
Collaborator

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 rafaelcr changed the title [re-opening] ordhook service always stopped running [ERRO Unable to retrieve backward traversal result for inscription] blocks are written to the db in an incomplete state which halts indexing Oct 22, 2024
@rafaelcr
Copy link
Collaborator

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

@inatendu29
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 📋 Backlog
Development

No branches or pull requests

3 participants