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

FlushError & Unexpected data beyond EOF #1406

Open
Clonescody opened this issue Jan 6, 2025 · 3 comments
Open

FlushError & Unexpected data beyond EOF #1406

Clonescody opened this issue Jan 6, 2025 · 3 comments

Comments

@Clonescody
Copy link

Clonescody commented Jan 6, 2025

Version

ponder 0.8.14

Current behavior

After upgrading to ponder 0.8.14 (from @ponder/core 0.7.17), running the indexer throws some errors & warnings before stopping.
A couple different errors happen, firstly, the table.flush() function fails when trying to flush cache. This happens after some events are read and indexed correctly

image

The second issue is an error thrown with regard to flushing as well FlushError: unexpected data beyond EOF in block 0 of relation base/1/47350

image

I am indexing datas on the Arbitrum chain, not sure what could help to debug feel free to ask for details.

Expected behavior

Indexing should run fully and db flush functions should run.

Steps to reproduce

The code can be found in this gist where I added the config, schema, indexing functions and ABIs

Link to repository

No response

Anything else?

No response

@typedarray
Copy link
Collaborator

Thanks for opening.

  1. Does this happen consistently / reproducibly?
  2. Where is this ponder app running?
  3. Where is the Postgres server running? Local machine? Over a virtual/network file system perhaps? Quick searches indicate that this only happens on Postgres servers running over network file systems.

@Clonescody
Copy link
Author

  1. Yeah, tried to regen and reinstall but error remains the same, started happening for more tables after full reinstall
image
  1. It's running on my local machine using pglite, all tables are created correctly, indexing starts and goes to 95%+ before stopping
  2. Per above, everything running on my local machine ( mac Ventura 13 / node v20.14.0 / postgres 14.15 )
image

@Clonescody
Copy link
Author

More details :

  • I reverted my ponder to 0.7.17 for now, I had to delete the .ponder folder as the DB wasn't starting properly (probably due to 0.8 migration prior), and after doing this it works fine as it used to.
  • Learning from the above I tried to go back to 0.8 and deleting the .ponder folder as well to see if a fresh install would work. No chance on that either, I got the same flush() error, but also a couple of new ones indicating that the schemas weren't setup correctly
image

Staying on 0.17 for now as that's what works for me, but can easily test 0.8 if you need me to 👍

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

2 participants