[Tilecache] Pre-packaged examples fail

Christopher Schmidt crschmidt at metacarta.com
Fri May 9 19:32:34 EDT 2008


On Fri, May 09, 2008 at 03:21:05PM -0700, Ian wrote:
> Permissions are:
> drwxrwxr-x root geo  cgi-bin
> drwxr-xr-x  me geo  tilecache-2.01
> -rwxr-xr-x   me geo  tilecache.cgi
> 
> If I go to the tilecache.cgi without specifying the rest of the example it
> appears to be functional:
> "This XML file does not appear to have any style information associated with
> it. The document tree is shown below."
> <Services>
>   <TileMapService version="1.0.0" href="
> http://host/cgi-bin/tilecache-2.01/tilecache.cgi/1.0.0/"/>
> </Services>


> It's also interesting that the 500 Internal Server Errors I get take four
> minutes to show, the browser just keeps waiting for a response from the
> host. I restarted Apache as well, here is the error_log:

Sounds like you're getting an Apache timeout (probably 300s, the
default). This probably means that, as the apache user, you are unable
to open a remote connectino to labs.metacarta.com. You may be able to
test this by running 'python' as the apache user, and then:

"""
import urllib
urllib.urlopen("http://labs.metacarta.com/").read()
"""

You may see an error. You may not see anything. Getting that working is
a first step. If that works, there may be something else preventing it
from working in CGI mode.

If you have SELinux, this may be related to having that on.

-- Chris


> [Fri May 09 14:34:35 2008] [notice] suEXEC mechanism enabled (wrapper:
> /usr/sbin/suexec)
> [Fri May 09 14:34:35 2008] [notice] Digest: generating secret for digest
> authentication ...
> [Fri May 09 14:34:35 2008] [notice] Digest: done
> [Fri May 09 14:34:35 2008] [notice] LDAP: Built with OpenLDAP LDAP SDK
> [Fri May 09 14:34:35 2008] [notice] LDAP: SSL support unavailable
> [Fri May 09 14:34:35 2008] [notice] FastCGI: process manager initialized
> (pid)
> [Fri May 09 14:34:35 2008] [notice] mod_python: Creating 4 session mutexes
> based on 256 max processes and 0 max threads.
> [Fri May 09 14:34:36 2008] [notice] Apache/2.0.52 (Red Hat) configured --
> resuming normal operations
> [Fri May 09 14:39:26 2008] [error] [client] Premature end of script headers:
> tilecache.cgi
> [Fri May 09 14:39:30 2008] [error] [client] Premature end of script headers:
> tilecache.cgi
> 
> I did notice that mod_python is running so I edited httpd.conf to use the
> mod_python example:
> <Directory /var/www/cgi-bin/tilecache-2.01>
>     AddHandler python-program .py
>     PythonHandler TileCache.Service
>     PythonOption TileCacheConfig
> /var/www/cgi-bin/tilecache-2.01/tilecache.cfg
> </Directory>
> However I still get the 500 Internal Server Error after a few minutes of
> waiting for the host to reply.
> Any help is much appreciated. Thank you.

> _______________________________________________
> Tilecache mailing list
> Tilecache at openlayers.org
> http://openlayers.org/mailman/listinfo/tilecache


-- 
Christopher Schmidt
MetaCarta



More information about the Tilecache mailing list