graphprotocol / graphprotocol/indexer

[Indexer-Agent]Failed to ensure default "global" indexing rule, err: Failed to ensure default global indexing rule

Open
#402 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
262
Forks
148
PR merge metrics
No merged PRs in 30d

Description

My indexer agent crash after update agent to 0.19.0

My log :


IndexerError: Failed to ensure default global indexing rule
14|indexer_agent  |     at Object.indexerError (/root/.nvm/versions/node/v14.17.3/lib/node_modules/@graphprotocol/indexer-agent/node_modules/@graphprotocol/indexer-common/dist/errors.js:143:12)
14|indexer_agent  |     at Indexer.<anonymous> (/root/.nvm/versions/node/v14.17.3/lib/node_modules/@graphprotocol/indexer-agent/dist/indexer.js:282:46)
14|indexer_agent  |     at Generator.next (<anonymous>)
14|indexer_agent  |     at fulfilled (/root/.nvm/versions/node/v14.17.3/lib/node_modules/@graphprotocol/indexer-agent/dist/indexer.js:5:58)
14|indexer_agent  |     at processTicksAndRejections (internal/process/task_queues.js:95:5) {
14|indexer_agent  |   code: 'IE017',
14|indexer_agent  |   explanation: 'https://github.com/graphprotocol/indexer/blob/master/docs/errors.md#ie017',
14|indexer_agent  |   cause: TypeError: Cannot read property 'indexingRule' of undefined
14|indexer_agent  |       at Indexer.<anonymous> (/root/.nvm/versions/node/v14.17.3/lib/node_modules/@graphprotocol/indexer-agent/dist/indexer.js:241:38)
14|indexer_agent  |       at Generator.next (<anonymous>)
14|indexer_agent  |       at fulfilled (/root/.nvm/versions/node/v14.17.3/lib/node_modules/@graphprotocol/indexer-agent/dist/indexer.js:5:58)
14|indexer_agent  |       at processTicksAndRejections (internal/process/task_queues.js:95:5)
14|indexer_agent  | }

version :

graph-node  : 0.26.0
indexer-agent : 0.19.0

I tried delete all data of IndexingRules table but no luck.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the stack trace in indexer-agent/dist/indexer.js around lines 241 and 282, then read the IE017 explanation in docs/errors.md. Reproduce the failure using graph-node 0.26.0 and indexer-agent 0.19.0, checking the IndexingRules table state; done when the default global indexing rule is ensured without the reported TypeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.