<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Jul 10, 2014 at 9:06 AM, Abel Deuring <span dir="ltr"><<a href="mailto:abel.deuring@canonical.com" target="_blank">abel.deuring@canonical.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Recent versions of the Juju-Vagrant images (see<br>
<a href="https://juju.ubuntu.com/docs/config-vagrant.html" target="_blank">https://juju.ubuntu.com/docs/config-vagrant.html</a> ) do not work after a<br>
reboot because a script that is invoked to configure NAT has<br>
difficulties to access the state server; the web server for<br>
<a href="http://127.0.0.1:6080" target="_blank">http://127.0.0.1:6080</a> (mention in the web page above), who also wants to<br>
connect to the state server, fails quite often too.<br>
<br>
Comparing MongoDB logs, Juju logs and logs from the script, it turns out<br>
that the errors occur shortly after the mongo server is restarted.<br>
<br>
More precisely, the mongo server is always started _three_ times when<br>
the machine boots. Example log output:<br>
<br>
machine-0: 2014-07-10 13:00:00 INFO juju.mongo mongo.go:147 Ensuring<br>
mongo server is running; data directory /home/vagrant/.juju/local; port<br>
37017<br>
machine-0: 2014-07-10 13:00:06 INFO juju.mongo mongo.go:147 Ensuring<br>
mongo server is running; data directory /home/vagrant/.juju/local; port<br>
37017<br>
machine-0: 2014-07-10 13:00:13 INFO juju.mongo mongo.go:147 Ensuring<br>
mongo server is running; data directory /home/vagrant/.juju/local; port<br>
37017<br>
<br>
I have a workaround for the Vargant boxes nearly ready for this problem<br>
(patiently try to query the server), but I'm wondering if it is<br>
necessary to restart the server two times -- and I'm wondering if only<br>
the Vagrant images are affected by this problem.<br></blockquote><div><br></div><div>Sounds like you're hitting <a href="https://bugs.launchpad.net/juju-core/+bug/1338511">https://bugs.launchpad.net/juju-core/+bug/1338511</a></div>
<div>(Fixed on trunk and in 1.20.1)</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
cheers<br>
<span class=""><font color="#888888">Abel<br>
<br>
--<br>
Juju mailing list<br>
<a href="mailto:Juju@lists.ubuntu.com">Juju@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/juju" target="_blank">https://lists.ubuntu.com/mailman/listinfo/juju</a><br>
</font></span></blockquote></div><br></div></div>