[Tilecache] make dir error

Stefan Zweig stefanzweig1881 at web.de
Thu Apr 10 10:38:21 EDT 2008


hi list / christopher,

tilecache is very good tool for caching wms tiles, which did already a lot of good work for me.

but it seems like it refuses to work under certain circumstances:
i have an environment with one nfs server (on this server lies the tilecache code, the tiles folder and all the tile files) and several work stations where the tilecache.cgi is actual run. that works fine if tilecache is requested non parallel (non parallel = one work station is doing all the work for the requested tiles for a certain client). if i distribute the requests depending on server load on the different workstations (to make tilecache working faster) it seems to work as well, if tilecache can deliver an already cached file, but if it has to load a non-cached file (from a wms) in parallel working mode from time to time the following error occurs and no tile is delivered:

An error occurred: [Errno 17] 
File exists: '/var/_apps/tilecache/tiles/56559' 
File "/var/www/tilecache/TileCache/Service.py", 
line 264, in cgiHandler File "/var/www/tilecache/TileCache/Service.py", 
line 182, in dispatchRequest File "/var/www/tilecache/TileCache/Service.py", 
line 120, in renderTile File "/var/www/tilecache/TileCache/Caches/Disk.py", 
line 66, in set File "/var/www/tilecache/TileCache/Caches/Disk.py", 

line 24, in makedirs File "os.py", 
line 156, in makedirs makedirs(head, mode) File "os.py", 
line 156, in makedirs makedirs(head, mode) File "os.py", 
line 156, in makedirs makedirs(head, mode) File "os.py", 
line 156, in makedirs makedirs(head, mode) File "os.py", 
line 156, in makedirs makedirs(head, mode) File "os.py", 
line 156, in makedirs makedirs(head, mode) File "os.py", 
line 159, in makedirs mkdir(name, mode)

i just tried myself having a look into the source code, but i am a totally rookie in python. surrounding the self.makedirs() statement with a try: / finally: did not do the job and resulted in another error.

any advice appreciated.

thanks in advance,

stefan
_________________________________________________________________________
Mit der Gruppen-SMS von WEB.DE FreeMail können Sie eine SMS an alle 
Freunde gleichzeitig schicken: http://freemail.web.de/features/?mc=021179






More information about the Tilecache mailing list