axelarnetwork / axelarate-community

Tools to join the axelar network
GNU General Public License v3.0
44 stars 57 forks source link

`./scripts/setup-node.sh` followed by running the node does not work #387

Open sseefried opened 1 year ago

sseefried commented 1 year ago

Description

For commit de212f58403dc44c75a088dac2ce584df841ca34 I ran

$ ./scripts/setup-node.sh -n testnet

and followed the instructions. At the end I was told that I could run the node with the following command

/home/sseefried/.axelar_testnet/bin/axelard start [moniker] --home /home/sseefried/.axelar_testnet >> /home/sseefried/.axelar_testnet/logs/axelard.log 2>&1 &

After choosing a suitable [moniker] and trying this I got the following output in ~/.axelar_testnet/logs/axelard.log

2022-10-20T11:02:00+10:00 INF adding 16 seeds from seeds.toml
2022-10-20T11:02:00+10:00 INF starting node with ABCI Tendermint in-process
2022-10-20T11:02:00+10:00 INF Starting multiAppConn service impl=multiAppConn module=proxy
2022-10-20T11:02:00+10:00 INF Starting localClient service connection=query impl=localClient module=abci-client
2022-10-20T11:02:00+10:00 INF Starting localClient service connection=snapshot impl=localClient module=abci-client
2022-10-20T11:02:00+10:00 INF Starting localClient service connection=mempool impl=localClient module=abci-client
2022-10-20T11:02:00+10:00 INF Starting localClient service connection=consensus impl=localClient module=abci-client
2022-10-20T11:02:00+10:00 INF Starting EventBus service impl=EventBus module=events
2022-10-20T11:02:00+10:00 INF Starting PubSub service impl=PubSub module=pubsub
2022-10-20T11:02:00+10:00 INF Starting IndexerService service impl=IndexerService module=txindex
2022-10-20T11:02:00+10:00 INF ABCI Handshake App Info hash= height=0 module=consensus protocol-version=0 software-version=0.26.0-patch
2022-10-20T11:02:00+10:00 INF ABCI Replay Blocks appHeight=0 module=consensus stateHeight=0 storeHeight=0
2022-10-20T11:02:00+10:00 INF asserting crisis invariants inv=1/11 module=x/crisis name=gov/module-account
2022-10-20T11:02:00+10:00 INF asserting crisis invariants inv=2/11 module=x/crisis name=staking/module-accounts
2022-10-20T11:02:00+10:00 INF asserting crisis invariants inv=3/11 module=x/crisis name=staking/nonnegative-power
2022-10-20T11:02:00+10:00 INF asserting crisis invariants inv=4/11 module=x/crisis name=staking/positive-delegation
2022-10-20T11:02:00+10:00 INF asserting crisis invariants inv=5/11 module=x/crisis name=staking/delegator-shares
2022-10-20T11:02:00+10:00 INF asserting crisis invariants inv=6/11 module=x/crisis name=bank/nonnegative-outstanding
2022-10-20T11:02:00+10:00 INF asserting crisis invariants inv=7/11 module=x/crisis name=bank/total-supply
2022-10-20T11:02:00+10:00 INF asserting crisis invariants inv=8/11 module=x/crisis name=distribution/nonnegative-outstanding
2022-10-20T11:02:00+10:00 INF asserting crisis invariants inv=9/11 module=x/crisis name=distribution/can-withdraw
2022-10-20T11:02:00+10:00 INF asserting crisis invariants inv=10/11 module=x/crisis name=distribution/reference-count
2022-10-20T11:02:00+10:00 INF asserting crisis invariants inv=11/11 module=x/crisis name=distribution/module-account
2022-10-20T11:02:00+10:00 INF asserted all invariants duration=1.124706 height=690489 module=x/crisis
panic: unknown field "gateway_code" in types.Params

goroutine 1 [running]:
github.com/cosmos/cosmos-sdk/codec.(*ProtoCodec).MustUnmarshalJSON(0x0?, {0xc000d94000?, 0x17?, 0xa8939?}, {0x2e7aa40?, 0xc000126b70?})
    /home/ubuntu/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.45.6/codec/proto_codec.go:176 +0x45
github.com/axelarnetwork/axelar-core/x/evm.AppModule.InitGenesis({{}, {0x2e8f050, 0xc000130d80}, {{0x2e76a10, 0xc000fc99c0}, {0x2e9b4f8, 0xc0005cc890}, {0x2e788b0, 0xc000d15940}, 0xc000d0ce10}, ...}, ...)
    /home/ubuntu/axelar-core-2/x/evm/module.go:134 +0xa7
github.com/cosmos/cosmos-sdk/types/module.(*Manager).InitGenesis(_, {{0x2e8dfe8, 0xc000136000}, {0x2e9d000, 0xc0012e5000}, {{0x0, 0x0}, {0xc0000598a8, 0x17}, 0xa8939, ...}, ...}, ...)
    /home/ubuntu/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.45.6/types/module/module.go:320 +0x29d
github.com/axelarnetwork/axelar-core/app.(*AxelarApp).InitChainer(_, {{0x2e8dfe8, 0xc000136000}, {0x2e9d000, 0xc0012e5000}, {{0x0, 0x0}, {0xc0000598a8, 0x17}, 0xa8939, ...}, ...}, ...)
    /home/ubuntu/axelar-core-2/app/app.go:725 +0x20e
github.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).InitChain(0xc000cabba0, {{0x218d5b00, 0xed994a1e0, 0x0}, {0xc0000598a8, 0x17}, 0xc001291ce0, {0xc00132bc20, 0x1, 0x1}, ...})
    /home/ubuntu/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.45.6/baseapp/abci.go:62 +0x455
github.com/tendermint/tendermint/abci/client.(*localClient).InitChainSync(0xc0011dbe60, {{0x218d5b00, 0xed994a1e0, 0x0}, {0xc0000598a8, 0x17}, 0xc001291ce0, {0xc00132bc20, 0x1, 0x1}, ...})
    /home/ubuntu/go/pkg/mod/github.com/tendermint/tendermint@v0.34.19/abci/client/local_client.go:272 +0x118
github.com/tendermint/tendermint/proxy.(*appConnConsensus).InitChainSync(0x0?, {{0x218d5b00, 0xed994a1e0, 0x0}, {0xc0000598a8, 0x17}, 0xc001291ce0, {0xc00132bc20, 0x1, 0x1}, ...})
    /home/ubuntu/go/pkg/mod/github.com/tendermint/tendermint@v0.34.19/proxy/app_conn.go:77 +0x55
github.com/tendermint/tendermint/consensus.(*Handshaker).ReplayBlocks(_, {{{0xb, 0x0}, {0x1f89d0c, 0x7}}, {0xc0000598a8, 0x17}, 0xa8939, 0x0, {{0x0, ...}, ...}, ...}, ...)
    /home/ubuntu/go/pkg/mod/github.com/tendermint/tendermint@v0.34.19/consensus/replay.go:319 +0xd78
github.com/tendermint/tendermint/consensus.(*Handshaker).Handshake(0xc00100ddd8, {0x2e9dc10, 0xc0005cfad0})
    /home/ubuntu/go/pkg/mod/github.com/tendermint/tendermint@v0.34.19/consensus/replay.go:268 +0x3c8
github.com/tendermint/tendermint/node.doHandshake({_, _}, {{{0xb, 0x0}, {0x1f89d0c, 0x7}}, {0xc0000598a8, 0x17}, 0xa8939, 0x0, ...}, ...)
    /home/ubuntu/go/pkg/mod/github.com/tendermint/tendermint@v0.34.19/node/node.go:325 +0x1b8
github.com/tendermint/tendermint/node.NewNode(0xc00052a280, {0x2e8aa90, 0xc000ee9720}, 0xc001327400, {0x2e711c0, 0xc00132a6f0}, 0x0?, 0x0?, 0xc001327700, {0x2e8f050, ...}, ...)
    /home/ubuntu/go/pkg/mod/github.com/tendermint/tendermint@v0.34.19/node/node.go:733 +0x577
github.com/cosmos/cosmos-sdk/server.startInProcess(_, {{0x0, 0x0, 0x0}, {0x0, 0x0}, {0x0, 0x0}, {0x2e92b00, 0xc001203bc0}, ...}, ...)
    /home/ubuntu/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.45.6/server/start.go:272 +0x7db
github.com/cosmos/cosmos-sdk/server.StartCmd.func2(0xc0012ac500?, {0xc0005bb620?, 0x1?, 0x3?})
    /home/ubuntu/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.45.6/server/start.go:126 +0x169
github.com/spf13/cobra.(*Command).execute(0xc0012ac500, {0xc0005bb5c0, 0x3, 0x3})
    /home/ubuntu/go/pkg/mod/github.com/spf13/cobra@v1.5.0/command.go:872 +0x694
github.com/spf13/cobra.(*Command).ExecuteC(0xc001159400)
    /home/ubuntu/go/pkg/mod/github.com/spf13/cobra@v1.5.0/command.go:990 +0x3b4
github.com/spf13/cobra.(*Command).Execute(...)
    /home/ubuntu/go/pkg/mod/github.com/spf13/cobra@v1.5.0/command.go:918
github.com/spf13/cobra.(*Command).ExecuteContext(...)
    /home/ubuntu/go/pkg/mod/github.com/spf13/cobra@v1.5.0/command.go:911
github.com/cosmos/cosmos-sdk/server/cmd.Execute(0x1f87fd6?, {0xc000de3d10, 0x17})
    /home/ubuntu/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.45.6/server/cmd/execute.go:36 +0x1eb
main.main()
    /home/ubuntu/axelar-core-2/cmd/axelard/main.go:70 +0x4c5

The key line appears to be:

panic: unknown field "gateway_code" in types.Params

The version of axelard downloaded was axelard-v0.26.0-patch

Is there a chance that this version no longer expects the gateway_code attribute that appears in ~/.axelar_testnet/config/genesis.json?