graph-node icon indicating copy to clipboard operation
graph-node copied to clipboard

Prune Auto Issue

Open Data-Nexus opened this issue 8 months ago • 1 comments

A user ran into this error after setting prune: auto in his manifest:

Failed to deploy to graph node 0.0.0.0:8020/: subgraph deployment error: store error: new row for relation "subgraph_manifest" violates check constraint "subgraph_manifest_history_blocks_check"

He is running graph-node 0.37.0 locally and does not have a min_history_blocks set in his environment variables. We may want to set this as a high number for a default figure (eg 100,000). Alternatively it might be better to remove the auto option and require the user state the specific history_blocks desired in the manifest.

https://github.com/graphprotocol/graph-node/blob/776afa14c324614abc84a72587f199cd7681153a/graph/src/data/subgraph/mod.rs#L603

Data-Nexus avatar Mar 31 '25 13:03 Data-Nexus

It defaults to 2*reorg_threshold. Is ETHEREUM_REORG_THRESHOLD set?

lutter avatar Apr 06 '25 19:04 lutter