hi,
I type
juju status
ERROR cannot acquire lock file to get the current controller name: unable to open /tmp/juju-store-lock-3635383939333230: permission denied
how can I do? delete this file?
hi,
I type
juju status
ERROR cannot acquire lock file to get the current controller name: unable to open /tmp/juju-store-lock-3635383939333230: permission denied
how can I do? delete this file?
I believe it’s the same issue as ERROR cannot acquire lock file to read all the controllers: unable to open /tmp/juju-store-lock-3635383939333230: permission denied
Essentially at somepoint you ran with 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.
I first ran as user ubuntu,then ran as user root:
Last login: Mon Jan 25 14:50:13 2021 from **********
ubuntu@vivodo-3:~$ sudo juju status
[sudo] password for ubuntu:
ERROR cannot acquire lock file to read controller maas-controller: unable to open /tmp/juju-store-lock-3635383939333230: permission denied
ubuntu@vivodo-3:~$ sudo su - root
root@vivodo-3:~# juju status
ERROR cannot acquire lock file to get the current controller name: unable to open /tmp/juju-store-lock-3635383939333230: permission denied
Hi,
The issue can be resolved by removing the mentioned lock file.
Try removing it by “rm /tmp/juju-store-lock-3635383939333230” with root privileges.
It worked for me.
hi. thank u.
I romoved this file as you said,but it still not work.
finally ,I rebooted the maas sever ,an it work…