Permission denied when bootstrapping Juju

Hi, I’m following the multi-node tutorial to install microstack. Unfortunately I’ve got stuck at a very early stage. When doing ‘sudo sunbeam cluster bootstrap --role control --role compute --role storage’ I get the following error:

sudo sunbeam cluster bootstrap --role control --role compute --role storage

Management networks shared by hosts (CIDRs, separated by comma) (192.168.1.0/24): ⠙ Bootstrapping Juju onto machine … Error determining whether to skip the bootstrap process. Defaulting to not skip.

Traceback (most recent call last): File “/snap/openstack/274/lib/python3.10/site-packages/sunbeam/commands/juju.py”, line 259, in is_skip self.juju_clouds = self.get_clouds(self.cloud_type)

File “/snap/openstack/274/lib/python3.10/site-packages/sunbeam/commands/juju.py”, line 105, in get_clouds clouds_from_juju_cmd = self._juju_cmd(“clouds”)

File “/snap/openstack/274/lib/python3.10/site-packages/sunbeam/commands/juju.py”, line 83, in _juju_cmd process = subprocess.run(cmd, capture_output=True, text=True, check=True)

File “/usr/lib/python3.10/subprocess.py”, line 526, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command ‘[’/snap/openstack/274/juju/bin/juju’, ‘clouds’, ‘–format’, ‘json’]’ returned non-zero exit status 2. ERROR stat .: permission denied

Error: Command ‘[’/snap/openstack/274/juju/bin/juju’, ‘clouds’, ‘–format’, ‘json’]’ returned non-zero exit status 2.

The file /snap/openstack/274/juju/bin/juju does not exist. juju is located at /snap/juju.

Any idea what’s wrong?

After running the prepare-node-script, the credentials for .ssh/authorized_keys are too open:

-rw-rw-r-- 1 ubuntu snap_daemon 2975 Oct 24 10:49 authorized_keys

‘chmod 640 .ssh/authorized_keys’ fixes this.