Gavin
gavin at sz.net.cn
Mon Feb 20 21:35:28 EST 2006
Hello all, 1.Redhat AS3.0 2.apache 2.0.55 3.python2.4.2 4.mod_python3.2.7 compile with: ./configure --with-apxs=/usr/local/apache2/bin/apxs --with-python-src=/usr/tools/Python-2.4.2 --with-max-locks=32 create a test sid.psp file as: <% from mod_python import apache,Session sid='ba97450aebf736c2e0203df2c8a82c91' secret="Abstfgsd" S=Session.Session(req) sid=S.id() if S.is_new(): S["sd"]=sid S.save() req.write(sid) req.write(S.id()) else: S.load() sid=S.get("sd") req.write(sid) %> <% %> apache configuration is correct. ..snip.. when I try to run sid.psp file via browser, an error happen(it is work correctly with mod_python3.1.3). the apache error_log file is as following: [Tue Feb 21 10:30:18 2006] [error] [client 202.104.96.163] PythonHandler mod_python.psp: Traceback (most recent call last): [Tue Feb 21 10:30:18 2006] [error] [client 202.104.96.163] PythonHandler mod_python.psp: File "/usr/local/lib/python2.4/site-packages/mod_python/apache.py", line 299, in HandlerDispatch\n result = object(req) [Tue Feb 21 10:30:18 2006] [error] [client 202.104.96.163] PythonHandler mod_python.psp: File "/usr/local/lib/python2.4/site-packages/mod_python/psp.py", line 302, in handler\n p.run() [Tue Feb 21 10:30:18 2006] [error] [client 202.104.96.163] PythonHandler mod_python.psp: File "/usr/local/lib/python2.4/site-packages/mod_python/psp.py", line 213, in run\n exec code in global_scope [Tue Feb 21 10:30:18 2006] [error] [client 202.104.96.163] PythonHandler mod_python.psp: File "/data/HTTPD/htdocs/intapp/sid.m", line 6, in ?\n S=Session.Session(req) [Tue Feb 21 10:30:18 2006] [error] [client 202.104.96.163] PythonHandler mod_python.psp: File "/usr/local/lib/python2.4/site-packages/mod_python/Session.py", line 698, in Session\n timeout=timeout, lock=lock) [Tue Feb 21 10:30:18 2006] [error] [client 202.104.96.163] PythonHandler mod_python.psp: File "/usr/local/lib/python2.4/site-packages/mod_python/Session.py", line 300, in __init__\n timeout=timeout, lock=lock) [Tue Feb 21 10:30:18 2006] [error] [client 202.104.96.163] PythonHandler mod_python.psp: File "/usr/local/lib/python2.4/site-packages/mod_python/Session.py", line 129, in __init__\n if self.load(): [Tue Feb 21 10:30:18 2006] [error] [client 202.104.96.163] PythonHandler mod_python.psp: File "/usr/local/lib/python2.4/site-packages/mod_python/Session.py", line 188, in load\n dict = self.do_load() [Tue Feb 21 10:30:18 2006] [error] [client 202.104.96.163] PythonHandler mod_python.psp: File "/usr/local/lib/python2.4/site-packages/mod_python/Session.py", line 321, in do_load\n dbm = self._get_dbm() [Tue Feb 21 10:30:18 2006] [error] [client 202.104.96.163] PythonHandler mod_python.psp: File "/usr/local/lib/python2.4/site-packages/mod_python/Session.py", line 308, in _get_dbm\n result = self._dbmtype.open(self._dbmfile, 'c') [Tue Feb 21 10:30:18 2006] [error] [client 202.104.96.163] PythonHandler mod_python.psp: File "/usr/local/lib/python2.4/anydbm.py", line 83, in open\n return mod.open(file, flag, mode) [Tue Feb 21 10:30:18 2006] [error] [client 202.104.96.163] PythonHandler mod_python.psp: File "/usr/local/lib/python2.4/dbhash.py", line 16, in open\n return bsddb.hashopen(file, flag, mode) [Tue Feb 21 10:30:18 2006] [error] [client 202.104.96.163] PythonHandler mod_python.psp: File "/usr/local/lib/python2.4/bsddb/__init__.py", line 285, in hashopen\n e = _openDBEnv() [Tue Feb 21 10:30:18 2006] [error] [client 202.104.96.163] PythonHandler mod_python.psp: File "/usr/local/lib/python2.4/bsddb/__init__.py", line 339, in _openDBEnv\n e.open('.', db.DB_PRIVATE | db.DB_CREATE | db.DB_THREAD | db.DB_INIT_LOCK | db.DB_INIT_MPOOL) [Tue Feb 21 10:30:18 2006] [error] [client 202.104.96.163] PythonHandler mod_python.psp: DBError: (138044656, 'Unknown error 138044656') I cann't what's wrong? Thanks in advance! Sincerely Frank Ning
|