web2py session error: <type 'exceptions.TypeError'>('NoneType' object is not callable)

256 views
Skip to first unread message

Jason Lee

unread,
Feb 11, 2015, 11:12:18 AM2/11/15
to web...@googlegroups.com
I am storing the session data in a database.

I am using the latest web2py.

I have deleted everything, reinstalled fresh, deleted the database and rebuilt it and I still get this error.

The error occurs when I reboot the system.  I can fix it by restarting apache2 service once the server has rebooted.


I have a number of serverrs doing this.  It only started when I upgraded.

Error details;

Traceback (most recent call last):
File "/usr/share/www-data/web2py/gluon/main.py", line 435, in wsgibase
session.connect(request, response)
File "/usr/share/www-data/web2py/gluon/globals.py", line 934, in connect
session_pickled = pickle.dumps(self, pickle.HIGHEST_PROTOCOL)
TypeError: 'NoneType' object is not callable

Massimo Di Pierro

unread,
Feb 13, 2015, 7:17:20 PM2/13/15
to web...@googlegroups.com
Did you delete your existing sessions?

Jason Lee

unread,
Feb 15, 2015, 6:55:27 PM2/15/15
to web...@googlegroups.com
I am storing the sessions in a mysql database called users.

I dropped and created the users database again.  I still get the error.

Jason Lee

unread,
Feb 15, 2015, 7:03:28 PM2/15/15
to web...@googlegroups.com
Massimo,

I have a fairly complex system.  We have a master application and a number of slave applications running on the same server.

The master appliaction works as the CAS server as well.


On Wednesday, February 11, 2015 at 11:12:18 AM UTC-5, Jason Lee wrote:

Massimo Di Pierro

unread,
Feb 15, 2015, 7:38:55 PM2/15/15
to web...@googlegroups.com
I think I found the cause of the problem... I will try fix it asap. Stay posted so you can help test the fix.

Massimo Di Pierro

unread,
Feb 16, 2015, 12:37:22 AM2/16/15
to web...@googlegroups.com
can you check if the latest nightly build fixes the problem. Actually you do not have to replace all the code but only web2py/gluon/storage.py from the git repo.

Does it solve the problem?

Jason Lee

unread,
Feb 17, 2015, 8:50:15 AM2/17/15
to web...@googlegroups.com
I will attempt to try now.

Jason Lee

unread,
Feb 17, 2015, 6:49:38 PM2/17/15
to web...@googlegroups.com
It did not solve the issue.
Reply all
Reply to author
Forward
0 new messages