Hello,

Just to let you know ISSUE SOLVED.

For an unknown reason sessions folder was not chown to www-data, so
simply :

chown -R www-data:www-data sessions

solved the issue.

I am not sure it's the way it should be but at least it works now.

Thanks,

Cheers,

On 29 jan, 09:41, Benjamin <[email protected]> wrote:
> Hello Massimo,
>
> Unfortunately it doesn't solve it.
>
> There is from time to time only 2 files in this cache folder :
> cache.lock
> cache.shelve
>
> And deleting it doesn't change the behavior, i.e.: the web2py
> "welcome" page is displayed correctly using an SSH tunnel but the
> admin panel displays "Internal error Ticket issued: admin/
> __1.2012-01-29.13-25-47.643f7d62-256c-4151-b2e3-fd1ef2fc332a"
>
> Here is what I have found at the end of the ticket :
> ***************************************************
> S"<Storage {'_user_agent': {'os': {'name': 'Macint...owser':
> {'version': '5.1.1', 'name': 'Safari'}}}>" p3726 sg60
> S"<Storage {'body': <cStringIO.StringO object at 0..._vars': <Storage
> {}>, 'post_vars': <Storage {}>}>" p3727
> sg2782 S"<Storage {'status': 200, 'body': <cStringIO.Stri.../css/
> styles.css'], 'view': 'default/index.html'}>"
> p3728 sS'session_folder' p3729 S"'/home/www-data/web2py/applications/
> admin/sessions'" p3730 sssS'traceback' p3731
> S'Traceback (most recent call last):\n File "/home/www-data/web2py/
> gluon/main.py", line 523, in wsgibase\n
> session._try_store_on_disk(request, response)\n File "/home/www-data/
> web2py/gluon/globals.py", line 586, in
> _try_store_on_disk\n response.session_file =
> open(response.session_filename, \'wb\')\nIOError: [Errno 13]
> Permission denied:
> \'/home/www-data/web2py/applications/admin/sessions/..
> 1-055bbcfa-3236-4328-b1ff-0dc2d70a32b9\'\n' p3732 s.
>
> ***************************************************
>
> By looking at my admin folder it seems like EVERYTHING has rights :
> "drwxr-xr-x  www-data www-data", EXCEPT only the "sessions" folder
> which has "drwxr-xr-x  root     root".
>
> Any reason why is it so ?
>
> Isn't the session folder supposed to also be "drwxr-xr-x  www-data www-
> data" ?
>
> It's really weird it happened as i've chown "chown -R www-data:www-
> data web2py" during web2py installation...
>
> Thanks for your help,
>
> Cheers,
>
> On 28 jan, 20:53, Massimo Di Pierro <[email protected]>
> wrote:
>
>
>
>
>
>
>
> > Can you try delete applications/admin/cache/*?
>
> > it is possible that there is a cache file created using a different
> > python version and web2py cannot open it. For permission issues it may
> > be unable to remove it and re-create it.
>
> > On Jan 28, 12:25 pm, Benjamin <[email protected]> wrote:
>
> > > Hello guys,
>
> > > Attracted by web2py dev possibilities I couldn't resist ;-) But
> > > unfortunately deployment is a whole other story and I'm having major
> > > difficulties.
>
> > > So after a struggle I got web2py to run on lighttpd, then discovered
> > > that, as I didn't set any SSL, I couldn't access the admin interface.
>
> > > So I'm trying to use an ssh tunnel :
> > > ssh -L 9090:localhost:80 [email protected]
>
> > > After that I can see the demo app at localhost:9090 but every single
> > > click on the "Admin interface" button on the right of the demo app end
> > > up with :
>
> > > on the browser side :
> > > "Internal error
> > > Ticket issued: admin/__1.2012-01-28.23-18-18.cf854d0b-a8f7-4ef8-bd28-
> > > a24debe031a8"
>
> > > on the terminal side (the terminal which started a bash script
> > > starting the fcgihandler.fcgi ) I got this :
> > > ERROR:web2py.cache:corrupted file /home/www-data/web2py/applications/
> > > admin/cache/cache.shelve, will try delete it!
>
> > > Interesting fact : each time I try to click on the "admin panel"
> > > button from the browser, a new "ERROR:web2py.cache:corrupted file /
> > > home/www-data/web2py/applications/admin/cache/cache.shelve, will try
> > > delete it!" is displayed on the terminal.
>
> > > What am I doing wrong ?
>
> > > Thanks a lot,
>
> > > cheers,
>
> > > PS : the file got deleted automatically each time but I still can't
> > > access the admin panel

Reply via email to