Ok, let's continue discussion there.

Marin



On Fri, Dec 13, 2013 at 9:16 PM, Leonel Câmara <leonelcam...@gmail.com>wrote:

> Yes, Lucas and I are having the same problem.
> https://groups.google.com/forum/#!topic/web2py/CSuT_CknD20
>
> Restarting the webserver temporarily solves the problem for me. Saving
> sessions in db also seems to make the problem take longer to appear.
>
> For me, it's happening with apache in windows, I've never seen it happen
> with the included rocket server.
>
> Either way, it's definitely a bug introduced between 2.7 and 2.8, I just
> didn't have the time to look into it properly yet, hopefully one of the
> devs will have time to do it soon.
>
> What seems to be happening here is that somewhere along the way, an object
> that is not copyable is being saved in the session.
>
> A potential way to find the bug that I didn't have time to try yet, is to
> define Session __setitem__ and try to cPickle.dumps everything that is put
> there as that should crash instantly and find what's going wrong.
>
>
> Sexta-feira, 13 de Dezembro de 2013 19:40:18 UTC, Marin Pranjić escreveu:
>
>> This happens when customer tries to login. I have no idea why it happens
>> and it works when I try it on localhost.
>>
>>
>> web2py™Version 2.8.2-stable+timestamp.2013.11.28.07.51.37 PythonPython
>> 2.7.3: /usr/bin/python (prefix: /usr)
>>
>> Traceback
>>
>> 1.
>> 2.
>> 3.
>> 4.
>> 5.
>> 6.
>> 7.
>> 8.
>>
>>
>> 9.
>> 10.
>> 11.
>> 12.
>> 13.
>>
>> Traceback (most recent call last):
>>
>>
>>   File "/home/www-data/web2py/gluon/main.py", line 479, in wsgibase
>>
>>
>>     session._try_store_in_cookie_or_file(request, response)
>>
>>
>>   File "/home/www-data/web2py/gluon/globals.py", line 1089, in 
>> _try_store_in_cookie_or_file
>>
>>
>>     return self._try_store_in_file(request, response)
>>
>>
>>   File "/home/www-data/web2py/gluon/globals.py", line 1096, in 
>> _try_store_in_file
>>
>>
>>     or self._unchanged(response)):
>>
>>
>>   File "/home/www-data/web2py/gluon/globals.py", line 1041, in _unchanged
>>
>>
>>     session_pickled = cPickle.dumps(self)
>>
>>
>>   File "/usr/lib/python2.7/copy_reg.py", line 84, in _reduce_ex
>>
>>
>>     dict = getstate()
>> TypeError: 'NoneType' object is not callable
>>
>>
>> Any ideas? It's urgent so any suggestion is welcome.
>>
>> Marin
>>
>  --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to