[mod_python] Re: Failed to acquire global mutex lock on OS X 10.4.1

Roberto Aguilar roberto.c.aguilar at gmail.com
Wed Jul 13 03:05:06 EDT 2005


I found the problem.

I used the default httpd.conf after building from source.  The default
user is nobody, which doesn't have any permissions on the machine. 
After making that a real user, mutex locks were happy, which made
sessions happy.

-berto.

On 7/8/05, Roberto Aguilar <roberto.c.aguilar at gmail.com> wrote:
> Hello all,
> 
> I'm trying to use mod_python on a Mac and ran into a problem when
> creating a mod_python.Session instance.  When I do:
> 
> from mod_python import apache, Session
> 
> def handler(req):
>     s = Session.Session(req)
>     [...]
> 
> I get the following error:
> 
> File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/mod_python/Session.py",
> line 215, in lock
>     _apache._global_lock(self._req.server, self._sid)
> 
> ValueError: Failed to acquire global mutex lock
> 
> I'm using the following software:
> 
> httpd 2.0.54 (./configure --prefix=/berto --enable-dav --enable-dav-fs
> --enable-cgi && make && make install)
> mod_python 3.1.4 (./configure --prefix=/berto
> --with-apxs=/berto/bin/apxs --with-python=/usr/bin/python && make &&
> make install)
> python 2.3.5 (OS X Tiger default)
> 
> Any suggestions would be greatly appreciated.
> 
> Thanks in advance!
> 
> -Roberto.
>



More information about the Mod_python mailing list