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

config backup 目录创建后 permission denied #19

Closed
printfcoder opened this issue Nov 9, 2020 · 2 comments
Closed

config backup 目录创建后 permission denied #19

printfcoder opened this issue Nov 9, 2020 · 2 comments

Comments

@printfcoder
Copy link
Member

printfcoder commented Nov 9, 2020

当目录不存在,框架自动创建目录。

代码:

c, _ := config.NewConfig(
		config.Storage(true),
		config.StorageDir(dir+"/cache-config"),
	)

错误:

2020-11-09 14:29:06  file=config/config.go:99 level=error config storage write error: stat ***/cache-config/stack_config.conf: permission denied

@Allenxuxu

@Allenxuxu
Copy link
Member

你sudo 运行

@printfcoder
Copy link
Member Author

sudo? 逗我呢,主任。

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