Common Juju errors and their solutions
These address some common errors I've run into and their workarounds.
Leadership failure
ERROR juju.worker.dependency "leadership-tracker" manifold worker returned unexpected error: leadership failure: lease manager stopped
Juju Version
Juju 2.0 beta17
Additional Info
Several applications will be in a blocked state with their agent status listed as 'failed'.
Bugs
Solution
Login to controller
$ juju switch controller $ juju ssh 0
Kill jujud
$ ps -ef |grep jujud $ kill <pid>
Make sure jujud is restarted
$ ps -ef |grep jujud
Switch back to your model where services are deployed
$ juju switch default
Verify deployment is unwedged
$ juju status
