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

[Bug]: node is creating multiple temp directories command executions #8725

Open
harish551 opened this issue Sep 23, 2024 · 0 comments · May be fixed by #8726
Open

[Bug]: node is creating multiple temp directories command executions #8725

harish551 opened this issue Sep 23, 2024 · 0 comments · May be fixed by #8726

Comments

@harish551
Copy link

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/osmosis-labs/osmosis/blob/main/cmd/osmosisd/cmd/root.go#L480

func tempDir() string {
	dir, err := os.MkdirTemp("", "osmosisd")
	if err != nil {
		dir = osmosis.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)

Osmosis Version

v26.0.1

How to reproduce?

check tmp folder after executing some queries on node

ls /tmp/ | grep osmosis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Needs Triage 🔍
Development

Successfully merging a pull request may close this issue.

1 participant