<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hi NAZ,</p>
    <p>Like Andrew already pointed out, you can issue `juju deploy
      your-char --to 9` to run your charms.</p>
    <p>Then on the juju CLI side, use `juju debug-log` to get a running
      debug log. Whatever the charm error is, you should see it flashing
      across the screen. Also, hooks and states will be run in multiple
      attempts, so you should see error repeated, then you can Ctrl-c to
      stop the log and look at the stack trace there.</p>
    <p><br>
    </p>
    <p>Since `install` hook is the first to run, it's actually pretty
      easy to debug because of less noise at that point. If possible,
      debug charm at a time instead of using a bundle, which will kick
      off multiple charms and can create a lot of noise in the log.<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 06/29/2017 05:38 PM, N. S. wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CY4PR13MB1685C87DE55590670B4B506498D20@CY4PR13MB1685.namprd13.prod.outlook.com">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <div dir="auto">Hi,
        <div dir="auto"><br>
        </div>
        <div dir="auto">Excuse me if this seems a strange scenario.</div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">My scenario is as follows:</div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">I have a charm that has lots of problems in its
          install script, needs massive change (NOT SURE how to fix it)</div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">So,</div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">I added an empty machine by</div>
        <div dir="auto">Juju add-machine --series Xenial</div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">And then I logged into it by</div>
        <div dir="auto">Juju SSH 9</div>
        <div dir="auto">And </div>
        <div dir="auto">I provisioned it (installed some software on
          it).</div>
        <div dir="auto"><br>
        </div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">Now,</div>
        <div dir="auto">Is it possible to get it back to Juju among the
          units and the applications?</div>
        <div dir="auto">How?</div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">Other hooks are probably fine, how to integrate
          them in the machine?</div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">Thanks,</div>
        <div dir="auto">BR</div>
        <div dir="auto">NAZ</div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Feng xia
Engineer
Lenovo USA

Phone: 5088011794
<a class="moz-txt-link-abbreviated" href="mailto:fxia1@lenovo.com">fxia1@lenovo.com</a>
        
Lenovo.com 
Twitter | Facebook | Instagram | Blogs | Forums
</pre>
  </body>
</html>