[tor-mirrors] Creep.im

Thwarth Wrhalthssen wrhalthssen at ya.ru
Thu May 30 12:01:00 UTC 2013

Hello, Andrew,

looks like you offer me to inspect the /update-mirrors.pl/ 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).

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:

/http://creep.im//*/tor/project*/trace/www-master.torproject.org (looks 
legit, eh?),

but in fact it have to get this:


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:

$url = "$url*/*$trace";

Some links will be doubleslashed therefore (//), but it's okay.

The next issue with a script is its refusal to update /rsync dist/ 
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 

rsyncDistMirror*s* => "rsync", );

See a trailing "s"? The proper name of a variable is rsyncDistMirror. 
So, just remove "s" and the issue will be resolved.

Hope this helps. Looking forward to your update. Best regards.

On 05/23/2013 06:50 PM, Andrew Lewman wrote:
> On Thu, 23 May 2013 15:59:55 +0400
> Thwarth Wrhalthssen<wrhalthssen at ya.ru>  wrote:
>> 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:
> Updated. Thanks!
>> 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.
> The script polls for
> http://creep.im/tor/project/trace/www-master.torproject.org if that
> returns anything but a timestamp, the script just flags it as unknown.
> The script is
> https://svn.torproject.org/svn/website/trunk/update-mirrors.pl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.torproject.org/pipermail/tor-mirrors/attachments/20130530/efe03b59/attachment.html>

More information about the tor-mirrors mailing list