nimrod | 29 Jul 16:33
Picon

Re: xappy causes deadlock with apache/mod_python


I compiled the new version of mod_wsgi, configured it, and it works!
I guess mod_wsgi is going to replace mod_python throughout our
production env
Thanks Graham!

On Jul 29, 3:37 pm, Graham Dumpleton <Graham.Dumple...@...>
wrote:
> On Jul 29, 9:59 pm, nimrod <nsteinb...@...> wrote:
>
>
>
> > Hi,
> > I developed a xappy/xapian based app using django. While running on
> > the django dev server all is well, but when deploying with apache the
> > server goes into a deadlock (waiting for localhost...). When I remove
> > the "import xappy" line from my code it runs just fine.
>
> > Looking here:http://trac.xapian.org/ticket/185
> > It seems that I have to use:
> > PythonInterpreter main_interpreter
> > in my apache config file for using xapian. I tried that - no good
> > Looking some more I saw in the same report:
> > "Even with main_interpreter and Python >= 2.4, calling from Xapian's C+
> > + code back to Python code won't work properly Even with
> > main_interpreter and Python >= 2.4 (this means that you can't subclass
> > Xapian objects in Python). "
>
> > I guess xappy is doing just that (i.e., subclassing xapian classes)
> > and thus is not usable with mod_python.
(Continue reading)

Graham Dumpleton | 29 Jul 14:37
Picon

Re: xappy causes deadlock with apache/mod_python


On Jul 29, 9:59 pm, nimrod <nsteinb...@...> wrote:
> Hi,
> I developed a xappy/xapian based app using django. While running on
> the django dev server all is well, but when deploying with apache the
> server goes into a deadlock (waiting for localhost...). When I remove
> the "import xappy" line from my code it runs just fine.
>
> Looking here:http://trac.xapian.org/ticket/185
> It seems that I have to use:
> PythonInterpreter main_interpreter
> in my apache config file for using xapian. I tried that - no good
> Looking some more I saw in the same report:
> "Even with main_interpreter and Python >= 2.4, calling from Xapian's C+
> + code back to Python code won't work properly Even with
> main_interpreter and Python >= 2.4 (this means that you can't subclass
> Xapian objects in Python). "
>
> I guess xappy is doing just that (i.e., subclassing xapian classes)
> and thus is not usable with mod_python.
>
> Help anyone?

On basis that Django works on any WSGI server, as indicated in ticket
should work, can you try mod_wsgi instead. You still need to force use
of first interpreter as documented in ticket though.

I have changes for mod_python to fix it for main interpreter, but
haven't had a chance to tidy it up and commit it to mod_python
subversion repository.
(Continue reading)

Graham Dumpleton | 31 Jul 02:37
Picon

Re: xappy causes deadlock with apache/mod_python


On Jul 30, 12:33 am, nimrod <nsteinb...@...> wrote:
> I compiled the new version ofmod_wsgi, configured it, and it works!
> I guessmod_wsgiis going to replace mod_python throughout our
> production env

In private email you said it didn't work with mod_wsgi 1.3. I don't
understand why you would have an issue with mod_wsgi 1.3 and not
mod_wsgi 2.1. The code that relates to simplified GIL state API is the
same in both versions.

If you can provide a really simple hello world example independent of
Django that demonstrates original problem that would help me, as could
do some testing of my own.

Thanks.

Graham

> Thanks Graham!
>
> On Jul 29, 3:37 pm, Graham Dumpleton <Graham.Dumple...@...>
> wrote:
>
> > On Jul 29, 9:59 pm, nimrod <nsteinb...@...> wrote:
>
> > > Hi,
> > > I developed a xappy/xapian based app using django. While running on
> > > the django dev server all is well, but when deploying with apache the
> > > server goes into a deadlock (waiting for localhost...). When I remove
(Continue reading)

nimrod | 31 Jul 12:26
Picon

Re: xappy causes deadlock with apache/mod_python


Well, even just putting:
import xappy
caused apache to get stuck
I used mod_wsgi 1.3 as it came from the ubuntu repo but had to compile
mod_wsgi 2.1 myself. Maybe that made the difference.

On Jul 31, 11:41 am, Richard Boulton <rich...@...>
wrote:
> Graham Dumpleton wrote:
> > If you can provide a really simple hello world example independent of
> > Django that demonstrates original problem that would help me, as could
> > do some testing of my own.
>
> That would also be most interesting to me, since I'd like to understand
> why I havn't been able to reproduce the reported problems with even
> mod_python...
>
> --
> Richard
Richard Boulton | 31 Jul 10:41

Re: xappy causes deadlock with apache/mod_python


Graham Dumpleton wrote:
> If you can provide a really simple hello world example independent of
> Django that demonstrates original problem that would help me, as could
> do some testing of my own.

That would also be most interesting to me, since I'd like to understand 
why I havn't been able to reproduce the reported problems with even 
mod_python...

--

-- 
Richard


Gmane