ERROR cannot acquire lock file to read all the controllers: unable to open /tmp/juju-store-lock-3635383939333230: permission denied

When I try to execute juju to create a controller I get the error msg ( ERROR cannot acquire lock file to read all the controllers: unable to open /tmp/juju-store-lock-3635383939333230: permission denied )

I have not been able to create a controller even tho I managed to juju bootstrap localhost when I first installed it. I cannot locate the cause of the error all assistance appreciated thanks.

Hi,

Permission errors on the juju-store-lock file can occur because the Juju CLI was run at one point as root.
You could try as root to clear the /tmp directory or ‘juju-*’ files and ensure you run the CLI as a non-root user to see if that solves the problem.

thank you simple solutions always