debug hooks

David Britton david.britton at canonical.com
Thu Oct 23 14:51:54 UTC 2014


On Thu, Oct 23, 2014 at 04:09:31PM +0400, Vasiliy Tolstov wrote:
> Hi =)!
> 
> I have succeseful deployed wordpress on precreated lxc containers.
> After deploy to vps i have all services in error state with message
> about install hook failed.
> 

First, look on the unit in /var/log/juju:

  juju ssh <unit>
  ls -l /var/log/juju/unit-*

The unit-* logs are the intersting ones if you have gotten as far as
running hooks.

If that is not revealing, you can step through hook execution, see the
following link (thought this is typically not necessary to just see how
something failed, it's more if you are developing a charm):

  https://juju.ubuntu.com/docs/authors-hook-debug.html

HTH!

-- 
David Britton <david.britton at canonical.com>



More information about the Juju-dev mailing list