Juju fails to create ~/.local folder if it doesn't exist

Bug #2023329 reported by Leon
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Canonical Juju
Confirmed
Undecided
Unassigned

Bug Description

Juju fails to bootstrap etc. if ~/.local doesn't exist:

ERROR cannot load ssh client keys: mkdir /home/ubuntu/.local: permission denied

Currently, in our cloud-inits, we have to do it ourselves before bootstrapping:

sudo -u ubuntu mkdir -p /home/ubuntu/.local/share/juju

When logged in as "ubuntu", I am able to manually create the folder too so not sure why it says "permission denied".

Simon Déziel (sdeziel)
Changed in juju:
status: New → Confirmed
Revision history for this message
Leon (sed-i) wrote :

3.2/stable

Revision history for this message
Simon Déziel (sdeziel) wrote :

In our scripts, we even found the need to create `~/.ssh` as otherwise, bootstrapping fails:

```
mkdir -pm 0700 ~/.local/share/juju
mkdir -pm 0700 ~/.ssh
```

Revision history for this message
Ian Booth (wallyworld) wrote :

This is due to limitations of strictly confined snaps that we need an upstream fix for.

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.