ignite / cli

Ignite is a CLI tool and hub designed for constructing Proof of Stake Blockchains rooted in Cosmos-SDK
https://ignite.com
Other
1.25k stars 549 forks source link

FIX: IBC Tutorial Panic When Running `ignite relayer connect` #3893

Open winton-library opened 8 months ago

winton-library commented 8 months ago

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:

  1. Follow the latest tutorial https://docs.ignite.com/guide/ibc (this is for v0.28)
  2. Everything was smooth until ignite relayer connect. It will return panic stack trace.
  3. Below is the log of the panic.
    ✘ Query failed with (6): rpc error: code = Unknown desc = recovered: cannot create multiple scoped keepers for the same module name: blog                                                                                          
    stack:                                                                                                                                                                                                                           
    goroutine 6969 [running]:                                                                                                                                                                                                        
    runtime/debug.Stack()                                                                                                                                                                                                            
    /Users/name/sdk/go1.21.6/src/runtime/debug/stack.go:24 +0x64                                                                                                                                                           
    github.com/cosmos/cosmos-sdk/baseapp.newDefaultRecoveryMiddleware.func1({0x104de00e0, 0x14000e19d40})                                                                                                                            
    /Users/name/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.50.3/baseapp/recovery.go:74 +0x2c                                                                                                                               
    github.com/cosmos/cosmos-sdk/baseapp.newRecoveryMiddleware.func1({0x104de00e0, 0x14000e19d40})                                                                                                                                   
    /Users/name/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.50.3/baseapp/recovery.go:42 +0x4c                                                                                                                               
    github.com/cosmos/cosmos-sdk/baseapp.processRecovery({0x104de00e0, 0x14000e19d40}, 0x14000a09200)                                                                                                                                
    /Users/name/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.50.3/baseapp/recovery.go:31 +0x50                                                                                                                               
    github.com/cosmos/cosmos-sdk/baseapp.processRecovery({0x104de00e0, 0x14000e19d40}, 0x1400687c888)                                                                                                                                
    /Users/name/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/name/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.50.3/baseapp/baseapp.go:816 +0xd0                                                                                                                               
    panic({0x104de00e0?, 0x14000e19d40?})                                                                                                                                                                                            
    /Users/name/sdk/go1.21.6/src/runtime/panic.go:920 +0x254                                                                                                                                                               
    github.com/cosmos/ibc-go/modules/capability/keeper.(*Keeper).ScopeToModule(0x1400152a410, {0x103e9aa16, 0x4})                                                                                                                    
    /Users/name/go/pkg/mod/github.com/cosmos/ibc-go/modules/capability@v1.0.0/keeper/keeper.go:80 +0x20c                                                                                                                   
    planet/app.(*App).GetCapabilityScopedKeeper(0x14000f83600, {0x103e9aa16, 0x4})                                                                                                                                                   
    /Users/name/Documents/planet/app/app.go:419 +0x5c                                                                                                                                                                      
    planet/x/blog/keeper.(*Keeper).ScopedKeeper(0x1400185fb88)                                                                                                                                                                       
    /Users/name/Documents/planet/x/blog/keeper/keeper.go:131 +0x94                                                                                                                                                         
    planet/x/blog/keeper.(*Keeper).ClaimCapability(_, {{0x105412f70, 0x106f24060}, {0x10542afd0, 0x14008073040}, {{0x0, 0x0}, {0x140017c8130, 0x5}, 0x2d9, ...}, ...}, ...)                                                          
    /Users/name/Documents/planet/x/blog/keeper/keeper.go:125 +0x40                                                                                                                                                         
    planet/x/blog/module.IBCModule.OnChanOpenInit({{{_, _}, {_, _}, {_, _}, {_, _}, _, _, ...}}, ...)                                                                                                                                
    /Users/name/Documents/planet/x/blog/module/module_ibc.go:53 +0x32c                                                                                                                                                     
    github.com/cosmos/ibc-go/v8/modules/apps/29-fee.IBCMiddleware.OnChanOpenInit({{_, _}, {{_, _}, {_, _}, {_, _}, {_, _}, ...}}, ...)                                                                                               
    /Users/name/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}, {0x10542a6a0, 0x1400128f660}, {{0x1053eb188, 0x14002597cd0}, {0x10542a6a0, 0x1400128f660}, {0x14eef89d0, 0x1400156b920}, ...}, ...}, ...)    
    /Users/name/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({0x105412e90, 0x14006396c60}, {0x1052928e0, 0x1400833a930})                                                                         
    /Users/name/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({0x105412e90, 0x14006396c60}, {0x0, 0x40}, 0x518a49249249184a, 0x1400687c6a8)                                                         
    /Users/name/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({0x1053929a0, 0x140025ae840}, {0x105412e20, 0x1400144ae00}, 0x1053c7d58, 0x140075dcb80)                                                   
    /Users/name/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({{0x105412f70, 0x106f24060}, {0x10542afd0, 0x14008073040}, {{0x0, 0x0}, {0x140017c8130, 0x5}, 0x2d9, {0x2d170f70, ...}, ...}, ...}, ...)
    /Users/name/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(_, {{0x105412f70, 0x106f24060}, {0x10542afd0, 0x14008073040}, {{0x0, 0x0}, {0x140017c8130, 0x5}, 0x2d9, ...}, ...}, ...)                                                 
    /Users/name/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.50.3/baseapp/baseapp.go:989 +0x17c                                                                                                                              
    github.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).runTx(0x1400061b8c0, 0x2, {0x140008a6b60, 0xe0, 0xe0})                                                                                                                           
    /Users/name/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.50.3/baseapp/baseapp.go:927 +0x11ac                                                                                                                             
    github.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).Simulate(0x1400061b8c0, {0x140008a6b60, 0xe0, 0xe0})                                                                                                                             
    /Users/name/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}, {0x10542e558, 0x14001cc73b0}, 0x0, {0x0, 0x0}, {0x10544bd00, 0x14001266d90}, ...}, ...}, ...)                                                        
    /Users/name/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({0x10525a060, 0x140005fc1e0}, {0x105412e20, 0x14006ee1880}, 0x1400687c480, 0x0)                                                                                  
    /Users/name/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({{0x105412f70, 0x106f24060}, {0x10542afd0, 0x14008072e80}, {{0x0, 0x0}, {0x140017c8130, 0x5}, 0x2d9, {0x2d170f70, ...}, ...}, ...}, ...)  
    /Users/name/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.50.3/baseapp/grpcrouter.go:109 +0x11c                                                                                                                           
    github.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).handleQueryGRPC(0x1400061b8c0, 0x14001cc73e0, 0x140081bbac0)                                                                                                                     
    /Users/name/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.50.3/baseapp/abci.go:1136 +0x190                                                                                                                                
    github.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).Query(0x1400061b8c0, {0x14004ddc000, 0x1010100010019}, 0x140081bbac0)                                                                                                            
    /Users/name/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.50.3/baseapp/abci.go:177 +0x47c                                                                                                                                 
    github.com/cosmos/cosmos-sdk/server.cometABCIWrapper.Query({{0x14ee7d808, 0x14000f83600}}, {0x105412fa8, 0x106f24060}, 0x140081bbac0)                                                                                            
    /Users/name/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(0x14001d6e000, {0x105412fa8, 0x106f24060}, 0x140081bbac0)                                                                                                          
    /Users/name/go/pkg/mod/github.com/cometbft/cometbft@v0.38.2/abci/client/local_client.go:106 +0xfc                                                                                                                      
    github.com/cometbft/cometbft/proxy.(*appConnQuery).Query(0x1400115e978, {0x105412fa8, 0x106f24060}, 0x140081bbac0)                                                                                                               
    /Users/name/go/pkg/mod/github.com/cometbft/cometbft@v0.38.2/proxy/app_conn.go:181 +0x1d4                                                                                                                               
    github.com/cometbft/cometbft/rpc/core.(*Environment).ABCIQuery(0x140010ba240, 0x100b4e438, {0x14001171fb0, 0x23}, {0x140017105a0, 0xe3, 0x1e0}, 0x0, 0x0)                                                                        
    /Users/name/go/pkg/mod/github.com/cometbft/cometbft@v0.38.2/rpc/core/abci.go:22 +0x130                                                                                                                                 
    reflect.Value.call({0x104f5f560, 0x140029b90e0, 0x13}, {0x103e9aa5a, 0x4}, {0x14001772600, 0x5, 0x5})                                                                                                                            
    /Users/name/sdk/go1.21.6/src/reflect/value.go:596 +0x9e8                                                                                                                                                               
    reflect.Value.Call({0x104f5f560, 0x140029b90e0, 0x13}, {0x14001772600, 0x5, 0x5})                                                                                                                                                
    /Users/name/sdk/go1.21.6/src/reflect/value.go:380 +0x74                                                                                                                                                                
    github.com/cometbft/cometbft/rpc/jsonrpc/server.makeJSONRPCHandler.func1({0x105403c00, 0x1400259d2f0}, 0x14006550e00)                                                                                                            
    /Users/name/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({0x105403c00, 0x1400259d2f0}, 0x14006550e00)                                                                                                     
    /Users/name/go/pkg/mod/github.com/cometbft/cometbft@v0.38.2/rpc/jsonrpc/server/http_json_handler.go:140 +0xb8                                                                                                          
    net/http.HandlerFunc.ServeHTTP(0x140029b9180, {0x105403c00, 0x1400259d2f0}, 0x14006550e00)                                                                                                                                       
    /Users/name/sdk/go1.21.6/src/net/http/server.go:2136 +0x44                                                                                                                                                             
    net/http.(*ServeMux).ServeHTTP(0x14002663540, {0x105403c00, 0x1400259d2f0}, 0x14006550e00)                                                                                                                                       
    /Users/name/sdk/go1.21.6/src/net/http/server.go:2514 +0x160                                                                                                                                                            
    github.com/rs/cors.(*Cors).Handler.func1({0x105403c00, 0x1400259d2f0}, 0x14006550e00)                                                                                                                                            
    /Users/name/go/pkg/mod/github.com/rs/cors@v1.10.1/cors.go:281 +0x2d8                                                                                                                                                   
    net/http.HandlerFunc.ServeHTTP(0x1400287f0a0, {0x105403c00, 0x1400259d2f0}, 0x14006550e00)                                                                                                                                       
    /Users/name/sdk/go1.21.6/src/net/http/server.go:2136 +0x44                                                                                                                                                             
    github.com/cometbft/cometbft/rpc/jsonrpc/server.maxBytesHandler.ServeHTTP({{0x1053dac20, 0x1400287f0a0}, 0xf4240}, {0x105403c00, 0x1400259d2f0}, 0x14006550e00)                                                                  
    /Users/name/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({0x105402830, 0x1400112c620}, 0x14006550e00)                                                                                                          
    /Users/name/go/pkg/mod/github.com/cometbft/cometbft@v0.38.2/rpc/jsonrpc/server/http_server.go:229 +0x36c                                                                                                               
    net/http.HandlerFunc.ServeHTTP(0x14002b5a0c0, {0x105402830, 0x1400112c620}, 0x14006550e00)                                                                                                                                       
    /Users/name/sdk/go1.21.6/src/net/http/server.go:2136 +0x44                                                                                                                                                             
    net/http.serverHandler.ServeHTTP({0x14001794b40}, {0x105402830, 0x1400112c620}, 0x14006550e00)                                                                                                                                   
    /Users/name/sdk/go1.21.6/src/net/http/server.go:2938 +0x2a0                                                                                                                                                            
    net/http.(*conn).serve(0x140065c2510, {0x105412ec8, 0x14001d10a00})                                                                                                                                                              
    /Users/name/sdk/go1.21.6/src/net/http/server.go:2009 +0x15b4                                                                                                                                                           
    created by net/http.(*Server).Serve in goroutine 58                                                                                                                                                                              
    /Users/name/sdk/go1.21.6/src/net/http/server.go:3086 +0x870                                                                                                                                                            
    : panic [cosmos/cosmos-sdk@v0.50.3/baseapp/recovery.go:72] with gas used: '63559': unknown request

What version are you using?

Provide the output of the ignite version command.

Ignite CLI version:     v28.1.1
Ignite CLI build date:      2024-01-16T09:10:21Z
Ignite CLI source hash:     c1804c6d7419b1dc61450f7b84f112abc2ed9dcb
Ignite CLI config version:  v1
Cosmos SDK version:     v0.50.3
Your OS:            darwin
Your arch:          arm64
Your Node.js version:       v20.9.0
Your go version:        go version go1.21.6 darwin/arm64
Your uname -a:          Darwin ###.local 23.2.0 Darwin Kernel Version 23.2.0: Wed Nov 15 21:55:06 PST 2023; root:xnu-10002.61.3~2/RELEASE_ARM64_T6020 arm64
Your cwd:           /Users/####/Documents/planet
Is on Gitpod:           false
winton-library commented 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
winton-library commented 8 months ago

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.

bsjohnson01 commented 8 months ago

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
toschdev commented 8 months ago

Thanks, we're working to resolve these issues.

ffuserX commented 6 months ago

@mondainai247 thanks for working on this issue. Do you have any update?

max78811 commented 6 months ago

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
milidrag-abc commented 6 months ago

I have the same issue. Also with v28.2.0

milidrag-abc commented 6 months ago

Same issue with v28.3.0

julienrbrt commented 6 months ago

Happy to give it a look next week.

max78811 commented 6 months ago

@julienrbrt thank you for solving this issue, is there any updates?

Wangert commented 5 months ago

@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
}
haskell-monad commented 5 months ago

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

Wangert commented 5 months ago

@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.

julienrbrt commented 5 months ago

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!

djanfee commented 3 months ago

@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

QueenSnake211 commented 3 months ago

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?

ffuserX commented 3 months ago

Do you have any plans on when this issue will be resolved?

DoubleX903 commented 3 months ago

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: []

mubarizkyc commented 3 months ago

@julienrbrt any updates ?

julienrbrt commented 2 months ago

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)