Skip to content

V19 mainnet state export fails #2827

Closed

Description

@gartnera
panic: no concrete type registered for type URL /cosmos.auth.v1beta1.ModuleCredential against interface *types.PubKey
goroutine 1 [running]:
github.com/cosmos/cosmos-sdk/x/auth/keeper.AccountKeeper.decodeAccount({{0x3dc5148, 0xc0018196a0}, {0x3df83e0, 0xc000f39930}, {{0x3df83e0, 0xc000f39930}, 0xc000525c40, {0x3dc5148, 0xc001819790}, {0x3dc5198, ...}, ...}, ...}, ...)
        /root/go/pkg/mod/github.com/cosmos/[email protected]/x/auth/keeper/keeper.go:224 +0xf4
github.com/cosmos/cosmos-sdk/x/auth/keeper.AccountKeeper.IterateAccounts({{0x3dc5148, 0xc0018196a0}, {0x3df83e0, 0xc000f39930}, {{0x3df83e0, 0xc000f39930}, 0xc000525c40, {0x3dc5148, 0xc001819790}, {0x3dc5198, ...}, ...}, ...}, ...)
        /root/go/pkg/mod/github.com/cosmos/[email protected]/x/auth/keeper/account.go:102 +0x178
github.com/cosmos/cosmos-sdk/x/auth/keeper.AccountKeeper.ExportGenesis({{0x3dc5148, 0xc0018196a0}, {0x3df83e0, 0xc000f39930}, {{0x3df83e0, 0xc000f39930}, 0xc000525c40, {0x3dc5148, 0xc001819790}, {0x3dc5198, ...}, ...}, ...}, ...)
        /root/go/pkg/mod/github.com/cosmos/[email protected]/x/auth/keeper/genesis.go:34 +0x1c5
github.com/cosmos/cosmos-sdk/x/auth.AppModule.ExportGenesis({{}, {{0x3dc5148, 0xc0018196a0}, {0x3df83e0, 0xc000f39930}, {{0x3df83e0, 0xc000f39930}, 0xc000525c40, {0x3dc5148, 0xc001819790}, ...}, ...}, ...}, ...)
        /root/go/pkg/mod/github.com/cosmos/[email protected]/x/auth/module.go:151 +0x9b
github.com/cosmos/cosmos-sdk/types/module.(*Manager).ExportGenesis(_, {{0x3de3680, 0xc000056068}, {0x3df8e60, 0xc0bbeb46c0}, {{0x0, 0x0}, {0x0, 0x0}, 0x47ac10, ...}, ...}, ...)
        /root/go/pkg/mod/github.com/cosmos/[email protected]/types/module/module.go:348 +0x125
github.com/zeta-chain/zetacore/app.(*App).ExportAppStateAndValidators(0xc00002a000, 0x0, {0x57aec10, 0x0, 0x0})a
        /go/src/github.com/zeta-chain/node/app/export.go:33 +0x1cf
main.appCreator.appExport({{{0x3deb0c0, 0xc0011a42d0}, {0x3e01738, 0xc000f39930}, {0x3df5a00, 0xc0011b0180}, 0xc000525c40}}, {0x3de51a0, 0xc00181efc0}, {0x3dfb400, ...}, ...)
        /go/src/github.com/zeta-chain/node/cmd/zetacored/root.go:326 +0x36a
github.com/cosmos/cosmos-sdk/server.ExportCmd.func1(0xc001721800, {0xc00181ea80?, 0x0?, 0x6?})
        /root/go/pkg/mod/github.com/cosmos/[email protected]/server/export.go:70 +0x33e
github.com/spf13/cobra.(*Command).execute(0xc001721800, {0xc00181e9c0, 0x6, 0x6})
        /root/go/pkg/mod/github.com/spf13/[email protected]/command.go:940 +0x862
github.com/spf13/cobra.(*Command).ExecuteC(0xc0016d8f00)
        /root/go/pkg/mod/github.com/spf13/[email protected]/command.go:1068 +0x3bd
github.com/spf13/cobra.(*Command).Execute(...)
        /root/go/pkg/mod/github.com/spf13/[email protected]/command.go:992
github.com/spf13/cobra.(*Command).ExecuteContext(...)
        /root/go/pkg/mod/github.com/spf13/[email protected]/command.go:985
github.com/cosmos/cosmos-sdk/server/cmd.Execute(0x26da180?, {0x0, 0x0}, {0xc000196ca0, 0x1a})
        /root/go/pkg/mod/github.com/cosmos/[email protected]/server/cmd/execute.go:36 +0x20f
main.main()
        /go/src/github.com/zeta-chain/node/cmd/zetacored/main.go:19 +0x35
Snapshoter service failed
Cleaning swap file
alexg@archive0-eu-central-1-mainnet:~$ zetacored version
19.1.1

cosmos sdk RegisterInterfaces(): https://github.com/cosmos/cosmos-sdk/blob/main/x/auth/types/codec.go#L54

Seems like we're missing a authtypes.RegisterInterfaces(encodingConfig.InterfaceRegistry) in func MakeEncodingConfig() ethermint.EncodingConfig

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions