[Tilecache] error with multiple machines sharing one cache over NFS

Stefan Zweig stefanzweig1881 at web.de
Fri Jul 25 07:20:54 EDT 2008


hi list,

it is me again. in april i posted an error that occured with the scenario, that multiple machines share a cache over NFS. i have just seen in the changelog, that in tilecache 2.02 there has been a patch released that "Protect disk cache from os.makedirs race condition". I hoped that this patch would solve the errors that occur for my scenario. after trying i am a bit disappointed, that i did not. the os.makedirs race condition does not seem to be the problem anymore, but multiple machines sharing one cache over NFS still does not work stable. here is the new stacktrace that occurs with tilecache 2.04:

HTTP/1.1 200 OK Date: Fri, 25 Jul 2008 10:48:01 GMT Server: Apache/2.2.3 (Debian) mod_jk/1.2.18 mod_ssl/2.2.3 OpenSSL/0.9.8c Cache-Control: max-age=10, must-revalidate Content-Length: 704 Connection: close Content-Type: text/plain; charset=UTF-8 
An error occurred: [Errno 2] No such file or directory: '/var/gisapp/_apps/tilecache2/tiles/56559t/00/000/000/003/000/000/000.png.10977.tmp' 
File "/var/gisapp/_apps/tilecache2/TileCache/Service.py", line 290, in cgiHandler format, image = service.dispatchRequest( params, path_info, req_method, host ) 
File "/var/gisapp/_apps/tilecache2/TileCache/Service.py", line 208, in dispatchRequest return self.renderTile(tile, params.has_key('FORCE')) 
File "/var/gisapp/_apps/tilecache2/TileCache/Service.py", line 139, in renderTile if (data): image = self.cache.set(tile, data) 
File "/var/gisapp/_apps/tilecache2/TileCache/Caches/Disk.py", line 78, in set output = file(tmpfile, "wb")

as i said, i am totally python rookie, so i can't really provide an idea on what this problem could solve.
can you?

best regards,
stefan
____________________________________________________________________
Ihre Messenger, Communities und E-Mails jetzt in einem Programm!
WEB.DE MultiMessenger http://www.produkte.web.de/messenger/?did=3071




More information about the Tilecache mailing list