You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In latest versions of code while we are using a temp dir for queries or any kind of command executions
node is trying to create a temp directory but these are not removing after executing folders still exists on temp folder
var tempDir = func() string {
dir, err := os.MkdirTemp("", ".gaia")
if err != nil {
dir = gaia.DefaultNodeHome
}
defer os.RemoveAll(dir)
return dir
}
This function will remove node home if there is problem with creating temp directory
it happened to me multiple times when the server's disk is full (it will completely erase node home)
Gaia Version
v19.0.0, v20.0.0
How to reproduce?
check tmp folder after executing some queries
you will find lot of .gaia-temp** folders
The text was updated successfully, but these errors were encountered:
harish551
changed the title
[Bug]: Node is creating TempDir on every command execution
[Bug]: Node is creating multiple temp directories on command executions
Sep 19, 2024
Is there an existing issue for this?
What happened?
In latest versions of code while we are using a temp dir for queries or any kind of command executions
node is trying to create a temp directory but these are not removing after executing folders still exists on temp folder
https://github.com/cosmos/gaia/blob/main/cmd/gaiad/cmd/root.go#L437
This function will remove node home if there is problem with creating temp directory
it happened to me multiple times when the server's disk is full (it will completely erase node home)
Gaia Version
v19.0.0, v20.0.0
How to reproduce?
check tmp folder after executing some queries
you will find lot of .gaia-temp** folders
The text was updated successfully, but these errors were encountered: