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

The local cache file create error. #723

Open
brotherlu-xcq opened this issue Jan 31, 2024 · 1 comment
Open

The local cache file create error. #723

brotherlu-xcq opened this issue Jan 31, 2024 · 1 comment

Comments

@brotherlu-xcq
Copy link
Contributor

What version of nacos-sdk-go are you using?

v2.2.5

What version of nacos-sever are you using?

--

What version of Go are you using (go version)?

1.18

What operating system (Linux, Windows, …) and version?

Linux&windows

What did you do?

If possible, provide a recipe for reproducing the error.

What did you expect to see?

use filepath.Join to replace the os.PathSeparator

What did you see instead?

func GetFileName(cacheKey, cacheDir string) string {
return cacheDir + string(os.PathSeparator) + cacheKey
}
func GetEncryptedDataKeyDir(cacheDir string) string {
return cacheDir + string(os.PathSeparator) + ENCRYPTED_DATA_KEY_FILE_NAME
}

2024-01-31T10:28:50.401+0800 ERROR cache/disk_cache.go:105 make dir failed, dir path /tmp/nacos/cache\config, err: mkdir /tmp/nacos/cache: The system cannot find the path specified.

@only21tender
Copy link

I met the same question, set the log or cache path can not read,and return error log like dir path /tmp/nacos/cache\config
I used nacos-go-sdk version github.com/nacos-group/nacos-sdk-go/v2,and my go version is 1.22

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

2 participants