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

Support reth database version 2 #40

Open
halljson opened this issue Mar 20, 2024 · 3 comments
Open

Support reth database version 2 #40

halljson opened this issue Mar 20, 2024 · 3 comments

Comments

@halljson
Copy link

halljson commented Mar 20, 2024

Reth recently did an upgrade that required resyncing the entire database.

Reth-indexer does not support the new database version.

@joshstevens19
Copy link
Owner

joshstevens19 commented Mar 23, 2024

thanks for raising this - I am currently on holiday till the 8th of April cc @liangjh if he is around to look

@allnil
Copy link

allnil commented May 16, 2024

hey guys! @halljson @joshstevens19 @liangjh
am I right that Reth-indexer at this moment can't work with the most recent reth because of DB changes?
I didn't saw any new commits since March so it's just for clarification and peace of my mind
I tried to understand why I got these errors on the synced holesky node :)
basically bigquery barks that there is no rows to insert


hint: you can go to your postgres to see it writing in real time...
last block number in provider Ok(0)
best block number in provider Err(Database(InitCursor(-30798)))
Executing sync_state_to_db for table: "approval"
   writing / sync bigquery table: "approval"
row cnt gcp: 0
gcp insert request: TableDataInsertAllRequest { ignore_unknown_values: false, kind: None, rows: [], skip_invalid_rows: false, template_suffix: None }
Failed, reason: ResponseError { error: ResponseError { error: NestedResponseError { code: 400, errors: [{"reason": "invalid", "domain": "global", "message": "No rows present in the request."}], message: "No rows present in the request.", status: "INVALID_ARGUMENT" } } }
Executing sync_state_to_db for table: "swap"
   writing / sync bigquery table: "swap"
row cnt gcp: 0
gcp insert request: TableDataInsertAllRequest { ignore_unknown_values: false, kind: None, rows: [], skip_invalid_rows: false, template_suffix: None }
Failed, reason: ResponseError { error: ResponseError { error: NestedResponseError { code: 400, errors: [{"domain": "global", "message": "No rows present in the request.", "reason": "invalid"}], message: "No rows present in the request.", status: "INVALID_ARGUMENT" } } }
Executing sync_state_to_db for table: "transfer"
   writing / sync bigquery table: "transfer"
row cnt gcp: 0
gcp insert request: TableDataInsertAllRequest { ignore_unknown_values: false, kind: None, rows: [], skip_invalid_rows: false, template_suffix: None }
Failed, reason: ResponseError { error: ResponseError { error: NestedResponseError { code: 400, errors: [{"message": "No rows present in the request.", "domain": "global", "reason": "invalid"}], message: "No rows present in the request.", status: "INVALID_ARGUMENT" } } }
postgres sync is now complete
Elapsed time: 1.14s

thanks

@joshstevens19
Copy link
Owner

@allnil yeah it just needs migrating to the new reth database tables it should be a quick fix, up against it atm to fix this really trying to make time so will accept a PR if you want to have ago

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

No branches or pull requests

3 participants