graphprotocol / graphprotocol/indexer

Agent is not deploying offline subgraphs

Open
#536 1 comment 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

Indexer/Service/CLI v0.20.5-alpha.1 and Graph node v0.28.2

When deploying offline subgraphs either via INDEXER_AGENT_OFFCHAIN_SUBGRAPHS or graph indexer rules prepare Qm.. the agent seems to look likes it's deploying the subgraphs but never does. Agent logs attached.

If you look at the also attached graph node logs, you will see some behaviour that I am assuming is weird - the offchain subgraphs are being referred to as being sgd: 0 in the graph node logs.

For example, Nov 07 00:20:58.223 INFO Set subgraph start block, block: Some(#11296635 (624092abf48ac2437ed77ce96d6f061431838ea1a8404e181d7df37b9bb53dc0)), sgd: 0, subgraph_id: Qmew9PZUJCoDzXqqU6vGyTENTKHrrN4dy5h94kertfudqy, component: SubgraphRegistrar whereas this subgraph is sgd8 in the database.

index-node-0.txt
indexer-agent.txt

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 by reproducing deployment through INDEXER_AGENT_OFFCHAIN_SUBGRAPHS and graph indexer rules prepare Qm.. using the attached indexer-agent.txt and index-node-0.txt logs. Compare the agent's deployment path with the graph node's sgd: 0 entries and the database value sgd8; done means offline subgraphs are actually deployed and their identifiers are handled consistently.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
backend, cli, databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.