<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Nice!<br><br>Sent from my iPhone</div><div><br>On May 30, 2013, at 8:01 AM, Thwarth Wrhalthssen <<a href="mailto:wrhalthssen@ya.ru">wrhalthssen@ya.ru</a>> wrote:<br><br></div><blockquote type="cite"><div>
  
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  
  
    Hello, Andrew,<br>
    <br>
    looks like you offer me to inspect the <i>update-mirrors.pl</i>
    script myself. I am not a Perl programmer, but syntax looks easy and
    after a little investigation I figured out what's going wrong when
    script returns 'Unknown' status to certain mirrors (mine included).<br>
    <br>
    Links to some mirrors in the script defined with a trailing slash
    and some not. Those, which doesn't have a trailing slash, cannot
    provide a correct timestamp, because the script trying to get for
    example this:<br>
    <br>
    <i><a class="moz-txt-link-freetext" href="http://creep.im/">http://creep.im/</a></i><b><i>tor</i>project</b>/trace/<a href="http://www-master.torproject.org">www-master.torproject.org</a>
    (looks legit, eh?),<br>
    <br>
    but in fact it have to get this:<br>
    <br>
    <i><a class="moz-txt-link-freetext" href="http://creep.im/">http://creep.im/</a></i><b><i>tor</i>/project</b>/trace/<a href="http://www-master.torproject.org">www-master.torproject.org</a><br>
    <br>
    So, to fix things, just add a trailing slash to all the mirrors'
    links or apply this quick and dirty fix to the line #45:<br>
    <br>
    $url = "$url<b>/</b>$trace";<br>
    <br>
    Some links will be doubleslashed therefore (//), but it's okay.<br>
    <br>
    The next issue with a script is its refusal to update <i>rsync dist</i>
    links. It just sets "-" to all the mirrors in the table. That's not
    right. The fix is pretty easy too, just eliminate the typo at the
    line #1188:<br>
    <br>
    rsyncDistMirror<b>s</b> => "rsync", );<br>
    <br>
    See a trailing "s"? The proper name of a variable is
    rsyncDistMirror. So, just remove "s" and the issue will be resolved.<br>
    <br>
    Hope this helps. Looking forward to your update. Best regards.<br>
    <br>
    On 05/23/2013 06:50 PM, Andrew Lewman wrote:
    <blockquote cite="mid:20130523105017.1097b1f3@kilik" type="cite">
      <pre wrap="">On Thu, 23 May 2013 15:59:55 +0400
Thwarth Wrhalthssen <a class="moz-txt-link-rfc2396E" href="mailto:wrhalthssen@ya.ru"><wrhalthssen@ya.ru></a> wrote:

</pre>
      <blockquote type="cite">
        <pre wrap="">Hello. Recently I've slightly updated my mirror. Now it's a HTTP and 
HTTPS website mirror, rsync daemon for website and dist and also FTP. 
The server is running Debian Wheezy (stable). Please update the
record in the mirrors list on the site accordingly:
</pre>
      </blockquote>
      <pre wrap="">Updated. Thanks!

</pre>
      <blockquote type="cite">
        <pre wrap="">By the way, how we can resolve the issue with 'Status: Unknown', is 
anything wrong with my mirror or your script doing something wrong? I 
will fix the problem in a short time if it is on my side.
</pre>
      </blockquote>
      <pre wrap="">
The script polls for
<a class="moz-txt-link-freetext" href="http://creep.im/tor/project/trace/www-master.torproject.org">http://creep.im/tor/project/trace/www-master.torproject.org</a> if that
returns anything but a timestamp, the script just flags it as unknown.
The script is
<a class="moz-txt-link-freetext" href="https://svn.torproject.org/svn/website/trunk/update-mirrors.pl">https://svn.torproject.org/svn/website/trunk/update-mirrors.pl</a>

</pre>
    </blockquote>
  

</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>tor-mirrors mailing list</span><br><span><a href="mailto:tor-mirrors@lists.torproject.org">tor-mirrors@lists.torproject.org</a></span><br><span><a href="https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-mirrors">https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-mirrors</a></span><br></div></blockquote></body></html>