Skip to content

[Bug] removing subgraphs using graphman not working #6108

@atharvagaikwad03

Description

@atharvagaikwad03

Bug report

Figment raised question on how to delete subgraphs from the database using graphman

$ graphman info -s QmZCJ7XVtgZLeAgReM3RfTq5j7LDx87ZXWYLLKvjMx4K9i
Namespace        | sgd1182 [primary]
Hash             | QmZCJ7XVtgZLeAgReM3RfTq5j7LDx87ZXWYLLKvjMx4K9i
Version          | indexer-agent/LKvjMx4K9i (current)
Chain            | mainnet
Node ID          | index_node_1
Active           | true
Paused           | false
Synced           | false
Health           | failed
Earliest Block   | 12450991
Latest Block     | 19628671
Chain Head Block | 22997767
   Blocks behind | 3369096

$ graphman unassign sgd1182
Unassigning deployment QmZCJ7XVtgZLeAgReM3RfTq5j7LDx87ZXWYLLKvjMx4K9i[1182]

$ graphman unused record
Recording unused deployments. This might take a while.
Recorded 0 unused deployments

$ graphman info -s QmZCJ7XVtgZLeAgReM3RfTq5j7LDx87ZXWYLLKvjMx4K9i
Namespace        | sgd1182 [primary]
Hash             | QmZCJ7XVtgZLeAgReM3RfTq5j7LDx87ZXWYLLKvjMx4K9i
Version          | indexer-agent/LKvjMx4K9i (current)
Chain            | mainnet
Node ID          | ---
Active           | true
Paused           | ---
Synced           | false
Health           | failed
Earliest Block   | 12450991
Latest Block     | 19628671
Chain Head Block | 22997811
   Blocks behind | 3369140

This suggested approach did not work for them

graphman pause
graphman unassign
graphman unused record 
graphman unused remove

Relevant log output

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions