mpopenid.py version 1.2.0-pre5: DBInvalidArgError

Wesley Penner wp at mcc.org
Wed Apr 25 13:24:55 PDT 2007


Hi, I'm trying to get OpenID authentication working with the "PHP 
stand-alone server" all running on the same machine.  When I go to the 
"/projects/IPDPlanWeb/login" location (which is protected) I get a "500 
Internal Server Error".  I've included what I have for the apache 
configuration, and also the information from the Apache2 error log.  Any 
help is very much appreciated.

====Related Apache2 configuration======
<Location "/projects/IPDPlanWeb/login">
        PythonAccessHandler mpopenid::protect
        PythonOption authorized-users "any"
        PythonOption action-path "/openidauth"
</Location>
<Location "/openidauth">
        SetHandler mod_python
        PythonOption action-path "/openidauth"
        PythonHandler mpopenid::openid
</Location>

====Apache2 error.log===========
[Wed Apr 25 14:49:47 2007] [error] [client 24.229.43.82] 
PythonAccessHandler mpopenid::protect: Traceback (most recent call last):
[Wed Apr 25 14:49:47 2007] [error] [client 24.229.43.82] 
PythonAccessHandler mpopenid::protect:   File 
"/usr/lib/python2.4/site-packages/mod_python/apache.py", line 299, in 
HandlerDispatch\n    result = object(req)
[Wed Apr 25 14:49:47 2007] [error] [client 24.229.43.82] 
PythonAccessHandler mpopenid::protect:   File 
"/usr/lib/python2.4/site-packages/mpopenid.py", line 32, in protect\n 
oid_req = OpenIDProtect(apache_request)
[Wed Apr 25 14:49:47 2007] [error] [client 24.229.43.82] 
PythonAccessHandler mpopenid::protect:   File 
"/usr/lib/python2.4/site-packages/mpopenid.py", line 185, in __init__\n 
lock=False)
[Wed Apr 25 14:49:47 2007] [error] [client 24.229.43.82] 
PythonAccessHandler mpopenid::protect:   File 
"/usr/lib/python2.4/site-packages/mod_python/Session.py", line 735, in 
Session\n    timeout=timeout, lock=lock)
[Wed Apr 25 14:49:47 2007] [error] [client 24.229.43.82] 
PythonAccessHandler mpopenid::protect:   File 
"/usr/lib/python2.4/site-packages/mod_python/Session.py", line 337, in 
__init__\n    timeout=timeout, lock=lock)
[Wed Apr 25 14:49:47 2007] [error] [client 24.229.43.82] 
PythonAccessHandler mpopenid::protect:   File 
"/usr/lib/python2.4/site-packages/mod_python/Session.py", line 166, in 
__init__\n    if self.load():
[Wed Apr 25 14:49:47 2007] [error] [client 24.229.43.82] 
PythonAccessHandler mpopenid::protect:   File 
"/usr/lib/python2.4/site-packages/mod_python/Session.py", line 225, in 
load\n    dict = self.do_load()
[Wed Apr 25 14:49:47 2007] [error] [client 24.229.43.82] 
PythonAccessHandler mpopenid::protect:   File 
"/usr/lib/python2.4/site-packages/mod_python/Session.py", line 358, in 
do_load\n    dbm = self._get_dbm()
[Wed Apr 25 14:49:47 2007] [error] [client 24.229.43.82] 
PythonAccessHandler mpopenid::protect:   File 
"/usr/lib/python2.4/site-packages/mod_python/Session.py", line 345, in 
_get_dbm\n    result = self._dbmtype.open(self._dbmfile, 'c')
[Wed Apr 25 14:49:47 2007] [error] [client 24.229.43.82] 
PythonAccessHandler mpopenid::protect:   File "anydbm.py", line 83, in 
open\n    return mod.open(file, flag, mode)
[Wed Apr 25 14:49:47 2007] [error] [client 24.229.43.82] 
PythonAccessHandler mpopenid::protect:   File "dbhash.py", line 16, in 
open\n    return bsddb.hashopen(file, flag, mode)
[Wed Apr 25 14:49:47 2007] [error] [client 24.229.43.82] 
PythonAccessHandler mpopenid::protect:   File "bsddb/__init__.py", line 
291, in hashopen
[Wed Apr 25 14:49:47 2007] [error] [client 24.229.43.82] 
PythonAccessHandler mpopenid::protect:   File "bsddb/__init__.py", line 
347, in _openDBEnv
[Wed Apr 25 14:49:47 2007] [error] [client 24.229.43.82] 
PythonAccessHandler mpopenid::protect: DBInvalidArgError: (22, 'Invalid 
argument')
================================

Thanks,

Wesley Penner

 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openidenabled.com/pipermail/dev/attachments/20070425/f0a20aad/attachment.html 


More information about the Dev mailing list