cli icon indicating copy to clipboard operation
cli copied to clipboard

Faucet is not opearational when trying to configure a relayer

Open calibar opened this issue 1 year ago • 7 comments

Hi, I am a beginner. While following the IBC (Inter-Blockchain Communication) tutorial at https://docs.ignite.com/guide/ibc, I encountered an issue when configuring the relayer using the command "ignite relayer configure -a". The response was 'faucet is not operational: Bad Gateway'. Before this, I had removed the previous relayer configuration using 'rm -rf ~/.ignite/relayer.' The details are as shown in the following screenshots. earthchain earthConfig faucetIssue MarsChain MarsConfig

calibar avatar Apr 02 '24 15:04 calibar

I am using Ignite 28.3.0

calibar avatar Apr 03 '24 15:04 calibar

Hey, @calibar. Unfortunately, we are facing issues with the embedded relayer inside Ignite. This feature uses the ts-relayer and is no longer maintained, so it does not support the latest versions of the SDK. You can use the Hermes Relayer app on Ignite:

https://github.com/ignite/apps/tree/main/hermes

Pantani avatar Apr 04 '24 11:04 Pantani

Hey, @calibar. Unfortunately, we are facing issues with the embedded relayer inside Ignite. This feature uses the ts-relayer and is no longer maintained, so it does not support the latest versions of the SDK. You can use the Hermes Relayer app on Ignite:

https://github.com/ignite/apps/tree/main/hermes

Hi, the following screenshot is what I got while I was running "ignite relayer hermes", Does this mean that the relayer has been correctly configured? Screenshot from 2024-04-06 23-57-58

calibar avatar Apr 06 '24 16:04 calibar

Hey, @calibar. Unfortunately, we are facing issues with the embedded relayer inside Ignite. This feature uses the ts-relayer and is no longer maintained, so it does not support the latest versions of the SDK. You can use the Hermes Relayer app on Ignite:

https://github.com/ignite/apps/tree/main/hermes

Hi, I got the following error while I was trying to configure the relayer with port "blog". Screenshot from 2024-04-07 00-03-24

calibar avatar Apr 06 '24 16:04 calibar

Hi, I was trying to send a IBC post from "mychain4" to "mychain5", however, the "mychain5" did not get the message. So I checked the transaction of the IBC post, the following is what I got.

mengxuan@mengxuan-virtual-machine:~$ mychain4d q tx 86C773AC49EE004180493C4D778DBADED0FCAAB581DCF7EBD87143D0D96B3583 --node http://0.0.0.0:26659 code: 111222 codespace: undefined data: "" events:

  • attributes:
    • index: true key: fee value: ""
    • index: true key: fee_payer value: cosmos1l9am52w7q2f3qhxmqjvwfdhgc04jw05j38ed29 type: tx
  • attributes:
    • index: true key: acc_seq value: cosmos1l9am52w7q2f3qhxmqjvwfdhgc04jw05j38ed29/1 type: tx
  • attributes:
    • index: true key: signature value: N0xkbAEbsS7ITynETyr0Ef+XwQtz5R+8kC1miBomPPscKteDrhbr3Mfx+LEm94ypn40J1jdgPtw6q6dNH172zQ== type: tx gas_used: "28770" gas_wanted: "200000" height: "1064" info: "" logs: [] raw_log: "recovered: runtime error: invalid memory address or nil pointer dereference\nstack:\ngoroutine 78 [running]:\nruntime/debug.Stack()\n\t/usr/local/go/src/runtime/debug/stack.go:24 +0x6b\ngithub.com/cosmos/cosmos-sdk/baseapp.newDefaultRecoveryMiddleware.func1({0x4550920, 0x71feb40})\n\t/home/mengxuan/go/pkg/mod/github.com/cosmos/[email protected]/baseapp/recovery.go:74 +0x35\ngithub.com/cosmos/cosmos-sdk/baseapp.newRecoveryMiddleware.func1({0x4550920, 0x71feb40})\n\t/home/mengxuan/go/pkg/mod/github.com/cosmos/[email protected]/baseapp/recovery.go:42 +0x51\ngithub.com/cosmos/cosmos-sdk/baseapp.processRecovery({0x4550920, 0x71feb40}, 0xc0003f9698)\n\t/home/mengxuan/go/pkg/mod/github.com/cosmos/[email protected]/baseapp/recovery.go:31 +0x71\ngithub.com/cosmos/cosmos-sdk/baseapp.processRecovery({0x4550920, 0x71feb40}, 0xc004a4c3d8)\n\t/home/mengxuan/go/pkg/mod/github.com/cosmos/[email protected]/baseapp/recovery.go:36 +0xf1\ngithub.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).runTx.func1()\n\t/home/mengxuan/go/pkg/mod/github.com/cosmos/[email protected]/baseapp/baseapp.go:836 +0x10b\npanic({0x4550920?, 0x71feb40?})\n\t/usr/local/go/src/runtime/panic.go:770 +0x136\nmychain4/x/blog/keeper.Keeper.TransmitIbcPostPacket({{0x5859788, 0xc0011de250}, {0x5809800, 0xc000bd9420}, {0x5847cf8, 0xc000da01c0}, {0xc0010505a0, 0x2d}, 0xc0010840d0, 0xc0010840e0, ...}, ...)\n\t/home/mengxuan/mychain4/x/blog/keeper/ibc_post.go:26 +0xcb\nmychain4/x/blog/keeper.msgServer.SendIbcPost({{{0x5859788, 0xc0011de250}, {0x5809800, 0xc000bd9420}, {0x5847cf8, 0xc000da01c0}, {0xc0010505a0, 0x2d}, 0xc0010840d0, 0xc0010840e0, ...}}, ...)\n\t/home/mengxuan/mychain4/x/blog/keeper/msg_server_ibc_post.go:25 +0x294\nmychain4/x/blog/types.Msg_SendIbcPost_Handler.func1({0x58424b0, 0xc005b0daa0}, {0x4982060, 0xc00498c7e0})\n\t/home/mengxuan/mychain4/x/blog/types/tx.pb.go:388 +0xf1\ngithub.com/cosmos/cosmos-sdk/baseapp.(*MsgServiceRouter).registerMsgServiceHandler.func2.1({0x58424b0, 0xc005b0daa0}, {0x4982060, 0xc00498d380}, 0xc0051ddc40, 0xc004a4c3a8)\n\t/home/mengxuan/go/pkg/mod/github.com/cosmos/[email protected]/baseapp/msg_service_router.go:175 +0x155\nmychain4/x/blog/types.Msg_SendIbcPost_Handler({0x49e8ce0, 0xc002067c80}, {0x5842408, 0xc0049b7c08}, 0x52ee188, 0xc0051ddc20)\n\t/home/mengxuan/mychain4/x/blog/types/tx.pb.go:390 +0x22c\ngithub.com/cosmos/cosmos-sdk/baseapp.(*MsgServiceRouter).registerMsgServiceHandler.func2({{0x5842590, 0x72ebba0}, {0x585a0b8, 0xc0067f8140}, {{0x0, 0x0}, {0xc000b38f88, 0x8}, 0x428, {0x258150f9, ...}, ...}, ...}, ...)\n\t/home/mengxuan/go/pkg/mod/github.com/cosmos/[email protected]/baseapp/msg_service_router.go:198 +0x675\ngithub.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).runMsgs(, {{0x5842590, 0x72ebba0}, {0x585a0b8, 0xc0067f8140}, {{0x0, 0x0}, {0xc000b38f88, 0x8}, 0x428, ...}, ...}, ...)\n\t/home/mengxuan/go/pkg/mod/github.com/cosmos/[email protected]/baseapp/baseapp.go:1009 +0x236\ngithub.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).runTx(0xc0004eb688, 0x7, {0xc0010619e0, 0x11f, 0x11f})\n\t/home/mengxuan/go/pkg/mod/github.com/cosmos/[email protected]/baseapp/baseapp.go:947 +0x18aa\ngithub.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).deliverTx(0xc0004eb688, {0xc0010619e0, 0x11f, 0x11f})\n\t/home/mengxuan/go/pkg/mod/github.com/cosmos/[email protected]/baseapp/baseapp.go:762 +0x17e\ngithub.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).internalFinalizeBlock(0xc0004eb688, {0x5842590, 0x72ebba0}, 0xc0048cb140)\n\t/home/mengxuan/go/pkg/mod/github.com/cosmos/[email protected]/baseapp/abci.go:790 +0x1705\ngithub.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).FinalizeBlock(0xc0004eb688, 0xc0048cb140)\n\t/home/mengxuan/go/pkg/mod/github.com/cosmos/[email protected]/baseapp/abci.go:884 +0x388\ngithub.com/cosmos/cosmos-sdk/server.cometABCIWrapper.FinalizeBlock({{0x7101ad3b14a0, 0xc000ec8888}}, {0x58425c8, 0x72ebba0}, 0xc0048cb140)\n\t/home/mengxuan/go/pkg/mod/github.com/cosmos/[email protected]/server/cmt_abci.go:44 +0x69\ngithub.com/cometbft/cometbft/abci/client.(*localClient).FinalizeBlock(0xc0027a48a0, {0x58425c8, 0x72ebba0}, 0xc0048cb140)\n\t/home/mengxuan/go/pkg/mod/github.com/cometbft/[email protected]/abci/client/local_client.go:185 +0x12b\ngithub.com/cometbft/cometbft/proxy.(*appConnConsensus).FinalizeBlock(0xc0024f99c8, {0x58425c8, 0x72ebba0}, 0xc0048cb140)\n\t/home/mengxuan/go/pkg/mod/github.com/cometbft/[email protected]/proxy/app_conn.go:104 +0x1fc\ngithub.com/cometbft/cometbft/state.(*BlockExecutor).ApplyBlock(, {{{0xb, 0x0}, {0xc0016cc56a, 0x6}}, {0xc0016cc580, 0x8}, 0x1, 0x427, {{0xc006b57080, ...}, ...}, ...}, ...)\n\t/home/mengxuan/go/pkg/mod/github.com/cometbft/[email protected]/state/execution.go:213 +0x639\ngithub.com/cometbft/cometbft/consensus.(*State).finalizeCommit(0xc000d5a008, 0x428)\n\t/home/mengxuan/go/pkg/mod/github.com/cometbft/[email protected]/consensus/state.go:1771 +0x1085\ngithub.com/cometbft/cometbft/consensus.(*State).tryFinalizeCommit(0xc000d5a008, 0x428)\n\t/home/mengxuan/go/pkg/mod/github.com/cometbft/[email protected]/consensus/state.go:1682 +0x365\ngithub.com/cometbft/cometbft/consensus.(*State).enterCommit.func1()\n\t/home/mengxuan/go/pkg/mod/github.com/cometbft/[email protected]/consensus/state.go:1617 +0xc5\ngithub.com/cometbft/cometbft/consensus.(*State).enterCommit(0xc000d5a008, 0x428, 0x0)\n\t/home/mengxuan/go/pkg/mod/github.com/cometbft/[email protected]/consensus/state.go:1655 +0xfc9\ngithub.com/cometbft/cometbft/consensus.(*State).addVote(0xc000d5a008, 0xc005ddd040, {0x0, 0x0})\n\t/home/mengxuan/go/pkg/mod/github.com/cometbft/[email protected]/consensus/state.go:2334 +0x2c71\ngithub.com/cometbft/cometbft/consensus.(*State).tryAddVote(0xc000d5a008, 0xc005ddd040, {0x0, 0x0})\n\t/home/mengxuan/go/pkg/mod/github.com/cometbft/[email protected]/consensus/state.go:2066 +0x76\ngithub.com/cometbft/cometbft/consensus.(*State).handleMsg(0xc000d5a008, {{0x5812e00, 0xc005302b38}, {0x0, 0x0}})\n\t/home/mengxuan/go/pkg/mod/github.com/cometbft/[email protected]/consensus/state.go:929 +0x68d\ngithub.com/cometbft/cometbft/consensus.(*State).receiveRoutine(0xc000d5a008, 0x0)\n\t/home/mengxuan/go/pkg/mod/github.com/cometbft/[email protected]/consensus/state.go:856 +0x7e6\ncreated by github.com/cometbft/cometbft/consensus.(*State).OnStart in goroutine 1\n\t/home/mengxuan/go/pkg/mod/github.com/cometbft/[email protected]/consensus/state.go:398 +0x213\n: panic" timestamp: "2024-04-06T17:25:10Z" tx: '@type': /cosmos.tx.v1beta1.Tx auth_info: fee: amount: [] gas_limit: "200000" granter: "" payer: "" signer_infos:
      • mode_info: single: mode: SIGN_MODE_DIRECT public_key: '@type': /cosmos.crypto.secp256k1.PubKey key: AubZqP0F00xfU5HFdU30U/YH6xzDtCKvoh0dUPeYCbx7 sequence: "1" tip: null body: extension_options: [] memo: "" messages:
      • '@type': /mychain4.blog.MsgSendIbcPost channelID: channel-0 content: a to b creator: cosmos1l9am52w7q2f3qhxmqjvwfdhgc04jw05j38ed29 port: transfer timeoutTimestamp: "1712424083769941332" title: hello non_critical_extension_options: [] timeout_height: "0" signatures:
    • N0xkbAEbsS7ITynETyr0Ef+XwQtz5R+8kC1miBomPPscKteDrhbr3Mfx+LEm94ypn40J1jdgPtw6q6dNH172zQ== txhash: 86C773AC49EE004180493C4D778DBADED0FCAAB581DCF7EBD87143D0D96B3583

calibar avatar Apr 06 '24 17:04 calibar

@calibar, I'm sorry. We are updating our guides with the new Relayer app. Can you try configuring the relayer like this?

ignite relayer hermes configure \                        
"earth" "http://localhost:26657" "http://localhost:9090" \
"mars" "http://localhost:26659" "http://localhost:9092" \
--chain-a-faucet "http://0.0.0.0:4500" \
--chain-b-faucet "http://0.0.0.0:4501" \
--chain-a-port-id "blog" \
--chain-b-port-id "blog" \
--channel-version "blog-1"

And run:

ignite relayer hermes start "earth-1" "mars-1"

Pantani avatar Jun 26 '24 23:06 Pantani

@calibar any updates?

Pantani avatar Jun 29 '24 01:06 Pantani