Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interchain Accounts module registration #1710

Closed
ant1g opened this issue Jun 8, 2022 · 0 comments · Fixed by #1825
Closed

Interchain Accounts module registration #1710

ant1g opened this issue Jun 8, 2022 · 0 comments · Fixed by #1825

Comments

@ant1g
Copy link

ant1g commented Jun 8, 2022

System information

Osmosis version: v9 or main
OS & Version: Linux ubuntu 22.04
Commit hash: 9165ac2

Expected behaviour

It should be possible to send ICA commands to Osmosis (via MsgCreateBalancerPool for instance), given that the ICA Host controller has already been integrated.

Actual behaviour

When sending the MsgCreateBalancerPool over ICA to Osmosis, the following error is reported:
recovered: no concrete type registered for type URL /ibc.applications.interchain_accounts.v1.InterchainAccount against interface *types.AccountI"

Meaning the ICA message codecs are not registered in the Osmosis application.

Steps to reproduce the behaviour

  1. Start chain A (Quasar chain in my case, but can be any)
  2. Start chain B (Osmosis on v9 tag, or main)
  3. Run Hermes relayer connecting the two chains
  4. Register an Interchain Account on Osmosis from chain A
  5. Properly fund the registered ICA on Osmosis to be able to create a pool
  6. Send the MsgCreateBalancerPool from chain A to Osmosis via ICA.

Backtrace

Error trace in the relayer (Hermes) output:

ERROR ThreadId(165) packet_cmd{src_chain=quasar src_port=icacontroller-quasar1sqlsc5024sszglyh7pswk5hfpc5xtl77gqjwec src_channel=channel-1 dst_chain=osmosis}:
	will retry: 
	schedule execution encountered error:
	failed with underlying error: gRPC call failed with status: status: Unknown, message: 
"recovered: no concrete type registered for type URL /ibc.applications.interchain_accounts.v1.InterchainAccount against interface *types.AccountI
stack:
goroutine 5122 [running]:
runtime/debug.Stack()
	/usr/lib/go-1.18/src/runtime/debug/stack.go:24 +0x65
github.com/cosmos/cosmos-sdk/baseapp.newDefaultRecoveryMiddleware.func1({0x1c29900, 0xc00458e810})
	/home/johndoe/go/pkg/mod/github.com/osmosis-labs/[email protected]/baseapp/recovery.go:71 +0x27
github.com/cosmos/cosmos-sdk/baseapp.newRecoveryMiddleware.func1({0x1c29900?, 0xc00458e810?})
	/home/johndoe/go/pkg/mod/github.com/osmosis-labs/[email protected]/baseapp/recovery.go:39 +0x30
github.com/cosmos/cosmos-sdk/baseapp.processRecovery({0x1c29900, 0xc00458e810}, 0xc003cbcfc0?)
	/home/johndoe/go/pkg/mod/github.com/osmosis-labs/[email protected]/baseapp/recovery.go:28 +0x37
github.com/cosmos/cosmos-sdk/baseapp.processRecovery({0x1c29900, 0xc00458e810}, 0x2520fe0?)
	/home/johndoe/go/pkg/mod/github.com/osmosis-labs/[email protected]/baseapp/recovery.go:33 +0x5e
github.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).runTx.func1()
	/home/johndoe/go/pkg/mod/github.com/osmosis-labs/[email protected]/baseapp/baseapp.go:612 +0xfd
panic({0x1c29900, 0xc00458e810})
	/usr/lib/go-1.18/src/runtime/panic.go:838 +0x207
github.com/cosmos/cosmos-sdk/x/auth/keeper.AccountKeeper.decodeAccount({{0x24faed8, 0xc0011fdcb0}, {0x251f4b0, 0xc0011cae60}, {{0x251f4b0, 0xc0011cae60}, 0xc000122270, {0x24faed8, 0xc0011fdd20}, {0x24faf28, ...}, ...}, ...}, ...)
	/home/johndoe/go/pkg/mod/github.com/osmosis-labs/[email protected]/x/auth/keeper/keeper.go:219 +0xf4
github.com/cosmos/cosmos-sdk/x/auth/keeper.AccountKeeper.GetAccount({{0x24faed8, 0xc0011fdcb0}, {0x251f4b0, 0xc0011cae60}, {{0x251f4b0, 0xc0011cae60}, 0xc000122270, {0x24faed8, 0xc0011fdd20}, {0x24faf28, ...}, ...}, ...}, ...)
	/home/johndoe/go/pkg/mod/github.com/osmosis-labs/[email protected]/x/auth/keeper/account.go:42 +0x178
github.com/cosmos/cosmos-sdk/x/bank/keeper.BaseViewKeeper.LockedCoins({{_, _}, {_, _}, {_, _}}, {{0x2512478, 0xc0000520b8}, {0x2520fe0, 0xc003c9df40}, ...}, ...)
	/home/johndoe/go/pkg/mod/github.com/osmosis-labs/[email protected]/x/bank/keeper/view.go:165 +0xa7
github.com/cosmos/cosmos-sdk/x/bank/keeper.BaseSendKeeper.subUnlockedCoins({{{0x251f4b0, 0xc0011cae60}, {0x24faed8, 0xc0011fdcc0}, {0x2520a60, 0xc0011fe990}}, {0x251f4b0, 0xc0011cae60}, {0x2520a60, 0xc0011fe990}, ...}, ...)
	/home/johndoe/go/pkg/mod/github.com/osmosis-labs/[email protected]/x/bank/keeper/send.go:228 +0xf7
github.com/cosmos/cosmos-sdk/x/bank/keeper.BaseSendKeeper.SendCoins({{{0x251f4b0, 0xc0011cae60}, {0x24faed8, 0xc0011fdcc0}, {0x2520a60, 0xc0011fe990}}, {0x251f4b0, 0xc0011cae60}, {0x2520a60, 0xc0011fe990}, ...}, ...)
	/home/johndoe/go/pkg/mod/github.com/osmosis-labs/[email protected]/x/bank/keeper/send.go:137 +0x105
github.com/cosmos/cosmos-sdk/x/bank/keeper.BaseKeeper.SendCoinsFromAccountToModule({{{{0x251f4b0, 0xc0011cae60}, {0x24faed8, 0xc0011fdcc0}, {0x2520a60, 0xc0011fe990}}, {0x251f4b0, 0xc0011cae60}, {0x2520a60, 0xc0011fe990}, ...}, ...}, ...)
	/home/johndoe/go/pkg/mod/github.com/osmosis-labs/[email protected]/x/bank/keeper/keeper.go:407 +0x171
github.com/cosmos/cosmos-sdk/x/distribution/keeper.Keeper.FundCommunityPool({{0x24faed8, 0xc0011fdcf0}, {0x251f4b0, 0xc0011cae60}, {{0x251f4b0, 0xc0011cae60}, 0xc000122270, {0x24faed8, 0xc0011fdd20}, {0x24faf28, ...}, ...}, ...}, ...)
	/home/johndoe/go/pkg/mod/github.com/osmosis-labs/[email protected]/x/distribution/keeper/keeper.go:166 +0xb7
github.com/osmosis-labs/osmosis/v7/x/gamm/keeper.Keeper.CreatePool({{0x24faed8, 0xc0011fdd90}, {0x251f4b0, 0xc0011cae60}, {{0x251f4b0, 0xc0011cae60}, 0xc000122270, {0x24faed8, 0xc0011fdd20}, {0x24faf28, ...}, ...}, ...}, ...)
	/home/johndoe/dev/abag/contrib/osmosis/x/gamm/keeper/pool_service.go:104 +0x25e
github.com/osmosis-labs/osmosis/v7/x/gamm/keeper.msgServer.CreatePool({0xc0046d0d80?}, {0x25124e8?, 0xc0046d0d80?}, {0x2512b08, 0xc003c9d7c0})
	/home/johndoe/dev/abag/contrib/osmosis/x/gamm/keeper/msg_server.go:67 +0x208
github.com/osmosis-labs/osmosis/v7/x/gamm/keeper.msgServer.CreateBalancerPool(...)
	/home/johndoe/dev/abag/contrib/osmosis/x/gamm/keeper/msg_server.go:42
github.com/osmosis-labs/osmosis/v7/x/gamm/pool-models/balancer._Msg_CreateBalancerPool_Handler.func1({0x25124e8, 0xc0046d0d80}, {0x1e911a0?, 0xc003c9d7c0})
	/home/johndoe/dev/abag/contrib/osmosis/x/gamm/pool-models/balancer/tx.pb.go:246 +0x78
github.com/cosmos/cosmos-sdk/baseapp.(*MsgServiceRouter).RegisterService.func2.1({0x25124e8, 0xc0046d0d50}, {0x4bccc6?, 0x40f74b?}, 0x1ec6a60?, 0xc003bc4450)
	/home/johndoe/go/pkg/mod/github.com/osmosis-labs/[email protected]/baseapp/msg_service_router.go:113 +0xdb
github.com/osmosis-labs/osmosis/v7/x/gamm/pool-models/balancer._Msg_CreateBalancerPool_Handler({0x1dbf540?, 0xc000010408}, {0x25124e8, 0xc0046d0d50}, 0x22943a8, 0xc0049cdf00)
	/home/johndoe/dev/abag/contrib/osmosis/x/gamm/pool-models/balancer/tx.pb.go:248 +0x138
github.com/cosmos/cosmos-sdk/baseapp.(*MsgServiceRouter).RegisterService.func2({{0x2512478, 0xc0000520b8}, {0x2520fe0, 0xc003c9df40}, {{0xb, 0x0}, {0xc004078799, 0x7}, 0x30, {0x388bd0a1, ...}, ...}, ...}, ...)
	/home/johndoe/go/pkg/mod/github.com/osmosis-labs/[email protected]/baseapp/msg_service_router.go:117 +0x350
github.com/cosmos/ibc-go/v3/modules/apps/27-interchain-accounts/host/keeper.Keeper.executeMsg({{0x24faed8, 0xc0011fdd40}, {0x251f4b0, 0xc0011cae60}, {{0x251f4b0, 0xc0011cae60}, 0xc000122270, {0x24faed8, 0xc0011fdd20}, {0x24faf28, ...}, ...}, ...}, ...)
	/home/johndoe/go/pkg/mod/github.com/cosmos/ibc-go/[email protected]/modules/apps/27-interchain-accounts/host/keeper/relay.go:123 +0x105
github.com/cosmos/ibc-go/v3/modules/apps/27-interchain-accounts/host/keeper.Keeper.executeTx({{0x24faed8, 0xc0011fdd40}, {0x251f4b0, 0xc0011cae60}, {{0x251f4b0, 0xc0011cae60}, 0xc000122270, {0x24faed8, 0xc0011fdd20}, {0x24faf28, ...}, ...}, ...}, ...)
	/home/johndoe/go/pkg/mod/github.com/cosmos/ibc-go/[email protected]/modules/apps/27-interchain-accounts/host/keeper/relay.go:67 +0x6a8
github.com/cosmos/ibc-go/v3/modules/apps/27-interchain-accounts/host/keeper.Keeper.OnRecvPacket({{0x24faed8, 0xc0011fdd40}, {0x251f4b0, 0xc0011cae60}, {{0x251f4b0, 0xc0011cae60}, 0xc000122270, {0x24faed8, 0xc0011fdd20}, {0x24faf28, ...}, ...}, ...}, ...)
	/home/johndoe/go/pkg/mod/github.com/cosmos/ibc-go/[email protected]/modules/apps/27-interchain-accounts/host/keeper/relay.go:30 +0x1b3
github.com/cosmos/ibc-go/v3/modules/apps/27-interchain-accounts/host.IBCModule.OnRecvPacket({{{0x24faed8, 0xc0011fdd40}, {0x251f4b0, 0xc0011cae60}, {{0x251f4b0, 0xc0011cae60}, 0xc000122270, {0x24faed8, 0xc0011fdd20}, {0x24faf28, ...}, ...}, ...}}, ...)
	/home/johndoe/go/pkg/mod/github.com/cosmos/ibc-go/[email protected]/modules/apps/27-interchain-accounts/host/ibc_module.go:112 +0x218
github.com/cosmos/ibc-go/v3/modules/core/keeper.Keeper.RecvPacket({{0x0, 0x0}, {0x251f4b0, 0xc0011cae60}, {{0x24faed8, 0xc0011fdd30}, {0x251f4b0, 0xc0011cae60}, {{0x251f4b0, 0xc0011cae60}, ...}, ...}, ...}, ...)
	/home/johndoe/go/pkg/mod/github.com/cosmos/ibc-go/[email protected]/modules/core/keeper/msg_server.go:407 +0x955
github.com/cosmos/ibc-go/v3/modules/core/04-channel/types._Msg_RecvPacket_Handler.func1({0x25124e8, 0xc0044b2f60}, {0x1e43900?, 0xc00512a2c0})
	/home/johndoe/go/pkg/mod/github.com/cosmos/ibc-go/[email protected]/modules/core/04-channel/types/tx.pb.go:1306 +0x78
github.com/cosmos/cosmos-sdk/baseapp.(*MsgServiceRouter).RegisterService.func2.1({0x25124e8, 0xc0044b2f30}, {0x4bccc6?, 0x40f74b?}, 0x1ec6a60?, 0xc003977d40)
	/home/johndoe/go/pkg/mod/github.com/osmosis-labs/[email protected]/baseapp/msg_service_router.go:113 +0xdb
github.com/cosmos/ibc-go/v3/modules/core/04-channel/types._Msg_RecvPacket_Handler({0x1eb6c00?, 0xc0002f8f00}, {0x25124e8, 0xc0044b2f30}, 0x22943a8, 0xc003b28be0)
	/home/johndoe/go/pkg/mod/github.com/cosmos/ibc-go/[email protected]/modules/core/04-channel/types/tx.pb.go:1308 +0x138
github.com/cosmos/cosmos-sdk/baseapp.(*MsgServiceRouter).RegisterService.func2({{0x2512478, 0xc0000520b8}, {0x2520fe0, 0xc003c31c00}, {{0xb, 0x0}, {0xc004078799, 0x7}, 0x30, {0x388bd0a1, ...}, ...}, ...}, ...)
	/home/johndoe/go/pkg/mod/github.com/osmosis-labs/[email protected]/baseapp/msg_service_router.go:117 +0x350
github.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).runMsgs(_, {{0x2512478, 0xc0000520b8}, {0x2520fe0, 0xc003c31c00}, {{0xb, 0x0}, {0xc004078799, 0x7}, 0x30, ...}, ...}, ...)
	/home/johndoe/go/pkg/mod/github.com/osmosis-labs/[email protected]/baseapp/baseapp.go:740 +0x5c5
github.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).runTx(0xc000fc1500, 0x2, {0xc003c00000, 0x9a6, 0xa80})
	/home/johndoe/go/pkg/mod/github.com/osmosis-labs/[email protected]/baseapp/baseapp.go:697 +0xd2c
github.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).Simulate(0x4120c7?, {0xc003c00000?, 0x1d35ea0?, 0x2520f01?})
	/home/johndoe/go/pkg/mod/github.com/osmosis-labs/[email protected]/baseapp/test_helpers.go:23 +0x2c
github.com/cosmos/cosmos-sdk/x/auth/tx.txServer.Simulate({{{0x0, 0x0, 0x0}, {0x2528920, 0xc0014efd80}, {0x0, 0x0}, {0x2517560, 0xc001235380}, 0x0, ...}, ...}, ...)
	/home/johndoe/go/pkg/mod/github.com/osmosis-labs/[email protected]/x/auth/tx/service.go:117 +0x129
github.com/cosmos/cosmos-sdk/types/tx._Service_Simulate_Handler.func1({0x25124e8, 0xc00417d3e0}, {0x1e26700?, 0xc003e8c560})
	/home/johndoe/go/pkg/mod/github.com/osmosis-labs/[email protected]/types/tx/service.pb.go:752 +0x78
github.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).RegisterGRPCServer.func1({0x25124e8, 0xc00415c060}, {0x1e26700, 0xc003e8c560}, 0x8?, 0xc003976090)
	/home/johndoe/go/pkg/mod/github.com/osmosis-labs/[email protected]/baseapp/grpcserver.go:66 +0x415
github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1.1.1({0x25124e8?, 0xc00415c060?}, {0x1e26700?, 0xc003e8c560?})
	/home/johndoe/go/pkg/mod/github.com/grpc-ecosystem/[email protected]/chain.go:25 +0x3a
github.com/grpc-ecosystem/go-grpc-middleware/recovery.UnaryServerInterceptor.func1({0x25124e8?, 0xc00415c060?}, {0x1e26700?, 0xc003e8c560?}, 0x7fcb304d05f0?, 0xc003e8c5c0?)
	/home/johndoe/go/pkg/mod/github.com/grpc-ecosystem/[email protected]/recovery/interceptors.go:33 +0xc4
github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1.1.1({0x25124e8?, 0xc00415c060?}, {0x1e26700?, 0xc003e8c560?})
	/home/johndoe/go/pkg/mod/github.com/grpc-ecosystem/[email protected]/chain.go:25 +0x3a
github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1({0x25124e8, 0xc00415c060}, {0x1e26700, 0xc003e8c560}, 0xc0038dca01?, 0xc0038dca80?)
	/home/johndoe/go/pkg/mod/github.com/grpc-ecosystem/[email protected]/chain.go:34 +0xbf
github.com/cosmos/cosmos-sdk/types/tx._Service_Simulate_Handler({0x1dc1b40?, 0xc00016c8c0}, {0x25124e8, 0xc00415c060}, 0xc003af2660, 0xc00415c090)
	/home/johndoe/go/pkg/mod/github.com/osmosis-labs/[email protected]/types/tx/service.pb.go:754 +0x138
github.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).RegisterGRPCServer.func2({0x1dc1b40, 0xc00016c8c0}, {0x25124e8, 0xc00415c060}, 0x1e85a00?, 0xc0036d4b00?)
	/home/johndoe/go/pkg/mod/github.com/osmosis-labs/[email protected]/baseapp/grpcserver.go:80 +0xdc
google.golang.org/grpc.(*Server).processUnaryRPC(0xc00115c380, {0x251cf80, 0xc0031fad80}, 0xc0036d4b00, 0xc0032405a0, 0xc00323e540, 0x0)
	/home/johndoe/go/pkg/mod/google.golang.org/[email protected]/server.go:1210 +0xc8f
google.golang.org/grpc.(*Server).handleStream(0xc00115c380, {0x251cf80, 0xc0031fad80}, 0xc0036d4b00, 0x0)
	/home/johndoe/go/pkg/mod/google.golang.org/[email protected]/server.go:1533 +0xa1b
google.golang.org/grpc.(*Server).serveStreams.func1.2()
	/home/johndoe/go/pkg/mod/google.golang.org/[email protected]/server.go:871 +0x98
created by google.golang.org/grpc.(*Server).serveStreams.func1
	/home/johndoe/go/pkg/mod/google.golang.org/[email protected]/server.go:869 +0x28a
: panic", 
details: [], metadata: MetadataMap { headers: {"content-type": "application/grpc", "x-cosmos-block-height": "48"} } retry_index=10

When submitting logs: please submit them as text and not screenshots.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
1 participant