<div dir="ltr">Thanks Bernie!</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Aug 9, 2014 at 7:37 PM, Bernie Innocenti <span dir="ltr"><<a href="mailto:bernie@codewiz.org" target="_blank">bernie@codewiz.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On 08/09/2014 06:26 PM, Bernie Innocenti wrote:<br>
> On 08/09/2014 06:16 PM, Bernie Innocenti wrote:<br>
>> (dropping a bunch of redundant addresses from the cc list)<br>
>><br>
>> I noticed a strange pattern: all the rsync mirrors appear to be broken,<br>
>> but in fact they're all responsive and up to date (the timestamp.txt<br>
>> file is fresh).<br>
>><br>
>> Looks like Mirmon's health check over rsync is broken in some way.<br>
><br>
> Ok, found the cause with strace:<br>
><br>
> $ strace -f -e execve mirmon -v -get all -c /etc/mirmon.conf<br>
> [...]<br>
> [pid 11135] execve("/usr/bin/wget", ["/usr/bin/wget", "-q", "-O", "-",<br>
> "-T", "30", "-t", "1", "rsync://<a href="http://mirror.aarnet.edu.au/pub" target="_blank">mirror.aarnet.edu.au/pub</a>"...], [/* 40<br>
> vars */]Process 11124 detached<br>
><br>
> It's using wget with an rsync url :-(<br>
<br>
</div>Ok, looks like the default /etc/mirmon.conf shipped with the Ubuntu<br>
package doesn't support rsync. After reading the f...ine manual, I<br>
changed it like so:<br>
<br>
  probe /usr/bin/probe -q -t %TIMEOUT% %URL%timestamp.txt<br>
<br>
This seems to do the right thing. Mirrors with rsync probing urls have<br>
started to go green, and will go back online in a few hours (mirmon does<br>
not declare them healthy until it has seen them up for long enough).<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
>> On 08/09/2014 06:08 PM, Bernie Innocenti wrote:<br>
>>> Our CDN works like this:<br>
>>><br>
>>> 1. mirmon checks periodically if mirrors are responding and up to date<br>
>>><br>
>>> 2. clients send queries to <a href="http://download.sugarlabs.org" target="_blank">download.sugarlabs.org</a> (sunjammer)<br>
>>><br>
>>> 3. mod_mirrorbrain in apache uses geoip to find the closest *WORKING* mirror<br>
>>><br>
>>> 4. apache sends back a 302 redirect to the chosen mirror<br>
>>><br>
>>> 5. user downloads the file from the mirror<br>
>>><br>
>>><br>
>>> So, no matter how many mirrors are broken, you should *never* get<br>
>>> redirected to an error page. Can anyone show me a "wget --save-headers"<br>
>>> showing the problem?<br>
>>><br>
>>><br>
>>> On 08/07/2014 08:32 AM, Martin Abente wrote:<br>
>>>><br>
>>>><br>
>>>> On Wed, Aug 6, 2014 at 5:54 PM, Sam Parkinson <<a href="mailto:sam.parkinson3@gmail.com">sam.parkinson3@gmail.com</a><br>
>>>> <mailto:<a href="mailto:sam.parkinson3@gmail.com">sam.parkinson3@gmail.com</a>>> wrote:<br>
>>>><br>
>>>>     We really should perge the mirrors list of dead mirrors.<br>
>>>>     <a href="http://mirrors.sugarlabs.org" target="_blank">http://mirrors.sugarlabs.org</a><br>
>>>><br>
>>>><br>
>>>> +1, I was thinking more like disabling temporarily those who haven't<br>
>>>> been working since a few days.<br>
>>>><br>
>>>>     Maybe we should contact arrnet (the one in question) - they might<br>
>>>>     fix it if you ask nicely :)<br>
>>>><br>
>>>>     I will try to setup a mirror myself - I have like 1tb unused<br>
>>>>     internet on my new aslo server (digitalocean in Singapore).<br>
>>>><br>
>>>>     On Aug 7, 2014 7:50 AM, "Ignacio Rodríguez" <<a href="mailto:ignacio@sugarlabs.org">ignacio@sugarlabs.org</a><br>
>>>>     <mailto:<a href="mailto:ignacio@sugarlabs.org">ignacio@sugarlabs.org</a>>> wrote:<br>
>>>><br>
>>>>         Sebastian, did you remember in sugar camp?<br>
>>>><br>
>>>>         We got the same problem..<br>
>>>><br>
>>>>         You fixed it?<br>
>>>><br>
>>>>         Or that was automatic?<br>
>>>><br>
>>>>         Ignacio Rodríguez<br>
>>>><br>
>>>><br>
>>>>         2014-08-06 18:44 GMT-03:00 Sebastian Silva<br>
>>>>         <<a href="mailto:sebastian@fuentelibre.org">sebastian@fuentelibre.org</a> <mailto:<a href="mailto:sebastian@fuentelibre.org">sebastian@fuentelibre.org</a>>>:<br>
>>>><br>
>>>>             Hi,<br>
>>>>             I have experienced the same thing. Not sure it was the same<br>
>>>>             mirror.<br>
>>>><br>
>>>>             Regards,<br>
>>>>             Sebastian<br>
>>>><br>
>>>>             El mié, 6 de ago 2014 a las 2:47 PM, Martin Abente<br>
>>>>             <<a href="mailto:martin.abente.lahaye@gmail.com">martin.abente.lahaye@gmail.com</a><br>
>>>>             <mailto:<a href="mailto:martin.abente.lahaye@gmail.com">martin.abente.lahaye@gmail.com</a>>> escribió:<br>
>>>><br>
>>>>>             Hello everyone,<br>
>>>>><br>
>>>>>             Has anybody else noticed that some ASLO mirrors are broken?<br>
>>>>><br>
>>>>>             In example:<br>
>>>>><br>
>>>>>                 The<br>
>>>>>                 URL <a href="http://download.sugarlabs.org/activities/4040/finance-11.xo" target="_blank">http://download.sugarlabs.org/activities/4040/finance-11.xo</a>,<br>
>>>>>                 sometimes redirects<br>
>>>>>                 to <a href="http://mirror.aarnet.edu.au/pub/sugarlabs/activities/4040/finance-11.xo" target="_blank">http://mirror.aarnet.edu.au/pub/sugarlabs/activities/4040/finance-11.xo</a><br>
>>>>>                 which is broken.<br>
>>>>><br>
>>>>>             Ideas?<br>
>>>>><br>
>>>>>             tch.<br>
>>>><br>
>>>>             _______________________________________________<br>
>>>>             Systems mailing list<br>
>>>>             <a href="mailto:Systems@lists.sugarlabs.org">Systems@lists.sugarlabs.org</a> <mailto:<a href="mailto:Systems@lists.sugarlabs.org">Systems@lists.sugarlabs.org</a>><br>
>>>>             <a href="http://lists.sugarlabs.org/listinfo/systems" target="_blank">http://lists.sugarlabs.org/listinfo/systems</a><br>
>>>><br>
>>>><br>
>>>><br>
>>>>         _______________________________________________<br>
>>>>         Sugar-devel mailing list<br>
>>>>         <a href="mailto:Sugar-devel@lists.sugarlabs.org">Sugar-devel@lists.sugarlabs.org</a><br>
>>>>         <mailto:<a href="mailto:Sugar-devel@lists.sugarlabs.org">Sugar-devel@lists.sugarlabs.org</a>><br>
>>>>         <a href="http://lists.sugarlabs.org/listinfo/sugar-devel" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
>>>><br>
>>>><br>
>>><br>
>>><br>
>><br>
>><br>
><br>
><br>
<br>
<br>
--<br>
 _ // Bernie Innocenti<br>
 \X/  <a href="http://codewiz.org" target="_blank">http://codewiz.org</a><br>
_______________________________________________<br>
Sugar-devel mailing list<br>
<a href="mailto:Sugar-devel@lists.sugarlabs.org">Sugar-devel@lists.sugarlabs.org</a><br>
<a href="http://lists.sugarlabs.org/listinfo/sugar-devel" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Gonzalo Odiard<br><br><div>SugarLabs - Software for children learning <br></div></div>
</div>