juju permission denied on fresh install
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
New
|
Undecided
|
Unassigned |
Bug Description
On a freshly installed jammy server, juju command fails with permission denied:
$ sudo snap install juju --channel 3.0/candidate
juju (3.0/candidate) 3.0.2 from Canonical✓ installed
$ juju clouds
ERROR cannot load ssh client keys: mkdir /home/ubuntu/
It can be worked around by manually creating local/share:
mkdir -p .local/share
Versions:
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.1 LTS
Release: 22.04
Codename: jammy
$ snap list
Name Version Rev Tracking Publisher Notes
core20 20220826 1623 latest/stable canonical✓ base
juju 3.0.2 21474 3.0/candidate canonical✓ -
lxd 5.0.1-9dcf35b 23541 5.0/stable/… canonical✓ -
snapd 2.57.2 17029 latest/stable canonical✓ snapd
Confirmed - I see the same on a fresh install and one where I scrubbed .local - share/juju was the only subdirectory in it.