Skip to content

Failed to deploy to Graph node https://api.studio.thegraph.com/deploy/: Could not deploy subgraph on graph-node #1990

Open
@AyushGfuture

Description

@AyushGfuture

Which packages are impacted by your issue?

@graphprotocol/graph-cli

Describe the issue

I was able to deploy this subgraph initially, but now I'm unable to deploy new versions. I can run graph codegen and graph build without any issues.

Here's the output of running graph deploy rp-token-dividend-polygon-amoy

The error at the end isn't giving me enough information to debug.

I'm using graph-cli version 0.96.0, node v20.18.1

Reproduction

https://github.com/AyushSinghaTeotia/RpToken-graph

Steps to Reproduce the Bug or Issue

PS D:\RWA\Polygon Amoy Subgraph\Latest cli version\rp-token-dividend-polygon-amoy> graph codegen
Skip migration: Bump mapping apiVersion from 0.0.1 to 0.0.2
Skip migration: Bump mapping apiVersion from 0.0.2 to 0.0.3
Skip migration: Bump mapping apiVersion from 0.0.3 to 0.0.4
Skip migration: Bump mapping apiVersion from 0.0.4 to 0.0.5
Skip migration: Bump mapping apiVersion from 0.0.5 to 0.0.6
Skip migration: Bump manifest specVersion from 0.0.1 to 0.0.2
Skip migration: Bump manifest specVersion from 0.0.2 to 0.0.4
√ Apply migrations
√ Load subgraph from subgraph.yaml
Load contract ABI from abis\Rptoken.json
√ Load contract ABIs
Generate types for contract ABI: Rptoken (abis\Rptoken.json)
Write types to generated\Rptoken\Rptoken.ts
√ Generate types for contract ABIs
√ Generate types for data source template ABIs
√ Load GraphQL schema from schema.graphql
Write types to generated\schema.ts
√ Generate types for GraphQL schema

Types generated successfully

PS D:\RWA\Polygon Amoy Subgraph\Latest cli version\rp-token-dividend-polygon-amoy> graph build
Skip migration: Bump mapping apiVersion from 0.0.1 to 0.0.2
Skip migration: Bump mapping apiVersion from 0.0.2 to 0.0.3
Skip migration: Bump mapping apiVersion from 0.0.3 to 0.0.4
Skip migration: Bump mapping apiVersion from 0.0.4 to 0.0.5
Skip migration: Bump mapping apiVersion from 0.0.5 to 0.0.6
Skip migration: Bump manifest specVersion from 0.0.1 to 0.0.2
Skip migration: Bump manifest specVersion from 0.0.2 to 0.0.4
√ Apply migrations
√ Load subgraph from subgraph.yaml
Compile data source: Rptoken => build\Rptoken\Rptoken.wasm
√ Compile subgraph
Copy schema file build\schema.graphql
Write subgraph file build\Rptoken\Rptoken.json
Write subgraph manifest build\subgraph.yaml
√ Write compiled subgraph to build\

Build completed: build\subgraph.yaml

PS D:\RWA\Polygon Amoy Subgraph\Latest cli version\rp-token-dividend-polygon-amoy> graph deploy
rp-token-dividend-polygon-amoy
√ Which product to deploy for? · subgraph-studio
Which version label to use? (e.g. "v0.0.1"): 0.0.1
Skip migration: Bump mapping apiVersion from 0.0.1 to 0.0.2
Skip migration: Bump mapping apiVersion from 0.0.2 to 0.0.3
Skip migration: Bump mapping apiVersion from 0.0.3 to 0.0.4
Skip migration: Bump mapping apiVersion from 0.0.4 to 0.0.5
Skip migration: Bump mapping apiVersion from 0.0.5 to 0.0.6
Skip migration: Bump manifest specVersion from 0.0.1 to 0.0.2
Skip migration: Bump manifest specVersion from 0.0.2 to 0.0.4
√ Apply migrations
√ Load subgraph from subgraph.yaml
Compile data source: Rptoken => build\Rptoken\Rptoken.wasm
√ Compile subgraph
Copy schema file build\schema.graphql
Write subgraph file build\Rptoken\Rptoken.json
Write subgraph manifest build\subgraph.yaml
√ Write compiled subgraph to build
Add file to IPFS build\schema.graphql
.. Qmc26ZatG9f74HqqDJ5fby8aDiyY8z2f3Xs5wRfqdzD5Vh
Add file to IPFS build\Rptoken\Rptoken.json
.. QmTEfYuVuhfhnPADCbFWSq3JnUC8Zy5Gvy7G6L7b3ji1dw
Add file to IPFS build\Rptoken\Rptoken.wasm
.. QmSBPnT7Qb2qACi5ZeTuedVBp8b4bgCBNUcMbiqBaWGPXa
√ Upload subgraph to IPFS

Build completed: QmSG1x2swWhuLHE1BJGmTufsZrpgwUHQ2zGrguEM4EGx3k

× Failed to deploy to Graph node https://api.studio.thegraph.com/deploy/: Could not deploy subgraph on graph-node: subgraph resolve error: resolve error: failed to resolve data source Rptoken
with source_address Some(0xdbb44d86f2ca0971ac27735c1b25da4d1dad5df3) and source_start_block 18868385. Deployment: QmSG1x2swWhuLHE1BJGmTufsZrpgwUHQ2zGrguEM4EGx3k
UNCAUGHT EXCEPTION: Error: EEXIT: 1
PS D:\RWA\Polygon Amoy Subgraph\Latest cli version\rp-token-dividend-polygon-amoy>

Expected behavior

the expected deployment of subgraph on polygon amoy chain

Screenshots or Videos

Image

No response

Platform

  • OS: [e.g. macOS, Windows, Linux]
  • NodeJS: [e.g. 18.5.0]
  • @graphprotocol/* version(s): [e.g. 2.6.2]

Subgraph Manifest

No response

Subgraph GraphQL Schema

No response

Additional context

No response

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