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

Error creating state directory: .babylond folder created in /root despite specified home directory #631

Open
meetrick opened this issue May 1, 2024 · 0 comments

Comments

@meetrick
Copy link

meetrick commented May 1, 2024

Summary of Bug

Even if �I specify a home directory when executing the babylond command, the .babylond folder is still created in the /root directory. However, the actual data is stored in the specified home directory. If I prevent the creation of the folder by adding touch /root/.babylond, the babylond command will fail because it cannot create the folder.

Version

  • v0.8.4

Steps to Reproduce

  1. touch /root/.babylond
  2. babylond or added home flag
  3. get error as below
panic: Error calling the VM: Cache error: Error creating state directory

goroutine 1 [running]:
github.com/CosmWasm/wasmd/x/wasm/keeper.NewKeeper({_, _}, {_, _}, {_, _}, {_, _}, {0x3b55090, 0xc000d83480}, ...)
	github.com/CosmWasm/[email protected]/x/wasm/keeper/keeper_cgo.go:72 +0xe4d
github.com/babylonchain/babylon/app.NewBabylonApp({0x3b54f28?, 0x59e74c0}, {0x3b6af60, 0xc0002399a0}, {0x0, 0x0}, 0x1, 0x0?, 0x0, 0xc000f0cc08, ...)
	github.com/babylonchain/babylon/app/app.go:712 +0x56c7
github.com/babylonchain/babylon/app.NewTmpBabylonApp()
	github.com/babylonchain/babylon/app/encoding.go:13 +0x1e5
github.com/babylonchain/babylon/cmd/babylond/cmd.NewRootCmd()
	github.com/babylonchain/babylon/cmd/babylond/cmd/root.go:51 +0x2a
main.main()
	github.com/babylonchain/babylon/cmd/babylond/main.go:16 +0x1c

Anticipated Issues:

  • The coexistence of the specified home directory and the default /root/.babylond directory can cause confusion for users. This poses significant risks in terms of node management.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant