Skip to content

Instantly share code, notes, and snippets.

@SEJeff
Created August 12, 2022 20:57
Show Gist options
  • Save SEJeff/7bc18585d4fae51c6cc65380e9c9ce7c to your computer and use it in GitHub Desktop.
Save SEJeff/7bc18585d4fae51c6cc65380e9c9ce7c to your computer and use it in GitHub Desktop.
Karura node
$ curl -sq -XPOST -H 'Content-Type: application/json' -d '{"jsonrpc":"2.0","id":"nopenopenope","method":"system_chain","params":[]
}' http://localhost:9933  | jq . -C
{
  "jsonrpc": "2.0",
  "result": "Karura",
  "id": "nopenopenope"
}
$ curl -sq -XPOST -H 'Content-Type: application/json' -d '{"jsonrpc":"2.0","id":"yoooo","method":"system_syncState","params":[]}' 
http://localhost:9933  | jq . -C
{
  "jsonrpc": "2.0",
  "result": {
    "currentBlock": 2440882,
    "highestBlock": 2440882,
    "startingBlock": 0
  },
  "id": "yoooo"
}

We are running an older acala, perhaps we need to upgrade?

$ acala --version
acala 2.5.1-52ab0a6-x86_64-linux-gnu
/usr/bin/podman run --cgroups=no-conmon --rm --sdnotify=conmon --replace -e \
DB_USER=postgres -e \
DB_PASS=postgres -e \
DB_HOST=localhost -e \
DB_DATABASE=acala -e \
DB_PORT=5432 -e \
PORT=3001 \
--net=host \
--name evm-subql-indexer \
docker.io/acala/evm-subql@sha256:d75cda07a7cc1b847617978462643da006e5cab5d6835abea256a7e2987e569b indexer
Aug 12 20:28:18 [hostname here] systemd[1]: Started The acala ethereum evm subql indexer service.
Aug 12 20:28:19 [hostname here] podman[2067468]: @polkadot/util has multiple versions, ensure that there is only one installed.
Aug 12 20:28:19 [hostname here] podman[2067468]: Either remove and explicitly install matching versions or dedupe using your package manager.
Aug 12 20:28:19 [hostname here] podman[2067468]: The following conflicting packages were found:
Aug 12 20:28:19 [hostname here] podman[2067468]: cjs 10.1.2 node_modules/@subql/node/node_modules/@polkadot/util/cjs
Aug 12 20:28:19 [hostname here] podman[2067468]: cjs 9.7.2 node_modules/@subql/node/node_modules/@subql/utils/node_modules/@polkadot/util/cjs
Aug 12 20:28:21 [hostname here] podman[2067468]: 2022-08-12T20:28:21.136Z <indexer> INFO indexer manager start
Aug 12 20:28:21 [hostname here] podman[2067468]: 2022-08-12 20:28:21 REGISTRY: Unknown signed extensions SetEvmOrigin found, treating them as no-effect
Aug 12 20:28:21 [hostname here] podman[2067468]: 2022-08-12 20:28:21 API/INIT: RPC methods not decorated: tokens_queryExistentialDeposit
Aug 12 20:28:21 [hostname here] podman[2067468]: 2022-08-12 20:28:21 API/INIT: Not decorating unknown runtime apis: 0xe3df3f2aa8a5cc57/2
Aug 12 20:28:21 [hostname here] podman[2067468]: 2022-08-12T20:28:21.605Z <api> ERROR Network chainId doesn't match expected genesisHash. expected="0x1263afda73d7dbab10585738e9712669f197550e68c2e23edda1c13d0e93605d" actual="0xbaf5aabe40646d11f0ee8abbdc64f4a4b7674925cba08e4a05ff9ebed6e2126b Error: Network chainId doesn't
match expected genesisHash. expected="0x1263afda73d7dbab10585738e9712669f197550e68c2e23edda1c13d0e93605d" actual="0xbaf5aabe40646d11f0ee8abbdc64f4a4b7674925cba08e4a05ff9ebed6e2126b
Aug 12 20:28:21 [hostname here] podman[2067468]: 2022-08-12T20:28:21.606Z <subql-node> ERROR Node failed to start Error: Network chainId doesn't match expected genesisHash. expected="0x1263afda73d7dbab10585738e9712669f197550e68c2e23edda1c13d0e93605d" actual="0xbaf5aabe40646d11f0ee8abbdc64f4a4b7674925cba08e4a05ff9ebed6e2126b
Aug 12 20:28:21 [hostname here] systemd[1]: evm-subql-indexer.service: Succeeded.
Aug 12 20:28:21 [hostname here] systemd[1]: evm-subql-indexer.service: Service RestartSec=100ms expired, scheduling restart.
Aug 12 20:28:21 [hostname here] systemd[1]: evm-subql-indexer.service: Scheduled restart job, restart counter is at 646.
Aug 12 20:28:21 [hostname here] systemd[1]: Stopped The acala ethereum evm subql indexer service.
/usr/bin/podman run --cgroups=no-conmon --rm --sdnotify=conmon --replace -e \
DB_USER=postgres -e \
DB_PASS=postgres -e \
DB_HOST=localhost -e \
DB_DATABASE=acala -e \
DB_PORT=5432 -e \
PORT=3001 \
--net=host \
--name evm-subql-query \
docker.io/acala/evm-subql@sha256:d75cda07a7cc1b847617978462643da006e5cab5d6835abea256a7e2987e569b query
Aug 12 20:26:49 [hostname here] systemd[1]: Started The acala ethereum evm subql query service.
Aug 12 20:26:50 [hostname here] podman[2057283]: @polkadot/util has multiple versions, ensure that there is only one installed.
Aug 12 20:26:50 [hostname here] podman[2057283]: Either remove and explicitly install matching versions or dedupe using your package manager.
Aug 12 20:26:50 [hostname here] podman[2057283]: The following conflicting packages were found:
Aug 12 20:26:50 [hostname here] podman[2057283]: cjs 10.1.2 node_modules/@subql/node/node_modules/@polkadot/util/cjs
Aug 12 20:26:50 [hostname here] podman[2057283]: cjs 9.7.2 node_modules/@subql/node/node_modules/@subql/utils/node_modules/@polkadot/util/cjs
Aug 12 20:26:51 [hostname here] podman[2057283]: 2022-08-12T20:26:51.707Z <indexer> INFO indexer manager start
Aug 12 20:26:52 [hostname here] podman[2057283]: 2022-08-12 20:26:52 REGISTRY: Unknown signed extensions SetEvmOrigin found, treating them as no-effect
Aug 12 20:26:52 [hostname here] podman[2057283]: 2022-08-12 20:26:52 API/INIT: RPC methods not decorated: tokens_queryExistentialDeposit
Aug 12 20:26:52 [hostname here] podman[2057283]: 2022-08-12 20:26:52 API/INIT: Not decorating unknown runtime apis: 0xe3df3f2aa8a5cc57/2
Aug 12 20:26:52 [hostname here] podman[2057283]: 2022-08-12T20:26:52.161Z <api> ERROR Network chainId doesn't match expected genesisHash. expected="0x1263afda73d7dbab10585738e9712669f197550e68c2e23edda1c13d0e93605d" actual="0xbaf5aabe40646d11f0ee8abbdc64f4a4b7674925cba08e4a05ff9ebed6e2126b Error: Network chainId doesn't match expected genesisHash. expected="0x1263afda73d7dbab10585738e9712669f197550e68c2e23edda1c13d0e93605d" actual="0xbaf5aabe40646d11f0ee8abbdc64f4a4b7674925cba08e4a05ff9ebed6e2126b
Aug 12 20:26:52 [hostname here] podman[2057283]: 2022-08-12T20:26:52.161Z <subql-node> ERROR Node failed to start Error: Network chainId doesn't match expected genesisHash. expected="0x1263afda73d7dbab10585738e9712669f197550e68c2e23edda1c13d0e93605d" actual="0xbaf5aabe40646d11f0ee8abbdc64f4a4b7674925cba08e4a05ff9ebed6e2126b
Aug 12 20:26:52 [hostname here] systemd[1]: evm-subql-query.service: Succeeded.
Aug 12 20:26:52 [hostname here] systemd[1]: evm-subql-query.service: Service RestartSec=100ms expired, scheduling restart.
Aug 12 20:26:52 [hostname here] systemd[1]: evm-subql-query.service: Scheduled restart job, restart counter is at 619.
/opt/bin/acala \
--chain karura \
--port 30333 \
--ws-port 9944 \
--rpc-port 9933 \
--base-path=/opt/karura/node \
--pruning=archive \
--no-private-ipv4 \
--ws-external \
--rpc-external \
--prometheus-external \
--ws-max-connections 2000 \
--unsafe-ws-external \
--unsafe-rpc-external \
--rpc-cors=all \
--rpc-methods=unsafe \
--execution=wasm \
-- \
--chain kusama \
--prometheus-external
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment