graphprotocol / indexer

Graph Protocol indexer components and infrastructure
MIT License
242 stars 133 forks source link

Agent is not deploying offline subgraphs #536

Open cryptovestor21 opened 2 years ago

cryptovestor21 commented 2 years ago

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

fordN commented 2 years ago

The sgd: 0 logs are odd.

Are you using a toml file to configure your graph-node à la advanced config docs? Control of deployment assignments has been moved out of indexer-agent and now graph-node is making the assignment decisions based on the config.