graphprotocol / graph-node

Graph Node indexes data from blockchains such as Ethereum and serves it over GraphQL
https://thegraph.com
Apache License 2.0
2.92k stars 984 forks source link

Balancer - pruned subgraph panicked at graph/src/components/subgraph/proof_of_indexing/online.rs:137:26: #5308

Open yash251 opened 8 months ago

yash251 commented 8 months ago

Bug report

the subgraph is stuck on block number 54559455 on polygon network

Qm hash - QmeUa1DYUkYwVMFMtxjPobSaGyMhbUVyMU5Uknpcua3bCC

error encountered is

stderr F thread 'QmeUa1DYUkYwVMFMtxjPobSaGyMhbUVyMU5Uknpcua3bCC[702734]' panicked at graph/src/components/subgraph/proof_of_indexing/online.rs:137:26:

they deployed 2 polygon subgraphs, pruned and unpruned. both uses the same grafting base and block. unpruned has synced last week: QmWW1BQ4PfHtLbLRxyMyNVsGdR14rnUaZAyCFKz34Yx7bC but pruned (using indexerHints for the first time) is stuck: QmeUa1DYUkYwVMFMtxjPobSaGyMhbUVyMU5Uknpcua3bCC

graft: base: QmfFmtcLKRugnPe8HFmmvdtUgM6gvUSSsFXGeCTX6sH4Zg block: 54559455

they simply deployed with the indexerHints set to pruning 100k blocks and grafted onto another Subgraph repo - https://github.com/balancer/balancer-subgraph-v2/tree/dev

Relevant log output

No response

IPFS hash

QmeUa1DYUkYwVMFMtxjPobSaGyMhbUVyMU5Uknpcua3bCC

Subgraph name or link to explorer

No response

Some information to help us out

OS information

None

mendesfabio commented 8 months ago

hey, leaving a comment here to receive notifications. let me know if you need any other info!

mendesfabio commented 8 months ago

hey folks - any updates here? this has been preventing us from launching new pools on Balancer =/

leoyvens commented 8 months ago

@mendesfabio You grafted a specVersion 1.0.0 subgraph on top of a specVersion 0.0.4 subgraph, that is not supported due to a change in the Proof of Indexing algorithm. Are you able to use the unpruned subgraph for now, while you resync the pruned one without grafting?

mendesfabio commented 8 months ago

we've found a way around it, thank you!

github-actions[bot] commented 2 months ago

Looks like this issue has been open for 6 months with no activity. Is it still relevant? If not, please remember to close it.

DaMandal0rian commented 1 month ago

@mendesfabio it would be good for the community to provide what the workaround was so it could help others facing such issues in the future. :)