juju permission denied on fresh install

Bug #1997548 reported by Liam Young
14
This bug affects 3 people
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/.local: permission denied

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

Revision history for this message
James Page (james-page) wrote :

Confirmed - I see the same on a fresh install and one where I scrubbed .local - share/juju was the only subdirectory in it.

Revision history for this message
Ian Booth (wallyworld) wrote :
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.