-
-
Notifications
You must be signed in to change notification settings - Fork 216
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
incus remote add --auth-type oidc unable to create the configuration file error #345
Comments
Could you check what happens if you only create I know we have some logic to create the directory if missing, but it may be assuming that some of the default XDG directories are already present. |
I have to create both directories. |
I've tried using my root user here to get a user where I don't care about
|
Oh, is that a system that only has |
I suspect that's the case as that would trigger a code path that would lead to what you're reporting. |
Indeed, it only has the client installed. |
Required information
Linux pandora 6.1.0-16-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.67-1 (2023-12-12) x86_64 GNU/Linux
Issue description
When executing the
incus remote add incus.test --auth-type oidc
command in a machine without the~/.config
directory, the following error is displayed:Please note that running with
--debug
did not display anything related to the directory creation.Workaround: Manually create the
.config/incus
directory before callingincus
.Steps to reproduce
Information to attach
dmesg
)incus info NAME --show-log
)incus config show NAME --expanded
)incus monitor --pretty
while reproducing the issue)The text was updated successfully, but these errors were encountered: