graphprotocol / graphprotocol/graph-node

[Bug] Subgraph doesn't sync after node restart

Open
#4,921 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug question Stale
Dominant language
Rust
Stars
3.2k
Forks
1.1k
Avg merge
4d 1h
Merged PRs (30d)
1

Description

Bug report

I ran the Graph-Node Docker version locally on my server and deployed the Ethereum subgraph. It works and syncs well. But when I stop the Graph-Node with the docker compose down command and run it again with the docker compose up command, the Graph-Node doesn't continue syncing until I deploy the subgraph again. I've tried it with different RPCs and chains, but I encountered the same problem with all of them. Does anyone have any idea why this happens? Is it normal, or is it a Graph-Node bug?

Edit: I tried to resume the subgraph deployment to fix this problem with the following command:

graphman resume QmUc824r...

and I got:

resuming QmUc824r...
Operation completed

But Nothing happened and the problem remained.
Also, I tried to reassign the deployment using the following command:

graphman reassign QmUc824r... default

and I got:

deployment QmUc824r... is already assigned to default
warning: this is the only deployment assigned to default
are you sure it is spelled correctly?

Again nothing happened and the problem remained.

Edit: Today I noticed that when I ran a graph node for the first time, I saw the line in the logs that has something like this:

Started all assigned subgraphs.

But after restarting it again as I mentioned above, I can't find anything like this in the logs.

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

Linux

Contributor guide

Open the contributing guide

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

Reproduce the issue with the Graph-Node Docker setup using docker compose down and docker compose up, then inspect startup logs and the graphman resume and reassign commands described in the report. Done means the deployed Ethereum subgraph resumes syncing after restart without redeployment, with startup logs showing that assigned subgraphs were started.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, rust
Domain
backend, devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.