-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
[Bug]: new function prune
panics at v0.47.3
#16855
Comments
Right, the UX isn't so great for this command, some flags are necessary. |
works:
I will test with more blocks ofc |
Testing with Circulus-1 testnet: (pruning = "default")
Should the "prune everything" keep-recent less than 362889 (default in app.conf) @julienrbrt ? |
This commands takes no argument, so it should be |
Checking the --help flag it gets you more info; it works fine, is an UX issue, very agreed: Doing the test again with real data is works amazingly fine :) (but GB reduction is not awesome)
|
BTW @julienrbrt I tried again the last command and also get a "Killed" with a no pruning action. |
Hello @julienrbrt bcnad prune custom --pruning-keep-recent 100 --pruning-interval 10
panic: could not create directory "": mkdir : no such file or directory
goroutine 1 [running]:
github.com/tendermint/tendermint/config.EnsureRoot({0x0, 0x0})
/Users/raul/go/pkg/mod/github.com/cometbft/cometbft@v0.34.29/config/toml.go:35 +0x1f6
github.com/cosmos/cosmos-sdk/server.interceptConfigs(0xc001647860, {0x101efcd6c, 0x2b7c}, {0x101c141e0, 0xc0014dfd40}, 0xc001678000)
/Users/raul/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.46.14/server/util.go:208 +0x354
github.com/cosmos/cosmos-sdk/server.InterceptConfigsPreRunHandler(0x0?, {0x101efcd6c, 0x2b7c}, {0x101c141e0, 0xc0014dfd40}, 0x0?)
/Users/raul/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.46.14/server/util.go:141 +0x3c5
github.com/BitCannaGlobal/bcna/cmd/bcnad/cmd.NewRootCmd.func1(0xc00155e300, {0x1?, 0x102b189c8?, 0x1?})
/Users/raul/SDK/v0.46/bcna/cmd/bcnad/cmd/root.go:73 +0x2d9
github.com/tendermint/tendermint/libs/cli.concatCobraCmdFuncs.func1(0xc00155e300?, {0xc000701130, 0x1, 0x5})
/Users/raul/go/pkg/mod/github.com/cometbft/cometbft@v0.34.29/libs/cli/setup.go:118 +0x62
github.com/spf13/cobra.(*Command).execute(0xc00155e300, {0xc0007010e0, 0x5, 0x5})
/Users/raul/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:891 +0x739
github.com/spf13/cobra.(*Command).ExecuteC(0xc0014b1500)
/Users/raul/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:1044 +0x3bd
github.com/spf13/cobra.(*Command).Execute(...)
/Users/raul/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:968
github.com/spf13/cobra.(*Command).ExecuteContext(...)
/Users/raul/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:961
github.com/cosmos/cosmos-sdk/server/cmd.Execute(0x1019450b0?, {0x101e0d580, 0x5}, {0xc000713b48, 0x11})
/Users/raul/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.46.14/server/cmd/execute.go:36 +0x20f
main.main()
/Users/raul/SDK/v0.46/bcna/cmd/bcnad/main.go:14 +0x38 |
Have you used the new command? |
My last post show the command and the output. It works with It takes 36 minutes to prune a database where was set to "nothing" as pruning strategy. This was the order of the commands:
$ du -hs .bcna/data
114G .bcna/data
$ bcnad prune custom --pruning-keep-recent 100 --pruning-interval 10 --home $HOME/.bcna
get pruning options from command flags, strategy: 3, keep-recent: 100
pruning heights start from 1, end at 9636439
successfully pruned the application root multi stores
du -hs $HOME/.bcna/data
110G /home/band/.bcna/data |
I've not tested yet at v0.47.4 but with v0.46.14 the flag |
Yes, this is why I said the new prune command, for having no CLI breaking change in a patch release, |
Got it ;) |
Summary of Bug
When you try to prune the database with the new function
simd prune
it panics in an error.Version
v0.47.3 and other forks that use this release
Steps to Reproduce
Run a chain, stop the daemon/binary, try to prune the database
Checked in other forks:
The text was updated successfully, but these errors were encountered: