[pybsddb] DBAccessError: (13, 'Permission denied') using mod_python
Jesus Cea
jcea at argo.es
Fri Jan 23 23:46:55 CET 2009
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
denis.papathanasiou at gmail.com wrote:
> I've written a python module to access a database file using bsddb3; the
> module works fine when called from command line or within a python shell.
>
> But when I load and run the module in mod_python under apache, I get
> this error:
>
>> File "/opt/tools/berkeley-db/db.py", line 22, in with_db
>> dbe.open(environment_folder, db.DB_CREATE | db.DB_INIT_MPOOL | db.DB_INIT_LOCK)
>>
>> DBAccessError: (13, 'Permission denied')
Check also all the parent folders. The error seems pretty clear to me.
For instance, try to open the database files with a regular
"f=open('file')"; I am sure you will find the same error.
Be sure to check the files in all the environment, like the lock files,
the "__db.*" files, etc.
- --
Jesus Cea Avion _/_/ _/_/_/ _/_/_/
jcea at jcea.es - http://www.jcea.es/ _/_/ _/_/ _/_/ _/_/ _/_/
jabber / xmpp:jcea at jabber.org _/_/ _/_/ _/_/_/_/_/
. _/_/ _/_/ _/_/ _/_/ _/_/
"Things are not so easy" _/_/ _/_/ _/_/ _/_/ _/_/ _/_/
"My name is Dump, Core Dump" _/_/_/ _/_/_/ _/_/ _/_/
"El amor es poner tu felicidad en la felicidad de otro" - Leibniz
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iQCVAwUBSXpI3plgi5GaxT1NAQISSgP+J5S9uvcOBpRU2Zv1rEEXxyIm6KPsCBMo
y1Y4OijFOmTu/i+iLkOu13vV6/yOdY+oYrgQx4YlnmTh4WvEsXTFzxxviBBWB1/V
sj6Hp0/YDAXHMh8mhIi/LxWhj64NACEskekQR3b2MbuyXO96JcjQcwC/3t10UZA/
80/gyz7Bvls=
=fTwn
-----END PGP SIGNATURE-----
More information about the pybsddb
mailing list