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
ArgoCD v2.4.0 - Unable to run CLI commands on Windows due to "config file has incorrect permission flags" error #9666
Comments
PS C:\Users\Balaji Rajmohan> argocd app list |
The same issue on Ubuntu 20.04 argocd: v2.4.3+471685f |
@ABRIO-PR the problem in Windows was that 0400/0600 was not possible. Are you able to |
Okay, thanks, it works ) |
This might only be useful to me, in the future, hitting this issue again and not remembering where the argocd config file is. After finding it for the nth time and fixing the issue, the argocd config file lives here: Obviously, this is for a linux installation. |
Checklist:
argocd version
.Describe the bug
The CLI is returning the error "config file has incorrect permission flags:-rw-rw-rw-.change the file permission either to 0400 or 0600." when running commands on Windows.
I have tried changing the permissions on my config file so that only my user (the owner of the file) has access to it however it still produces the same error. I have also tried deleting the config file and generating a new file via
argocd login
but it didn't help.I do not get the error on v2.3.4.
To Reproduce
argocd app list
This also occurs when running other commands such as
argocd cluster list
andargocd proj list
.Expected behavior
The command runs without any errors and returns the list of applicatons.
Screenshots
Version
Logs
The text was updated successfully, but these errors were encountered: