[Tilecache] Running two instances of tilecache conflicts in apache with mod_python

chris marx chrismarx at gmail.com
Thu Dec 18 10:01:51 EST 2008


I checked out a copy of tilecache from svn, and placed it in apache, but the
existing older version of tilecache still picked up the tilecache.cfg
options from the second instance. I don't know much about pythoninterpeters,
nor did I know that solution would work, so I was wondering whether someone
could confirm that the interpreter option could work, and perhaps show an
example specifically for tilecache-chris-

On Thu, Dec 18, 2008 at 9:56 AM, Christopher Schmidt <
crschmidt at metacarta.com> wrote:

> On Thu, Dec 18, 2008 at 09:37:22AM -0500, chris marx wrote:
> > anyone care to take a stab at this? I don't have another test environment
> > yet, so I'd have to redeploy my production instance of tilecache. So i
> can't
> > test from trunk quite yet, maybe over the holidays-
>
> Not sure what you mean by 'take a stab at this'? You were given two
> reasonable options; one requires a new version of TC (though you don't
> need another test environment, really just plop it down somewhere and
> put it in PythonPath and make a new Location block), the other just
> requires apache config changing. What are you looking for?
>
> -- Chris
>
> > On Tue, Dec 16, 2008 at 4:26 AM, Guillaume Sueur <
> no-reply at neogeo-online.net
> > > wrote:
> >
> > > Hi,
> > >
> > > Can't it be solved by using the PythonInterpreter option in apache,
> like
> > > for running multiple instances of Django for instance :
> > >  <Location "/something">
> > >        SetEnv DJANGO_SETTINGS_MODULE mysite.settings
> > >        PythonInterpreter mysite
> > >    </Location>
> > >
> > >    <Location "/otherthing">
> > >        SetEnv DJANGO_SETTINGS_MODULE mysite.other_settings
> > >        PythonInterpreter othersite
> > >    </Location>
> > >
> > > ?
> > >
> > > Regards
> > >
> > > Christopher Schmidt a écrit :
> > > > On Mon, Dec 15, 2008 at 01:44:23PM -0500, chris marx wrote:
> > > >> or is it related this?
> > > >>
> > >
> http://www.nabble.com/mod_python-and-multiple-services-issue-td17618811.html
> > > >
> > > > Probably so: The fix for that is in SVN, and will be in the
> > > > soon-to-be-released 2.10, so you might try svn and report back if it
> > > > doesn't help.
> > > >
> > > >> On Mon, Dec 15, 2008 at 1:26 PM, chris marx <chrismarx at gmail.com>
> > > wrote:
> > > >>
> > > >>> I had a app folder name "tilecache", which was working fine. I
> wanted
> > > to be
> > > >>> able to have a test instance of tilecache, so i grabbed a fresh
> copy
> > > and put
> > > >>> in the app folder under "tilecache-test". this is a separate
> directory
> > > from
> > > >>> the first. Now however, when I hit a link that's should go to the
> > > >>> "tilecache" app (e.g. myserver/tilecache/tilecache.py/etc), I get
> back
> > > an
> > > >>> error, because the layer is not found, and in the listed layers, it
> > > lists
> > > >>> the layers I've included in my "tilecache-test" app.
> > > >>> Is there something global that tilecache uses that prevents 2
> versions
> > > from
> > > >>> being run on the same server? could it have anything to do with the
> > > >>> interpreter?
> > > >>>
> > > >>>
> > >
> http://www.modpython.org/live/mod_python-3.2.5b/doc-html/pyapi-interps.html
> > > >>>
> > > >>> thanks!
> > > >>> 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/
> > > >
> > > >> _______________________________________________
> > > >> Tilecache mailing list
> > > >> Tilecache at openlayers.org
> > > >> http://openlayers.org/mailman/listinfo/tilecache
> > > >
> > > >
> > > _______________________________________________
> > > Tilecache mailing list
> > > Tilecache at openlayers.org
> > > http://openlayers.org/mailman/listinfo/tilecache
> > >
> >
> >
> >
> > --
> >
> > 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
> _______________________________________________
> Tilecache mailing list
> Tilecache at openlayers.org
> http://openlayers.org/mailman/listinfo/tilecache
>



-- 

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/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/tilecache/attachments/20081218/c7367ff3/attachment.html


More information about the Tilecache mailing list