<div dir="ltr">Hi Bernie,<br><div><br><div class="gmail_quote"><div dir="ltr">On Tue, Jul 28, 2015 at 2:12 PM Bernie Innocenti <<a href="mailto:bernie@codewiz.org">bernie@codewiz.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">1. We need monitoring for containers health with notifications when<br>
parameters go off thresholds. Similar to what Munin does.<br></blockquote><div><br></div><div>I'm not sure how that would help us.  A container running out of resources doesn't crash - parsoid runs almost using all the allocated memory and parsoid+trac+others hit their cpu quotas sometimes and just keep running.<br><br></div><div>Maybe it would be more useful to monitor client metrics, like can we reach the service over http?<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
2. Containers should autorestart if they crash for any reason (with the<br>
usual measures to deal with services which crash repeatedly).<br></blockquote><div><br></div><div>That is a feature built into docker.  I've enabled it in container.yml (as a global default) and restarted trac with the new parameters.<br><br></div><div>Thanks,<br></div><div>Sam<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
3. Since high-profile services have been deployed using Docker for a<br>
while, software for doing (1) and (2) certainly exists already :-)<br>
<br>
<br>
On 27/07/15 22:32, Samuel Cantero wrote:<br>
> I didn't shut it down. The trac container was already off when I checked<br>
> it.<br>
><br>
> On Mon, Jul 27, 2015 at 9:40 PM, Sam P. <sam@sam.today<br>
> <mailto:<a href="mailto:sam@sam.today" target="_blank">sam@sam.today</a>>> wrote:<br>
><br>
>     Did you check the logs before you shut it down?<br>
><br>
><br>
>     On Tue, 28 Jul 2015 9:38 am Samuel Cantero <<a href="mailto:scg@sugarlabs.org" target="_blank">scg@sugarlabs.org</a><br>
>     <mailto:<a href="mailto:scg@sugarlabs.org" target="_blank">scg@sugarlabs.org</a>>> wrote:<br>
><br>
>         Hi Gonzalo,<br>
><br>
>         The trac container was down. I just recently turned it on.<br>
><br>
>         Somebody turned it off for some reason? If it not the case,<br>
>         maybe the container has reached its maximum memory or processor<br>
>         limit. The docker container stops in that case.<br>
><br>
>         Greetings,<br>
><br>
><br>
><br>
>         On Mon, Jul 27, 2015 at 5:01 PM, Gonzalo Odiard<br>
>         <<a href="mailto:godiard@sugarlabs.org" target="_blank">godiard@sugarlabs.org</a> <mailto:<a href="mailto:godiard@sugarlabs.org" target="_blank">godiard@sugarlabs.org</a>>> wrote:<br>
><br>
>             Today, I get a error<br>
><br>
>             502 Bad Gateway<br>
>             nginx/1.8.0<br>
><br>
>             when try access trac.<br>
><br>
>             Gonzalo<br>
><br>
>             On Sat, Jul 25, 2015 at 8:40 PM, Gonzalo Odiard<br>
>             <<a href="mailto:godiard@sugarlabs.org" target="_blank">godiard@sugarlabs.org</a> <mailto:<a href="mailto:godiard@sugarlabs.org" target="_blank">godiard@sugarlabs.org</a>>> wrote:<br>
><br>
>                 Thanks Sams :)<br>
><br>
>                 On Sat, Jul 25, 2015 at 3:58 PM, Samuel Cantero<br>
>                 <<a href="mailto:scg@sugarlabs.org" target="_blank">scg@sugarlabs.org</a> <mailto:<a href="mailto:scg@sugarlabs.org" target="_blank">scg@sugarlabs.org</a>>> wrote:<br>
><br>
>                     Hi All,<br>
><br>
>                     I just recently check this email. The good news is<br>
>                     that Sam P already dockerized this service and now<br>
>                     we have the 1.0.7 Trac version.<br>
><br>
>                     Greetings,<br>
><br>
>                     On Fri, Jul 24, 2015 at 11:06 AM, Gonzalo Odiard<br>
>                     <<a href="mailto:godiard@sugarlabs.org" target="_blank">godiard@sugarlabs.org</a><br>
>                     <mailto:<a href="mailto:godiard@sugarlabs.org" target="_blank">godiard@sugarlabs.org</a>>> wrote:<br>
><br>
>                         I am pretty sure dnarvaez updated the trac<br>
>                         instance a time ago.<br>
><br>
>                         On Fri, Jul 24, 2015 at 12:03 PM, Bernie<br>
>                         Innocenti <<a href="mailto:bernie@codewiz.org" target="_blank">bernie@codewiz.org</a><br>
>                         <mailto:<a href="mailto:bernie@codewiz.org" target="_blank">bernie@codewiz.org</a>>> wrote:<br>
><br>
>                             On 07/24/2015 10:34 AM, Gonzalo Odiard wrote:<br>
>                             > When try to read bughttp://<a href="http://bugs.sugarlabs.org/ticket/4863" rel="noreferrer" target="_blank">bugs.sugarlabs.org/ticket/4863</a><br>
>                             > get the following error:"Genshi UnicodeEncodeError error while rendering<br>
>                             > template (unknown template location)"<br>
>                             ><br>
>                             > A quick google search show this bug [1]<br>
>                             ><br>
>                             > The error is originated by simply enter a link like this<br>
>                             > "<<a href="http://trac.edgewall.org/" rel="noreferrer" target="_blank">http://trac.edgewall.org/</a>>"<br>
>                             > to a ticket. According to this [2] the bug is already solved on Trac 1.0.2<br>
>                             ><br>
>                             > Then:<br>
>                             > Developers: Please don't add links between <> until the error is solved.<br>
>                             > Systems: I don't know what version of trac we have running, could be<br>
>                             > possible update?<br>
><br>
>                             Who's maintaining Trac these days? The wiki<br>
>                             points at dnarvaez and me,<br>
>                             but the former is MIA and the latter has<br>
>                             installed it in 2008 and not<br>
>                             touched it ever since:<br>
><br>
>                             <a href="https://wiki.sugarlabs.org/go/Service/bugs" rel="noreferrer" target="_blank">https://wiki.sugarlabs.org/go/Service/bugs</a><br>
><br>
>                             Perhaps one of the two Sams would like to<br>
>                             upgrade Trac in-place or move<br>
>                             it into a docker container?<br>
><br>
>                             --<br>
>                               _ // Bernie Innocenti<br>
>                               \X/ <a href="http://codewiz.org" rel="noreferrer" target="_blank">http://codewiz.org</a><br>
><br>
><br>
><br>
><br>
>                         --<br>
>                         Gonzalo Odiard<br>
><br>
>                         SugarLabs - Software [for | by] children learning<br>
><br>
>                         _______________________________________________<br>
>                         Systems mailing list<br>
>                         <a href="mailto:Systems@lists.sugarlabs.org" target="_blank">Systems@lists.sugarlabs.org</a><br>
>                         <mailto:<a href="mailto:Systems@lists.sugarlabs.org" target="_blank">Systems@lists.sugarlabs.org</a>><br>
>                         <a href="http://lists.sugarlabs.org/listinfo/systems" rel="noreferrer" target="_blank">http://lists.sugarlabs.org/listinfo/systems</a><br>
><br>
><br>
><br>
><br>
><br>
>                 --<br>
>                 Gonzalo Odiard<br>
><br>
>                 SugarLabs - Software [for | by] children learning<br>
><br>
><br>
><br>
><br>
>             --<br>
>             Gonzalo Odiard<br>
><br>
>             SugarLabs - Software [for | by] children learning<br>
><br>
><br>
>         _______________________________________________<br>
>         Systems mailing list<br>
>         <a href="mailto:Systems@lists.sugarlabs.org" target="_blank">Systems@lists.sugarlabs.org</a> <mailto:<a href="mailto:Systems@lists.sugarlabs.org" target="_blank">Systems@lists.sugarlabs.org</a>><br>
>         <a href="http://lists.sugarlabs.org/listinfo/systems" rel="noreferrer" target="_blank">http://lists.sugarlabs.org/listinfo/systems</a><br>
><br>
><br>
><br>
><br>
> _______________________________________________<br>
> Systems mailing list<br>
> <a href="mailto:Systems@lists.sugarlabs.org" target="_blank">Systems@lists.sugarlabs.org</a><br>
> <a href="http://lists.sugarlabs.org/listinfo/systems" rel="noreferrer" target="_blank">http://lists.sugarlabs.org/listinfo/systems</a><br>
><br>
<br>
<br>
--<br>
  _ // Bernie Innocenti<br>
  \X/  <a href="http://codewiz.org" rel="noreferrer" target="_blank">http://codewiz.org</a><br>
</blockquote></div></div></div>