Open winton-library opened 8 months ago
Update: v0.27.2 also affected but with different error.
##########@######-MacBook-Pro planet % ignite relayer connect
·
· 🛸 Ignite CLI v28.1.1 is available!
·
· To upgrade your Ignite CLI version, see the upgrade doc: https://docs.ignite.com/guide/install#upgrading-your-ignite-cli-installation
·
··
✘ Invalid string. Length must be a multiple of 4
Update: Version v0.26.1 is not affected, I can follow the tutorial from start to finish. From my perspective, I think this error maybe due to deprecation of some of the function above v0.26.
The same error occurred with v28.1.1-dev
❯ ignite relayer connect
✘ Query failed with (6): rpc error: code = Unknown desc = recovered: cannot create multiple scoped keepers for the same module name: blox
stack:
goroutine 1114 [running]:
runtime/debug.Stack()
/Users/xuqiang/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.21.5.darwin-arm64/src/runtime/debug/stack.go:24 +0x64
github.com/cosmos/cosmos-sdk/baseapp.newDefaultRecoveryMiddleware.func1({0x1086cd7e0, 0x140016d5380})
/Users/xuqiang/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.50.3/baseapp/recovery.go:74 +0x2c
github.com/cosmos/cosmos-sdk/baseapp.newRecoveryMiddleware.func1({0x1086cd7e0, 0x140016d5380})
/Users/xuqiang/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.50.3/baseapp/recovery.go:42 +0x4c
github.com/cosmos/cosmos-sdk/baseapp.processRecovery({0x1086cd7e0, 0x140016d5380}, 0x1400093bd88)
/Users/xuqiang/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.50.3/baseapp/recovery.go:31 +0x50
github.com/cosmos/cosmos-sdk/baseapp.processRecovery({0x1086cd7e0, 0x140016d5380}, 0x14001614e88)
/Users/xuqiang/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.50.3/baseapp/recovery.go:36 +0xb8
github.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).runTx.func1()
/Users/xuqiang/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.50.3/baseapp/baseapp.go:816 +0xd0
panic({0x1086cd7e0?, 0x140016d5380?})
/Users/xuqiang/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.21.5.darwin-arm64/src/runtime/panic.go:920 +0x254
github.com/cosmos/ibc-go/modules/capability/keeper.(*Keeper).ScopeToModule(0x1400191e4b0, {0x10778cee7, 0x4})
/Users/xuqiang/go/pkg/mod/github.com/cosmos/ibc-go/modules/capability@v1.0.0/keeper/keeper.go:80 +0x20c
planet/app.(*App).GetCapabilityScopedKeeper(0x14000fab600, {0x10778cee7, 0x4})
/Users/xuqiang/forwork/griffin-labs/cosmos/planet/app/app.go:417 +0x5c
planet/x/blog/keeper.(*Keeper).ScopedKeeper(0x14004aafb88)
/Users/xuqiang/forwork/griffin-labs/cosmos/planet/x/blog/keeper/keeper.go:131 +0x94
planet/x/blog/keeper.(*Keeper).ClaimCapability(_, {{0x108ce8c48, 0x10a780500}, {0x108d001d0, 0x14004690500}, {{0x0, 0x0}, {0x14001984326, 0x5}, 0x5e, ...}, ...}, ...)
/Users/xuqiang/forwork/griffin-labs/cosmos/planet/x/blog/keeper/keeper.go:125 +0x40
planet/x/blog/module.IBCModule.OnChanOpenInit({{{_, _}, {_, _}, {_, _}, {_, _}, _, _, ...}}, ...)
/Users/xuqiang/forwork/griffin-labs/cosmos/planet/x/blog/module/module_ibc.go:54 +0x32c
github.com/cosmos/ibc-go/v8/modules/apps/29-fee.IBCMiddleware.OnChanOpenInit({{_, _}, {{_, _}, {_, _}, {_, _}, {_, _}, ...}}, ...)
/Users/xuqiang/go/pkg/mod/github.com/cosmos/ibc-go/v8@v8.0.0/modules/apps/29-fee/ibc_middleware.go:64 +0x294
github.com/cosmos/ibc-go/v8/modules/core/keeper.Keeper.ChannelOpenInit({{0x0, 0x0}, {0x108cff8a0, 0x14000aa2e20}, {{0x108cc1808, 0x1400132e3a0}, {0x108cff8a0, 0x14000aa2e20}, {0x1326fcc70, 0x14000fc9620}, ...}, ...}, ...)
/Users/xuqiang/go/pkg/mod/github.com/cosmos/ibc-go/v8@v8.0.0/modules/core/keeper/msg_server.go:231 +0x878
github.com/cosmos/ibc-go/v8/modules/core/04-channel/types._Msg_ChannelOpenInit_Handler.func1({0x108ce8b68, 0x14005cdf350}, {0x108b8a160, 0x140058ed730})
/Users/xuqiang/go/pkg/mod/github.com/cosmos/ibc-go/v8@v8.0.0/modules/core/04-channel/types/tx.pb.go:1189 +0xb0
github.com/cosmos/cosmos-sdk/baseapp.(*MsgServiceRouter).registerMsgServiceHandler.func2.1({0x108ce8b68, 0x14005cdf350}, {0x0, 0x30}, 0x518a49249249, 0x14001614c90)
/Users/xuqiang/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.50.3/baseapp/msg_service_router.go:175 +0xe8
github.com/cosmos/ibc-go/v8/modules/core/04-channel/types._Msg_ChannelOpenInit_Handler({0x108c69d00, 0x14000a778c0}, {0x108ce8af8, 0x140046ae380}, 0x108c9f100, 0x14001901b60)
/Users/xuqiang/go/pkg/mod/github.com/cosmos/ibc-go/v8@v8.0.0/modules/core/04-channel/types/tx.pb.go:1191 +0x1d8
github.com/cosmos/cosmos-sdk/baseapp.(*MsgServiceRouter).registerMsgServiceHandler.func2({{0x108ce8c48, 0x10a780500}, {0x108d001d0, 0x14004690500}, {{0x0, 0x0}, {0x14001984326, 0x5}, 0x5e, {0xf6aced0, ...}, ...}, ...}, ...)
/Users/xuqiang/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.50.3/baseapp/msg_service_router.go:198 +0x4d8
github.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).runMsgs(_, {{0x108ce8c48, 0x10a780500}, {0x108d001d0, 0x14004690500}, {{0x0, 0x0}, {0x14001984326, 0x5}, 0x5e, ...}, ...}, ...)
/Users/xuqiang/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.50.3/baseapp/baseapp.go:989 +0x17c
github.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).runTx(0x14000f86900, 0x2, {0x14000b29500, 0xe0, 0xe0})
/Users/xuqiang/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.50.3/baseapp/baseapp.go:927 +0x11ac
github.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).Simulate(0x14000f86900, {0x14000b29500, 0xe0, 0xe0})
/Users/xuqiang/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.50.3/baseapp/test_helpers.go:28 +0x64
github.com/cosmos/cosmos-sdk/x/auth/tx.txServer.Simulate({{{0x0, 0x0, 0x0}, {0x108d03758, 0x14001746f90}, 0x0, {0x0, 0x0}, {0x108d1f200, 0x140000853a0}, ...}, ...}, ...)
/Users/xuqiang/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.50.3/x/auth/tx/service.go:98 +0x270
github.com/cosmos/cosmos-sdk/types/tx._Service_Simulate_Handler({0x108b37c60, 0x140005dc5a0}, {0x108ce8af8, 0x14004748e00}, 0x14001614858, 0x0)
/Users/xuqiang/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.50.3/types/tx/service.pb.go:1436 +0x28c
github.com/cosmos/cosmos-sdk/baseapp.(*GRPCQueryRouter).registerABCIQueryHandler.func1({{0x108ce8c48, 0x10a780500}, {0x108d001d0, 0x140015d7800}, {{0x0, 0x0}, {0x14001984326, 0x5}, 0x5e, {0xf6aced0, ...}, ...}, ...}, ...)
/Users/xuqiang/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.50.3/baseapp/grpcrouter.go:109 +0x11c
github.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).handleQueryGRPC(0x14000f86900, 0x14001746fc0, 0x14005369540)
/Users/xuqiang/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.50.3/baseapp/abci.go:1136 +0x190
github.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).Query(0x14000f86900, {0x140012c2e00, 0x1010100010019}, 0x14005369540)
/Users/xuqiang/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.50.3/baseapp/abci.go:177 +0x47c
github.com/cosmos/cosmos-sdk/server.cometABCIWrapper.Query({{0x132537db8, 0x14000fab600}}, {0x108ce8c80, 0x10a780500}, 0x14005369540)
/Users/xuqiang/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.50.3/server/cmt_abci.go:24 +0x5c
github.com/cometbft/cometbft/abci/client.(*localClient).Query(0x1400175c720, {0x108ce8c80, 0x10a780500}, 0x14005369540)
/Users/xuqiang/go/pkg/mod/github.com/cometbft/cometbft@v0.38.2/abci/client/local_client.go:106 +0xfc
github.com/cometbft/cometbft/proxy.(*appConnQuery).Query(0x14001810000, {0x108ce8c80, 0x10a780500}, 0x14005369540)
/Users/xuqiang/go/pkg/mod/github.com/cometbft/cometbft@v0.38.2/proxy/app_conn.go:181 +0x1d4
github.com/cometbft/cometbft/rpc/core.(*Environment).ABCIQuery(0x14000f87b00, 0x104546c98, {0x14003eaacf0, 0x23}, {0x140024ee5a0, 0xe3, 0x1e0}, 0x0, 0x0)
/Users/xuqiang/go/pkg/mod/github.com/cometbft/cometbft@v0.38.2/rpc/core/abci.go:22 +0x130
reflect.Value.call({0x10884b000, 0x140016d49a0, 0x13}, {0x10778cf2b, 0x4}, {0x140021c0180, 0x5, 0x5})
/Users/xuqiang/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.21.5.darwin-arm64/src/reflect/value.go:596 +0x9e8
reflect.Value.Call({0x10884b000, 0x140016d49a0, 0x13}, {0x140021c0180, 0x5, 0x5})
/Users/xuqiang/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.21.5.darwin-arm64/src/reflect/value.go:380 +0x74
github.com/cometbft/cometbft/rpc/jsonrpc/server.makeJSONRPCHandler.func1({0x108cda4d0, 0x14005ebb770}, 0x14004227400)
/Users/xuqiang/go/pkg/mod/github.com/cometbft/cometbft@v0.38.2/rpc/jsonrpc/server/http_json_handler.go:108 +0x1250
github.com/cometbft/cometbft/rpc/jsonrpc/server.handleInvalidJSONRPCPaths.func1({0x108cda4d0, 0x14005ebb770}, 0x14004227400)
/Users/xuqiang/go/pkg/mod/github.com/cometbft/cometbft@v0.38.2/rpc/jsonrpc/server/http_json_handler.go:140 +0xb8
net/http.HandlerFunc.ServeHTTP(0x140016d4a40, {0x108cda4d0, 0x14005ebb770}, 0x14004227400)
/Users/xuqiang/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.21.5.darwin-arm64/src/net/http/server.go:2136 +0x44
net/http.(*ServeMux).ServeHTTP(0x1400186c9c0, {0x108cda4d0, 0x14005ebb770}, 0x14004227400)
/Users/xuqiang/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.21.5.darwin-arm64/src/net/http/server.go:2514 +0x160
github.com/rs/cors.(*Cors).Handler.func1({0x108cda4d0, 0x14005ebb770}, 0x14004227400)
/Users/xuqiang/go/pkg/mod/github.com/rs/cors@v1.10.1/cors.go:281 +0x2d8
net/http.HandlerFunc.ServeHTTP(0x14000b0f820, {0x108cda4d0, 0x14005ebb770}, 0x14004227400)
/Users/xuqiang/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.21.5.darwin-arm64/src/net/http/server.go:2136 +0x44
github.com/cometbft/cometbft/rpc/jsonrpc/server.maxBytesHandler.ServeHTTP({{0x108cb1b00, 0x14000b0f820}, 0xf4240}, {0x108cda4d0, 0x14005ebb770}, 0x14004227400)
/Users/xuqiang/go/pkg/mod/github.com/cometbft/cometbft@v0.38.2/rpc/jsonrpc/server/http_server.go:256 +0xb4
github.com/cometbft/cometbft/rpc/jsonrpc/server.RecoverAndLogHandler.func1({0x108cd8540, 0x14003bce0e0}, 0x14004227400)
/Users/xuqiang/go/pkg/mod/github.com/cometbft/cometbft@v0.38.2/rpc/jsonrpc/server/http_server.go:229 +0x36c
net/http.HandlerFunc.ServeHTTP(0x140017460f0, {0x108cd8540, 0x14003bce0e0}, 0x14004227400)
/Users/xuqiang/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.21.5.darwin-arm64/src/net/http/server.go:2136 +0x44
net/http.serverHandler.ServeHTTP({0x140021b63c0}, {0x108cd8540, 0x14003bce0e0}, 0x14004227400)
/Users/xuqiang/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.21.5.darwin-arm64/src/net/http/server.go:2938 +0x2a0
net/http.(*conn).serve(0x1400128e3f0, {0x108ce8ba0, 0x14004f743c0})
/Users/xuqiang/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.21.5.darwin-arm64/src/net/http/server.go:2009 +0x15b4
created by net/http.(*Server).Serve in goroutine 122
/Users/xuqiang/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.21.5.darwin-arm64/src/net/http/server.go:3086 +0x870
: panic [cosmos/cosmos-sdk@v0.50.3/baseapp/recovery.go:72] with gas used: '63553': unknown request
Ignite version info:
❯ ignite version
Ignite CLI version: v28.1.1-dev
Ignite CLI build date: 2024-01-22T21:17:32Z
Ignite CLI source hash: 83b5ee504c6dad4af3a49ac6235446db2bb4d70c
Ignite CLI config version: v1
Cosmos SDK version: v0.50.3
Your OS: darwin
Your arch: arm64
Your Node.js version: v16.15.0
Your go version: go version go1.21.5 darwin/arm64
Your uname -a: Darwin xuqiangdeMacBook-Pro.local 23.2.0 Darwin Kernel Version 23.2.0: Wed Nov 15 21:53:18 PST 2023; root:xnu-10002.61.3~2/RELEASE_ARM64_T6000 arm64
Your cwd: /Users/xuqiang/forwork/griffin-labs/cosmos/planet
Is on Gitpod: false
Thanks, we're working to resolve these issues.
@mondainai247 thanks for working on this issue. Do you have any update?
the same using ignite v28.2.0
Ignite CLI version: v28.2.0
Ignite CLI build date: 2024-02-06T11:21:56Z
Ignite CLI source hash: af25183a2d312aa4d679e65e3d627025b17a7120
Ignite CLI config version: v1
Cosmos SDK version: v0.50.3
Your OS: linux
Your arch: amd64
Your Node.js version: v20.10.0
Your go version: go version go1.21.4 linux/amd64
Your uname -a: Linux xxx 6.2.0-39-generic #40~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 16 10:53:04 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
Your cwd: /home/xxx/cosmos/planet
Is on Gitpod: false
I have the same issue. Also with v28.2.0
Same issue with v28.3.0
Happy to give it a look next week.
@julienrbrt thank you for solving this issue, is there any updates?
@julienrbrt Thank you for solving this issue. Is there any progress now?
I think the following notation may cause the scopedKeeper to be created multiple times in multiple goroutines?
// ScopedKeeper returns the ScopedKeeper
func (k *Keeper) ScopedKeeper() exported.ScopedKeeper {
if k.scopedKeeper == nil && k.capabilityScopedFn != nil {
k.scopedKeeper = k.capabilityScopedFn(types.ModuleName)
}
return k.scopedKeeper
}
cannot create multiple scoped keepers for the same module name: blog
Ignite CLI version: v28.3.0 Ignite CLI build date: 2024-03-20T15:31:07Z Ignite CLI source hash: 159abdca88605ed82cb4aabd52618db91069b7af Ignite CLI config version: v1 Cosmos SDK version: v0.50.5 Your OS: darwin Your arch: amd64 Your Node.js version: v20.1.0 Your go version: go version go1.22.2 darwin/arm64 Your uname -a: Darwin bogon 23.2.0 Darwin Kernel Version 23.2.0: Wed Nov 15 21:53:18 PST 2023; Your cwd: /blockchain/cosmos/ignite-scaffold/planet Is on Gitpod: false
@julienrbrt
For versions v27.x.x and above, the scopedKeeper field is not assigned when BlogKeeper is initialized, but the ScopedKeeper is obtained by calling the following method.
// ScopedKeeper returns the ScopedKeeper
func (k *Keeper) ScopedKeeper() exported.ScopedKeeper {
if k.scopedKeeper == nil && k.capabilityScopedFn != nil {
k.scopedKeeper = k.capabilityScopedFn(types.ModuleName)
}
return k.scopedKeeper
}
During the 'NewApp' process, the program creates a number of 'BlogKeeper' variables with empty scopedKeeper fields when passing or assigning BlogKeeper, resulting in these BlogKeeper variables creating ScopedKeeper when executing the following method for the first time:
func (app *App) GetCapabilityScopedKeeper(moduleName string) capabilitykeeper.ScopedKeeper {
return app.CapabilityKeeper.ScopeToModule(moduleName)
}
However, only one ScopedKeeper can be created with the same module name 'blog'.
Solution: It is suggested that you can pass or assign values in NewApp by *BlogKeeper.
Hey, sorry I mistakenly muted the notifications here and just realized it today. Thanks for all that extra investigation / context. I'll have a look soon!
@julienrbrt Thank you for solving this issue. Is there any progress now?
execute the command: ignite relayer connect
the error: Query failed with (6): rpc error: code = Unknown desc = recovered: cannot create multiple scoped keepers for the same module name: dex
info: Ignite CLI version: v28.4.0 Ignite CLI build date: 2024-05-15T13:42:13Z Ignite CLI source hash: 83ee9ba5f81f2d2104ed91808f2cb72719a23e41 Ignite CLI config version: v1 Cosmos SDK version: v0.50.6 Your OS: linux Your arch: amd64 Your Node.js version: v20.14.0 Your go version: go version go1.22.3 linux/amd64 Your uname -a: Linux DESKTOP-1BFR439 5.15.146.1-microsoft-standard-WSL2 #1 SMP Thu Jan 11 04:09:03 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux Your cwd: /home/djan/projects/cosmos/interchange Is on Gitpod: false
ignite relayer connect
✘ Query failed with (6): rpc error: code = Unknown desc = recovered: cannot create multiple scoped keepers for the same module name: blog
stack:
goroutine 2678 [running]:
runtime/debug.Stack()
...........................................
Ignite CLI version: v28.4.0 Ignite CLI build date: 2024-05-15T13:42:13Z Ignite CLI source hash: 83ee9ba5f81f2d2104ed91808f2cb72719a23e41 Ignite CLI config version: v1 Cosmos SDK version: v0.50.6 Your OS: linux Your arch: amd64 Your Node.js version: v18.18.2 Your go version: go version go1.21.7 linux/amd64 Your uname -a: Linux ip-172-23-106-107 6.5.0-1018-aws #18~22.04.1-Ubuntu SMP Fri Apr 5 17:44:33 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux Your cwd: /home/ubuntu/workspace/data/planet Is on Gitpod: false
How do you fix it?
Do you have any plans on when this issue will be resolved?
Update: Version v0.26.1 is not affected, I can follow the tutorial from start to finish. From my perspective, I think this error maybe due to deprecation of some of the function above v0.26.
Can you send me your pre-built link? I have connected 2 blockchains but when running this command "interchanged tx dex send-create-pair dex channel-0 marscoin venuscoin --from alice --chain-id mars --home ~/.mars" and "interchanged q dex list-sell-order-book" it has the following output: pagination: next_key: null total: "0" sellOrderBook: []
@julienrbrt any updates ?
Hey! I haven't been super great on following up on this issue. I'm super sorry about that :/
We've deprecated the ts-relayer
in v28.5.0 due to a lack of support.
You should try to use hermes instead on v28.5.1 (ignite relayer
)
Describe the bug Ignite CLI tutorial encountered panic when executing
ignite relayer connect
. As a user, I make sure to copy paste every command needed and double check the result of each ignite command.To reproduce Steps to reproduce the behavior:
ignite relayer connect
. It will return panic stack trace.What version are you using?
Provide the output of the
ignite version
command.