[Tilecache] Increase WMS request timeout?
Dane Springmeyer
blake at hailmail.net
Tue Nov 25 01:08:53 EST 2008
Chris,
You can just go into your site-packages (likely where python setup.py
installed the egg) and remove the whole egg which is just a folder of
the scripts that is automatically on your PYTHONPATH.
This one: 'TileCache-2.04-py2.5.egg'
Then to get the imports working, download a fresh copy of tilecache to
an easy to work with location, and simply put the folder that contains
the 'TileCache' folder on your PYTHONPATH by setting that variable in
your System Settings.
The you should be able to do:
>>> import TileCache
and then with mod_python use the directive:
PythonPath "['/path/to/folder/containing_tilecache/'] + sys.path"
Dane
On Nov 24, 2008, at 9:51 PM, chris marx wrote:
> Also,
> I'd like to make these changes, but when i redeployed tilecache on
> apache with mod_python, it couldn't find the imports until i ran the
> setup.py. now it looks like the scripts are getting exectured from
> the egg (anyone have any links to explain what the heck this is...).
> To recreate this with changes in the code, do i just delete the egg,
> or do i also need to the delete the .pyc files it also generated?
>
> On Mon, Nov 24, 2008 at 11:33 PM, chris marx <chrismarx at gmail.com>
> wrote:
> Well, that might be the case, but when I hook a site up to the wms
> directly, I don't get any errors from the wms. So.. I'd like to see
> what error tilecache is getting back from my wms server. Should i
> just put in a logging statement of the response from line 54 in
> Client.py?
>
>
>
> On Mon, Nov 24, 2008 at 10:55 PM, Christopher Schmidt <crschmidt at metacarta.com
> > wrote:
> On Mon, Nov 24, 2008 at 10:26:31PM -0500, chris marx wrote:
> > here;s the full error
> >
> > An error occurred: HTTP Error 500: Internal Server Error
>
> That's not a timeout. That's your remote WMS server returning an
> honest
> to goodness error. There's nothing TileCache can do about that.
>
> -- Chris
>
> > File "c:\python25\lib\site-packages\TileCache-2.04-py2.5.egg
> \TileCache\Service.py",
> > line 224, in modPythonHandler
> > host )
> > File "c:\python25\lib\site-packages\TileCache-2.04-py2.5.egg
> \TileCache\Service.py",
> > line 208, in dispatchRequest
> > return self.renderTile(tile, params.has_key('FORCE'))
> > File "c:\python25\lib\site-packages\TileCache-2.04-py2.5.egg
> \TileCache\Service.py",
> > line 138, in renderTile
> > data = layer.render(tile)
> > File "c:\python25\lib\site-packages\TileCache-2.04-py2.5.egg
> \TileCache\Layer.py",
> > line 437, in render
> > return self.renderTile(tile)
> > File "c:\python25\lib\site-packages\TileCache-2.04-py2.5.egg
> \TileCache\Layers\WMS.py",
> > line 29, in renderTile
> > tile.data, response = wms.fetch()
> > File "c:\python25\lib\site-packages\TileCache-2.04-py2.5.egg
> \TileCache\Client.py",
> > line 54, in fetch
> > response = self.client.open(urlrequest)
> > File "C:\Python25\Lib\urllib2.py", line 387, in open
> > response = meth(req, response)
> > File "C:\Python25\Lib\urllib2.py", line 498, in http_response
> > 'http', request, response, code, msg, hdrs)
> > File "C:\Python25\Lib\urllib2.py", line 425, in error
> > return self._call_chain(*args)
> > File "C:\Python25\Lib\urllib2.py", line 360, in _call_chain
> > result = func(*args)
> > File "C:\Python25\Lib\urllib2.py", line 506, in http_error_default
> > raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
> >
> >
> >
> > On Mon, Nov 24, 2008 at 5:56 PM, chris marx <chrismarx at gmail.com>
> wrote:
> >
> > > anybody?
> > >
> > >
> > > On Sun, Nov 23, 2008 at 3:45 PM, chris marx
> <chrismarx at gmail.com> wrote:
> > >
> > >> Hi,
> > >> When no one has made a WMS request to my WMS service (Manifold
> GIS) it
> > >> takes a little longer to respond on that first request because
> its creating
> > >> an instance of its mapserver object. In any case, tilecache
> ends up
> > >> returning a urllib error because I'm assuming the request timed
> out --
> > >> specifically, because hitting the same url again results in a
> successful
> > >> request and a tile comes back. Is there a way to increase the
> timeout limit?
> > >> --running apache and mod_python-
> > >> chris-
> > >>
> > >> --
> > >>
> > >> Chris Marx
> > >> Programmer/Analyst
> > >> Cornell Lab of Ornithology
> > >> 159 Sapsucker Woods Rd.
> > >> Ithaca, NY 14850
> > >> t. 1.607.254.1142
> > >> http://www.birds.cornell.edu/
> > >>
> > >
> > >
> > >
> > > --
> > >
> > > Chris Marx
> > > Programmer/Analyst
> > > Cornell Lab of Ornithology
> > > 159 Sapsucker Woods Rd.
> > > Ithaca, NY 14850
> > > t. 1.607.254.1142
> > > http://www.birds.cornell.edu/
> > >
> >
> >
> >
> > --
> >
> > Chris Marx
> > Programmer/Analyst
> > Cornell Lab of Ornithology
> > 159 Sapsucker Woods Rd.
> > Ithaca, NY 14850
> > t. 1.607.254.1142
> > http://www.birds.cornell.edu/
>
> > _______________________________________________
> > Tilecache mailing list
> > Tilecache at openlayers.org
> > http://openlayers.org/mailman/listinfo/tilecache
>
>
> --
> Christopher Schmidt
> MetaCarta
>
>
>
> --
>
> Chris Marx
> Programmer/Analyst
> Cornell Lab of Ornithology
> 159 Sapsucker Woods Rd.
> Ithaca, NY 14850
> t. 1.607.254.1142
> http://www.birds.cornell.edu/
>
>
>
> --
>
> Chris Marx
> Programmer/Analyst
> Cornell Lab of Ornithology
> 159 Sapsucker Woods Rd.
> Ithaca, NY 14850
> t. 1.607.254.1142
> http://www.birds.cornell.edu/
> _______________________________________________
> Tilecache mailing list
> Tilecache at openlayers.org
> http://openlayers.org/mailman/listinfo/tilecache
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/tilecache/attachments/20081124/e33f38ec/attachment.html
More information about the Tilecache
mailing list