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

Seid mainnet fresh install fails to run with divide by zero error #1845

Open
CRossel87a opened this issue Sep 6, 2024 · 1 comment
Open
Labels
bug Something isn't working linear Created by Linear-GitHub Sync

Comments

@CRossel87a
Copy link

CRossel87a commented Sep 6, 2024

Seid version
name: sei
server_name:
version: v5.7.5
commit: 7e7a9ce
build_tags: netgo ledger,
go: go version go1.21.6 linux/amd64
build_deps:

Chain ID
pacific-1

Describe the bug

  1. seid init --chain-id pacific-1
  2. wget mainnet genesis and replace
  3. seid start

gives error:
panic: recovered: runtime error: integer divide by zero

runtime/debug.Stack()
/usr/local/go/src/runtime/debug/stack.go:24 +0x5e
github.com/cosmos/cosmos-sdk/baseapp.NewBaseApp.newDefaultRecoveryMiddleware.func1({0x2607080?, 0x4ef9620})
/root/go/pkg/mod/github.com/sei-protocol/[email protected]/baseapp/recovery.go:91 +0x26
github.com/cosmos/cosmos-sdk/baseapp.NewBaseApp.newDefaultRecoveryMiddleware.newRecoveryMiddleware.func2({0x2607080?, 0x4ef9620?})
/root/go/pkg/mod/github.com/sei-protocol/[email protected]/baseapp/recovery.go:40 +0x2d
github.com/cosmos/cosmos-sdk/baseapp.processRecovery({0x2607080, 0x4ef9620}, 0xc00090ede0?)
/root/go/pkg/mod/github.com/sei-protocol/[email protected]/baseapp/recovery.go:29 +0x2f
github.com/cosmos/cosmos-sdk/baseapp.processRecovery({0x2607080, 0x4ef9620}, 0x7372656b726f7701?)
/root/go/pkg/mod/github.com/sei-protocol/[email protected]/baseapp/recovery.go:34 +0x53
github.com/cosmos/cosmos-sdk/baseapp.processRecovery({0x2607080, 0x4ef9620}, 0x7830282967616c46?)
/root/go/pkg/mod/github.com/sei-protocol/[email protected]/baseapp/recovery.go:34 +0x53
github.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).runTx.func1()
/root/go/pkg/mod/github.com/sei-protocol/[email protected]/baseapp/baseapp.go:894 +0x36d
panic({0x2607080?, 0x4ef9620?})
/usr/local/go/src/runtime/panic.go:920 +0x270
github.com/cosmos/cosmos-sdk/x/auth/ante.SetUpContextDecorator.AnteHandle.func1()
/root/go/pkg/mod/github.com/sei-protocol/[email protected]/x/auth/ante/setup.go:69 +0x1d8
panic({0x2607080?, 0x4ef9620?})
/usr/local/go/src/runtime/panic.go:914 +0x21f
github.com/cosmos/cosmos-sdk/store/types.(*infiniteMultiplierGasMeter).adjustGas(...)
/root/go/pkg/mod/github.com/sei-protocol/[email protected]/store/types/gas.go:289
github.com/cosmos/cosmos-sdk/store/types.(*infiniteMultiplierGasMeter).ConsumeGas(0x18?, 0x1?, {0x29bf3fb?, 0x15?})
/root/go/pkg/mod/github.com/sei-protocol/[email protected]/store/types/gas.go:293 +0x50
github.com/cosmos/cosmos-sdk/store/gaskv.(*Store).Get(0xc000acc180, {0xc000c08330, 0x15, 0x18})
/root/go/pkg/mod/github.com/sei-protocol/[email protected]/store/gaskv/store.go:42 +0x4a

@CRossel87a CRossel87a added bug Something isn't working linear Created by Linear-GitHub Sync labels Sep 6, 2024
@CRossel87a
Copy link
Author

Issue may have been resolved by changing to sei-db:

Read modify and write app.toml if sei-db is selected

        if db_choice == "2":
            with open(app_config_path, 'r') as file:
                app_data = file.read()
            app_data = app_data.replace('sc-enable = false', 'sc-enable = true')
            app_data = app_data.replace('ss-enable = false', 'ss-enable = true')
            with open(app_config_path, 'w') as file:
                file.write(app_data)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working linear Created by Linear-GitHub Sync
Projects
None yet
Development

No branches or pull requests

1 participant