Skip to content

unknown command "unsafe-reset-all" for "simd" #11717

Closed
@takapi327

Description

Summary of Bug

I am currently trying COSMOS ACADEMY's Running a Chain.

I am following the instructions here, but I cannot use the unsafe-reset-all command to reset the database after make build.

スクリーンショット 2022-04-21 22 22 36

I also ran the help command to check, but there does not appear to be an unsafe-reset-all command that can be run.

 ./simd --help
simulation app

Usage:
  simd [command]

Available Commands:
  add-genesis-account Add a genesis account to genesis.json
  collect-gentxs      Collect genesis txs and output a genesis.json file
  config              Create or query an application CLI configuration file
  debug               Tool for helping with debugging your application
  export              Export state to JSON
  gentx               Generate a genesis tx carrying a self delegation
  help                Help about any command
  init                Initialize private validator, p2p, genesis, and application configuration files
  keys                Manage your application's keys
  migrate             Migrate genesis to a specified target version
  query               Querying subcommands
  rollback            rollback cosmos-sdk and tendermint state by one height
  rosetta             spin up a rosetta server
  start               Run the full node
  status              Query remote node for status
  tendermint          Tendermint subcommands
  testnet             Initialize files for a simapp testnet
  tx                  Transactions subcommands
  validate-genesis    validates the genesis file at the default location or at the location passed as an arg
  version             Print the application binary version information

Flags:
  -h, --help                help for simd
      --home string         directory for config and data (default "/Users/takapi327/.simapp")
      --log_format string   The logging format (json|plain) (default "plain")
      --log_level string    The logging level (trace|debug|info|warn|error|fatal|panic) (default "info")
      --trace               print out full stack trace on errors

Use "simd [command] --help" for more information about a command.

I have never seen a problem where unsafe-reset-all is not available, so I assume it is a problem with the execution environment.

Has anyone else experienced similar problems in the same environment as me?

Also, is there any way to reset the database if unsafe-reset-all is not available?

Version

Cosmos SDK: v0.45.3

GO: go1.18 darwin/amd64

Execution environment

OS: macOS Monterey v12.1
chip: Apple M1

Steps to Reproduce

$ git clone https://github.com/cosmos/cosmos-sdk
$ git checkout v0.45.3
$ make build
$ cd build
$ ./simd unsafe-reset-all

For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned

Activity

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

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