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

Subgraph using Aggregations⁠ failing randomly #5530

Open
1 of 3 tasks
itsjerryokolo opened this issue Jul 11, 2024 · 5 comments
Open
1 of 3 tasks

Subgraph using Aggregations⁠ failing randomly #5530

itsjerryokolo opened this issue Jul 11, 2024 · 5 comments
Assignees
Labels
area/aggregations bug Something isn't working

Comments

@itsjerryokolo
Copy link
Contributor

Bug report

This subgraph fails randomly with the error below.

"Failed to transact block operations: store error: duplicate key value violates unique constraint \"transfer_stats_hour_id_key\"",

The same block 6284464 which it failed in (QmQZadt6wd8wo8U6opsVnjpAjx2Ysh3iLiPXuydJ65eqT3) is successfully processed in a new deployment (QmYktZYrbaENqm9nS8kvBxnzsRUyh4ueuQ679mYwMdNLpz)

Relevant log output

No response

IPFS hash

No response

Subgraph name or link to explorer

No response

Some information to help us out

  • Tick this box if this bug is caused by a regression found in the latest release.
  • Tick this box if this bug is specific to the hosted service.
  • I have searched the issue tracker to make sure this issue is not a duplicate.

OS information

None

@itsjerryokolo itsjerryokolo added the bug Something isn't working label Jul 11, 2024
@george-openformat
Copy link

george-openformat commented Jul 18, 2024

Running into the same issue:
subgraph | playground

First deployment on arbitrum-sepolia failed on block 64040656 after deploying a new version failed on block 64603832

@silvercondor
Copy link

getting same error on multiple subgraphs.

note that it can also happen for daily aggregations

@tinypell3ts
Copy link

I'm also getting the same error in my subgraph.

ERRO Subgraph failed with non-deterministic error: Failed to transact block operations: store error: duplicate key value violates unique constraint "transaction_stat_hour_id_key", retry_delay_s: 3732, attempt: 40, sgd: 5389, subgraph_id: QmZFm5y76cnjiF5TBfCCufVyR9sQAaWV6Ygm9Fg3cTUSed, component: SubgraphInstanceManager

@tsudmi
Copy link

tsudmi commented Oct 1, 2024

Running into the same issue. Any updates on this?

@gperezalba
Copy link

Same issue here. Also would be nice to include a working example of the mapping in https://github.com/graphprotocol/graph-node/blob/master/docs/aggregations.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/aggregations bug Something isn't working
Projects
None yet
Development

No branches or pull requests

8 participants