juju client expects $HOME/.local/share to exist

Bug #2013205 reported by Adam Dyess
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
New
Undecided
Unassigned

Bug Description

https://paste.ubuntu.com/p/T9pbxGH5cC/

if the user's $HOME/.local/share directory doesn't exist, juju 3.1.0 gives an unusual error about ssh keys and fails:

Example
-------------
ubuntu@jammy:~$ juju clouds
ERROR cannot load ssh client keys: mkdir /home/ubuntu/.local: permission denied

Workaround:
ubuntu@jammy:~$ mkdir -p ~/.local/share
ubuntu@jammy:~$ juju clouds
Since Juju 3 is being run for the first time, it has downloaded the latest public cloud information.
Only clouds with registered credentials are shown.
There are more clouds, use --all to see them.
You can bootstrap a new controller using one of these clouds...

Clouds available on the client:
Cloud Regions Default Type Credentials Source Description
localhost 1 localhost lxd 0 built-in LXD Container Hypervisor

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.