On Jun 20, 2007, at 8:00 AM, Owen Davis wrote:

Module beaker.session:216 in save

Module beaker.session:183 in load

Module beaker.container:668 in __init__

Module beaker.util:32 in verify_directory

Module os:163 in makedirs

Module os:166 in makedirs

OSError: [Errno 13] Permission denied: 'None'

This is my third Pylons app, and I have never seen this issue before.
To avoid locking issues over NFS, my "data_dir" is set to "/tmp" on
the local machine, which has universal write permissions.  The
"templates" directory is being written to /tmp properly, but the
"session" dir is not.  Pylons appears to have the proper configuration
as indicated by request.environ['paste.config']['app_conf'] ->

'session_data_dir': '/tmp/sessions'

However, when beaker attempts to write session data, it is always
attempting to create the directory "None\n" to no avail.  If I run the
application with the paster server, on my local machine, with the
default ini settings, a "None" directory is created in my current
working directory with the session data.  There seems to be a
disconnect between my paste configuration, and the path info
ultimately passed down to the beaker session.  Hopefully it's
something simple, but I cannot seem to figure it out.  Any ideas?

Are you using the latest Beaker? Which version of Pylons? If you're using the latest Beaker, try changing it to:
session.data_dir = /tmp/sessions

In your ini file.

HTH,
Ben

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to