[Tilesathome] Windows issues

Rob Reid rob at robreid.co.nz
Sat Dec 1 10:05:50 GMT 2007


Milenko wrote the following on 30/11/2007 08:42:
>     Not sure why it checks three times for files to upload, but it 
> always does that right before it dies. 
Still not found what is causing the windows client to stop although the 
better debugging output in r5828 is helping thanks.

What I have found is the cause of some of the extra upload attempts.

In tilesGen.pl, (sub uploadIfEnoughTiles) the code checks for the 
existence of zip files to upload with:

    $ZipCount++ if ($File =~ /\.zip/);

Assuming you conf option is DeleteZipFilesAfterUpload=0 then this check 
is finding the already uploaded files eg 
(1196236964_2728_0_tile_tileset.zip_uploaded)

Suggest changing to :

            $ZipCount++ if ($File =~ /\.zip$/);

Diff file attached.

Tested on windows only.

Note that under normal loop mode this is not a problem as there is 
usually zip files to upload anyway, but if it gets comms problems and 
starts looping in order to retry then this is causing unnecessary calls 
to upload.pl as there is nothing to upload.

rcr
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: rcr_zip_fix.diff
URL: <http://lists.openstreetmap.org/pipermail/tilesathome/attachments/20071201/35c8fb35/attachment.ksh>


More information about the Tilesathome mailing list