You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cd subgraph
./deploy-subgraph local --version v1 --create
Hardware
OS
Ubuntu 24.10
RAM
16GB
:~/liquity/bold/subgraph$ sudo ./deploy-subgraph local --version v1 --create
Deploying subgraph:
NAME: liquity2/liquity2
VERSION: v1
GRAPH NODE: http://localhost:8020/
IPFS NODE: http://localhost:5001/
CREATE: yes
DEBUG: no
- Update sources network
Reading networks config
- Update sources network
Skip 'BoldToken': No changes to network configuration
- Update sources network
Skip 'Governance': No changes to network configuration
- Update sources network
✔ Update sources network
- Apply migrations
Skip migration: Bump mapping apiVersion from 0.0.1 to 0.0.2
- Apply migrations
Skip migration: Bump mapping apiVersion from 0.0.2 to 0.0.3
- Apply migrations
Skip migration: Bump mapping apiVersion from 0.0.3 to 0.0.4
- Apply migrations
Skip migration: Bump mapping apiVersion from 0.0.4 to 0.0.5
- Apply migrations
Skip migration: Bump mapping apiVersion from 0.0.5 to 0.0.6
- Apply migrations
Skip migration: Bump manifest specVersion from 0.0.1 to 0.0.2
- Apply migrations
- Skip migration: Bump manifest specVersion from 0.0.2 to 0.0.4
- Apply migrations
✔ Apply migrations
- Load subgraph from subgraph.yaml
✔ Load subgraph from subgraph.yaml
- Compile subgraph
Compile data source: BoldToken => build/BoldToken/BoldToken.wasm
- Compile subgraph
✖ Failed to compile subgraph: Failed to compile data source mapping: 7 parse error(s)
Error: EEXIT: 1
at Object.exit (/home/ubuntu/liquity/bold/node_modules/.pnpm/@[email protected]_@[email protected][email protected]/node_modules/@oclif/core/lib/errors/index.js:21:11)
at BuildCommand.exit (/home/ubuntu/liquity/bold/node_modules/.pnpm/@[email protected]_@[email protected][email protected]/node_modules/@oclif/core/lib/command.js:131:23)
at BuildCommand.run (/home/ubuntu/liquity/bold/node_modules/.pnpm/@[email protected]_@[email protected][email protected][email protected]/node_modules/@graphprotocol/graph-cli/dist/commands/build.js:76:22)
at async BuildCommand._run (/home/ubuntu/liquity/bold/node_modules/.pnpm/@[email protected]_@[email protected][email protected]/node_modules/@oclif/core/lib/command.js:117:22)
at async Config.runCommand (/home/ubuntu/liquity/bold/node_modules/.pnpm/@[email protected]_@[email protected][email protected]/node_modules/@oclif/core/lib/config/config.js:329:25)
at async Object.run (/home/ubuntu/liquity/bold/node_modules/.pnpm/@[email protected]_@[email protected][email protected]/node_modules/@oclif/core/lib/main.js:89:16)
Error: The AssemblyScript compiler crashed when compiling this file: 'src/BoldToken.mapping.ts'
Suggestion: try to comment the whole file and uncomment it little by little while re-running the graph-cli until you isolate the line where the problem happens.
Also, please contact us so we can make the CLI better by handling errors like this. You can reach out in any of these links:
- Discord channel: https://discord.gg/eM8CA6WA9r
- Github issues: https://github.com/graphprotocol/graph-tooling/issues/new/choose
at process.<anonymous> (/home/ubuntu/liquity/bold/node_modules/.pnpm/@[email protected]_@[email protected][email protected][email protected]/node_modules/@graphprotocol/graph-cli/dist/compiler/asc.js:29:11)
at process.emit (node:events:536:35)
at process.exit (node:internal/process/per_thread:182:15)
at Object.handle (/home/ubuntu/liquity/bold/node_modules/.pnpm/@[email protected]_@[email protected][email protected]/node_modules/@oclif/core/lib/errors/handle.js:33:21)
at module.exports (/home/ubuntu/liquity/bold/node_modules/.pnpm/@[email protected]_@[email protected][email protected]/node_modules/@oclif/core/handle.js:1:58)
Error: - Update sources network
Reading networks config
- Update sources network
Skip 'BoldToken': No changes to network configuration
- Update sources network
Skip 'Governance': No changes to network configuration
- Update sources network
✔ Update sources network
- Apply migrations
Skip migration: Bump mapping apiVersion from 0.0.1 to 0.0.2
- Apply migrations
Skip migration: Bump mapping apiVersion from 0.0.2 to 0.0.3
- Apply migrations
Skip migration: Bump mapping apiVersion from 0.0.3 to 0.0.4
- Apply migrations
Skip migration: Bump mapping apiVersion from 0.0.4 to 0.0.5
- Apply migrations
Skip migration: Bump mapping apiVersion from 0.0.5 to 0.0.6
- Apply migrations
Skip migration: Bump manifest specVersion from 0.0.1 to 0.0.2
- Apply migrations
Skip migration: Bump manifest specVersion from 0.0.2 to 0.0.4
- Apply migrations
✔ Apply migrations
- Load subgraph from subgraph.yaml
✔ Load subgraph from subgraph.yaml
- Compile subgraph
Compile data source: BoldToken => build/BoldToken/BoldToken.wasm
- Compile subgraph
✖ Failed to compile subgraph: Failed to compile data source mapping: 7 parse error(s)
Error: EEXIT: 1
at Object.exit (/home/ubuntu/liquity/bold/node_modules/.pnpm/@[email protected]_@[email protected][email protected]/node_modules/@oclif/core/lib/errors/index.js:21:11)
at BuildCommand.exit (/home/ubuntu/liquity/bold/node_modules/.pnpm/@[email protected]_@[email protected][email protected]/node_modules/@oclif/core/lib/command.js:131:23)
at BuildCommand.run (/home/ubuntu/liquity/bold/node_modules/.pnpm/@[email protected]_@[email protected][email protected][email protected]/node_modules/@graphprotocol/graph-cli/dist/commands/build.js:76:22)
at async BuildCommand._run (/home/ubuntu/liquity/bold/node_modules/.pnpm/@[email protected]_@[email protected][email protected]/node_modules/@oclif/core/lib/command.js:117:22)
at async Config.runCommand (/home/ubuntu/liquity/bold/node_modules/.pnpm/@[email protected]_@[email protected][email protected]/node_modules/@oclif/core/lib/config/config.js:329:25)
at async Object.run (/home/ubuntu/liquity/bold/node_modules/.pnpm/@[email protected]_@[email protected][email protected]/node_modules/@oclif/core/lib/main.js:89:16)
Error: The AssemblyScript compiler crashed when compiling this file: 'src/BoldToken.mapping.ts'
Suggestion: try to comment the whole file and uncomment it little by little while re-running the graph-cli until you isolate the line where the problem happens.
Also, please contact us so we can make the CLI better by handling errors like this. You can reach out in any of these links:
- Discord channel: https://discord.gg/eM8CA6WA9r
- Github issues: https://github.com/graphprotocol/graph-tooling/issues/new/choose
at process.<anonymous> (/home/ubuntu/liquity/bold/node_modules/.pnpm/@[email protected]_@[email protected][email protected][email protected]/node_modules/@graphprotocol/graph-cli/dist/compiler/asc.js:29:11)
at process.emit (node:events:536:35)
at process.exit (node:internal/process/per_thread:182:15)
at Object.handle (/home/ubuntu/liquity/bold/node_modules/.pnpm/@[email protected]_@[email protected][email protected]/node_modules/@oclif/core/lib/errors/handle.js:33:21)
at module.exports (/home/ubuntu/liquity/bold/node_modules/.pnpm/@[email protected]_@[email protected][email protected]/node_modules/@oclif/core/handle.js:1:58)
at Object.main (/home/ubuntu/liquity/bold/subgraph/cli/deploy-subgraph.ts:157:9)
exit code: 1
The text was updated successfully, but these errors were encountered:
expandboard
changed the title
Error in Run the subgraph locally
Error in Running the subgraph locally
Feb 13, 2025
This error be arisen when the subgraph is ran locally
1. Run anvil
anvil --host 0.0.0.0 --gas-limit 100000000000 --base-fee 1
2. Deploy the contracts
cd contracts
./deploy local
3. Run the graph node
cd subgraph
./start-graph
4. Deploy the subgraph
cd subgraph
./deploy-subgraph local --version v1 --create
Hardware
The text was updated successfully, but these errors were encountered: