<HTML><HEAD>
<META content="text/html; charset=iso-8859-15" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18828"></HEAD>
<BODY style="MARGIN: 4px 4px 1px; FONT: 10pt Segoe UI">
<DIV>I'm not sure how it works on Linux, but on Windows, the URL is mapserv.exe (your link it appears to be just mapserv).&nbsp; </DIV>
<DIV>&nbsp;</DIV>
<DIV>Shawn<BR><BR>&gt;&gt;&gt; On 10/26/2009 at 3:41 AM, Adrian Popa &lt;adrian_gh.popa@romtelecom.ro&gt; wrote:<BR></DIV>
<DIV style="BORDER-LEFT: #050505 1px solid; BACKGROUND-COLOR: #f3f3f3; MARGIN: 0px 0px 0px 15px; PADDING-LEFT: 7px">Hello everyone,<BR><BR>I'm getting an error while trying to cache offline parts of my map. The <BR>caching process runs fine until it hits a particular tile (my guess is <BR>it's tile 9143) - when the process dies (after a timeout of 2 minutes).<BR><BR>Here are samples of the output:<BR><BR>[root@terra utilities]# python /var/www/html/tilecache/tilecache_seed.py <BR>rtc_base 1 10 --bbox <BR>2255332.8831578,5336357.2739115,3306188.8761,6183726.4985628<BR>...<BR>07 (004621, 005229) = (2568284.1491 5542601.7932 2573176.1189 <BR>5547493.7630) [0.0003s : 2391.549/s] 9137/37195<BR>07 (004622, 005229) = (2573176.1189 5542601.7932 2578068.0887 <BR>5547493.7630) [0.0003s : 2391.566/s] 9138/37195<BR>07 (004623, 005229) = (2578068.0887 5542601.7932 2582960.0586 <BR>5547493.7630) [0.0003s : 2391.586/s] 9139/37195<BR>07 (004624, 005229) = (2582960.0586 5542601.7932 2587852.0284 <BR>5547493.7630) [0.0003s : 2391.606/s] 9140/37195<BR>07 (004625, 005229) = (2587852.0284 5542601.7932 2592743.9982 <BR>5547493.7630) [0.0003s : 2391.624/s] 9141/37195<BR>07 (004626, 005229) = (2592743.9982 5542601.7932 2597635.9680 <BR>5547493.7630) [0.0003s : 2391.643/s] 9142/37195<BR>Traceback (most recent call last):<BR>&nbsp; File "/var/www/html/tilecache/tilecache_seed.py", line 9, in ?<BR>&nbsp;&nbsp;&nbsp; TileCache.Client.main()<BR>&nbsp; File <BR>"/usr/lib/python2.4/site-packages/TileCache-2.10-py2.4.egg/TileCache/Client.py", <BR>line 162, in main<BR>&nbsp;&nbsp;&nbsp; seed(svc, layer, map(int, args[1:3]), bboxlist , <BR>padding=options.padding, force = options.force, reverse = options.reverse)<BR>&nbsp; File <BR>"/usr/lib/python2.4/site-packages/TileCache-2.10-py2.4.egg/TileCache/Client.py", <BR>line 117, in seed<BR>&nbsp;&nbsp;&nbsp; svc.renderTile(tile,force=force)<BR>&nbsp; File <BR>"/usr/lib/python2.4/site-packages/TileCache-2.10-py2.4.egg/TileCache/Service.py", <BR>line 138, in renderTile<BR>&nbsp;&nbsp;&nbsp; data = layer.render(tile, force=force)<BR>&nbsp; File <BR>"/usr/lib/python2.4/site-packages/TileCache-2.10-py2.4.egg/TileCache/Layer.py", <BR>line 443, in render<BR>&nbsp;&nbsp;&nbsp; return self.renderTile(tile)<BR>&nbsp; File <BR>"/usr/lib/python2.4/site-packages/TileCache-2.10-py2.4.egg/TileCache/Layers/WMS.py", <BR>line 29, in renderTile<BR>&nbsp;&nbsp;&nbsp; tile.data, response = wms.fetch()<BR>&nbsp; File <BR>"/usr/lib/python2.4/site-packages/TileCache-2.10-py2.4.egg/TileCache/Client.py", <BR>line 58, in fetch<BR>&nbsp;&nbsp;&nbsp; response = self.client.open(urlrequest)<BR>&nbsp; File "/usr/lib/python2.4/urllib2.py", line 364, in open<BR>&nbsp;&nbsp;&nbsp; response = meth(req, response)<BR>&nbsp; File "/usr/lib/python2.4/urllib2.py", line 471, in http_response<BR>&nbsp;&nbsp;&nbsp; response = self.parent.error(<BR>&nbsp; File "/usr/lib/python2.4/urllib2.py", line 402, in error<BR>&nbsp;&nbsp;&nbsp; return self._call_chain(*args)<BR>&nbsp; File "/usr/lib/python2.4/urllib2.py", line 337, in _call_chain<BR>&nbsp;&nbsp;&nbsp; result = func(*args)<BR>&nbsp; File "/usr/lib/python2.4/urllib2.py", line 480, in http_error_default<BR>&nbsp;&nbsp;&nbsp; raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)<BR>urllib2.HTTPError: HTTP Error 500: Internal Server Error<BR><BR>Here is what httpd error_log says:<BR>[Mon Oct 26 09:23:13 2009] [warn] [client 127.0.0.1] Timeout waiting for <BR>output from CGI script /var/www/cgi-bin/mapserv<BR>[Mon Oct 26 09:23:13 2009] [error] [client 127.0.0.1] Premature end of <BR>script headers: mapserv<BR>[Mon Oct 26 09:25:13 2009] [warn] [client 127.0.0.1] Timeout waiting for <BR>output from CGI script /var/www/cgi-bin/mapserv<BR><BR><BR>If I try with the --reverse parameter, the same thing happens after a <BR>while, but at a different tile.<BR><BR>I have two questions:<BR>1. Can I convince tilecache to skip the tiles it can't render, instead <BR>of dying?<BR>2. What would be the necessary steps I need to take to troubleshoot this <BR>problem? (I am generating this cache from a mapserver which is getting <BR>its data from shapefiles).<BR><BR>Thanks,<BR>Adrian<BR><BR>_______________________________________________<BR>Tilecache mailing list<BR>Tilecache@openlayers.org<BR><A href="http://openlayers.org/mailman/listinfo/tilecache">http://openlayers.org/mailman/listinfo/tilecache</A><BR></DIV></BODY></HTML>