Subgraph error on my local node

I am developing the fork of pancakeswap v3 on pulsechain and need subgraph for this.

I found that pulsechain is not supported so I deployed graph node on my server.

version: '3'
services:
  graph-node:
    image: graphprotocol/graph-node
    ports:
      - '8000:8000'
      - '8001:8001'
      - '8020:8020'
      - '8030:8030'
      - '8040:8040'
    depends_on:
      - ipfs
      - postgres
    extra_hosts:
      - host.docker.internal:host-gateway
    environment:
      postgres_host: postgres
      postgres_user: graph-node
      postgres_pass: let-me-in
      postgres_db: graph-node
      ipfs: 'ipfs:5001'
      ethereum: 'mainnet:https://rpc.v4.testnet.pulsechain.com/'
      GRAPH_LOG: info
  ipfs:
    image: ipfs/kubo:v0.14.0
    ports:
      - '5001:5001'
    volumes:
      - ./data/ipfs:/data/ipfs
  postgres:
    image: postgres:14
    ports:
      - '5432:5432'
    command:
      [
        "postgres",
        "-cshared_preload_libraries=pg_stat_statements",
        "-cmax_connections=200"
      ]
    environment:
      POSTGRES_USER: graph-node
      POSTGRES_PASSWORD: let-me-in
      POSTGRES_DB: graph-node
      # FIXME: remove this env. var. which we shouldn't need. Introduced by
      # <https://github.com/graphprotocol/graph-node/pull/3511>, maybe as a
      # workaround for https://github.com/docker/for-mac/issues/6270?
      PGDATA: "/var/lib/postgresql/data"
      POSTGRES_INITDB_ARGS: "-E UTF8 --locale=C"
    volumes:
      - ./data/postgres:/var/lib/postgresql/data

This is my docker-compose.yaml file

docker-compose up -d

So I set up node on my server.

And then I deployed my subgraph on this server.

It’s deployed to
http://80.78.27.230:8000/subgraphs/name/pulsetestnet/exchange-v3

But it’s not working.

So I checked logs.

I’ve found some errors.

graph-node_1  | thread 'mapping-QmNpBqdiqamqfr6cPAju1TEJWzGZRCj2i4kE576a2431uw-79d5ac66-8030-4ed1-a653-013513374491' panicked at 'called `Result::unwrap()` on an `Err` value: `allocate` function not found', /graph-node/runtime/wasm/src/module/mod.rs:639:9

graph-node_1  | Sep 28 21:21:47.796 INFO Subgraph error is still ahead of deployment head, nothing to unfail, error_block_hash: 0xfb7848282cda2396a82180fb824cf7bb1afc7b3d23c2ce30d1f663c20aad228f, error_block_range: (Included(17572842), Unbounded), block_hash: 0x2d62c10fb82976c9fa2804c310eaac90b59f1e66b79c9b53ef85e5cf506a86fe, block_number: 17572768, subgraph_id: QmNpBqdiqamqfr6cPAju1TEJWzGZRCj2i4kE576a2431uw, shard: primary, component: Store

What is problem?

Please help me.

Thanks in advance.

2 Likes