--
You received this message because you are subscribed to the Google Groups "modwsgi" group.
To post to this group, send email to mod...@googlegroups.com.
To unsubscribe from this group, send email to modwsgi+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/modwsgi?hl=en.
I have the same problem. Is any solutions?
As there are various causes, we first need to ensure you have
eliminated the known causes.
1. What is the Apache configuration you are using for mod_wsgi?
2. What is the URL you are using to make requests against the application?
3. Do you have an existing AddHandler for .py extension denoting it is
a cgi-script?
4. Have you disabled use of mod_python in same Apache installation?
5. Have you disable SELinux extensions?
6. Have you tried with a hello world WSGI application rather than some
fat Python web application/framework with lots of dependencies?
Graham
Sorry. My mistake:
> /usr/local/apache2/bin/httpd -V
Server version: Apache/2.2.11 (Unix)
Server built: Apr 14 2009 12:48:52
Server's Module Magic Number: 20051115:21
Server loaded: APR 1.2.8, APR-Util 1.2.8
Compiled using: APR 1.2.8, APR-Util 1.2.8
Architecture: 32-bit
Server MPM: Prefork
threaded: no
forked: yes (variable process count)
Server compiled with....
-D APACHE_MPM_DIR="server/mpm/prefork"
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_FLOCK_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=128
-D HTTPD_ROOT="/usr/local/apache2"
-D SUEXEC_BIN="/usr/local/apache2/bin/suexec"
-D DEFAULT_PIDLOG="logs/httpd.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_LOCKFILE="logs/accept.lock"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="conf/mime.types"
-D SERVER_CONFIG_FILE="conf/httpd.conf"
>
That doesn't answer any of the questions I asked. :-(
Graham
Problem was with apache. It was build with no thread support.
1. I didn't understand question. What actually did you want to know?
Httd.conf file content?
2. Something like http://10.18.4.245/mysite/test. I'm use mod_wsgi
with Django.
3. No.
4. Yes.
5. My OS is FreeBSD.
6. No, I tried Django.
Problem was with apache. It was build with no thread support.
1. I didn't understand question. What actually did you want to know?
Httd.conf file content?
2. Something like http://10.18.4.245/mysite/test. I'm use mod_wsgi
with Django.
3. No.
4. Yes.
5. My OS is FreeBSD.
6. No, I tried Django.
--
If you have solved the issue then fine, but there should be no issue
in respect of whether Apache itself is compiled for threaded versus
non threaded MPM, ie., worker vs prefork MPM.
On the other hand, if the underlying Apache run time libraries have
not been compiled with threading awareness then there would, but your
messages indicate that Apache was at least running. If APR was not
compiled with threading then mod_wsgi probably wouldn't even load and
Apache would fail to start, so lack of threading in APR can't be the
issue either as you were indicating that you were getting an error
when a request was being handled.
So, you obviously had something wrong in your setup, but what it was
is still debatable as insufficient information to tell.
Graham
> 1. I didn't understand question. What actually did you want to know?
> Httd.conf file content?
> 2. Something like http://10.18.4.245/mysite/test. I'm use mod_wsgi
> with Django.
> 3. No.
> 4. Yes.
> 5. My OS is FreeBSD.
> 6. No, I tried Django.
>
httpd.i386 2.2.3-31.el5.centos.2
installed
httpd-devel.i386 2.2.3-31.el5.centos.2
installed
mod_python.i386 3.2.8-3.1
installed
python.i386 2.4.3-19.el5
installed
python-devel.i386 2.4.3-19.el5
installed
mod_wsgi 3.1 was built from source.
The problem turned out to be a mod_python conflict. I finally stumbled
across this in InstallationIssues
----------------------------------------------------------------------------------------------
Incompatible ModPython Versions
The dual loading of mod_python and mod_wsgi together has only been
tested and verified as working for mod_python 3.3.1. It is possible
that mod_python 3.2.X may also work, but older mod_python versions
2.7.X and 3.1.X may give problems.
In particular, it has been noted that dual loading of mod_python 3.1.4
will cause mod_wsgi daemon mode to fail. This occurs because older
mod_python versions setup threads differently when initialising the
Python interpreter. This appears to cause the mod_wsgi daemon
processes to deadlock on the Python GIL at startup. This would be
evident through any request to a WSGI application delegated to that
daemon process appearing to hang and the browser client having to
timeout.
----------------------------------------------------------------------------------------------
In spite of my mod_python being 3.2.8 which "may also work", as soon
as I stopped loading it, mod_wsgi daemon mode started working.