In 2.8.1 I still have a problem.

Now another one too:

Ticket ID 
192.168.7.29.2013-11-28.11-31-21.11f4e653-5c83-4b57-8615-c88eba04fffd 
__len__() should return >= 0 Version web2py(tm) Version 
2.8.1-stable+timestamp.2013.11.27.13.52.50 Traceback 
Traceback (most recent call last):
File "/home/gyszabolcs/fejlesztes/web2py/gluon/restricted.py", line 217, in 
restricted
exec ccode in environment
File 
"/home/gyszabolcs/fejlesztes/web2py/applications/eszkoz/controllers/autocomplete.py"
 
(https://w2p-dev.primerate.lan/admin/default/edit/eszkoz/controllers/autocomplete.py),
 
line 462, in 
File "/home/gyszabolcs/fejlesztes/web2py/gluon/globals.py", line 372, in 
self._caller = lambda f: f()
File "/home/gyszabolcs/fejlesztes/web2py/gluon/tools.py", line 3239, in f
return action(*a, **b)
File 
"/home/gyszabolcs/fejlesztes/web2py/applications/eszkoz/controllers/autocomplete.py"
 
(https://w2p-dev.primerate.lan/admin/default/edit/eszkoz/controllers/autocomplete.py),
 
line 110, in qrcode_strAC
select(db.device.qrcode, distinct=True , cache=(cache.disk, 120))
File "/home/gyszabolcs/fejlesztes/web2py/gluon/dal.py", line 10335, in 
select
return adapter.select(self.query,fields,attributes)
File "/home/gyszabolcs/fejlesztes/web2py/gluon/dal.py", line 1831, in select
return self._select_aux(sql,fields,attributes)
File "/home/gyszabolcs/fejlesztes/web2py/gluon/dal.py", line 1805, in 
_select_aux
rows = cache_model(key,_select_aux2,time_expire)
File "/home/gyszabolcs/fejlesztes/web2py/gluon/cache.py", line 365, in 
__call__
self._close_shelve_and_unlock()
File "/home/gyszabolcs/fejlesztes/web2py/gluon/cache.py", line 255, in 
_close_shelve_and_unlock
if self.storage:
File "/usr/lib/python2.7/shelve.py", line 104, in __len__
return len(self.dict)
ValueError: __len__() should return >= 0

2013. november 27., szerda 10:53:05 UTC+1 időpontban szimszon a következőt 
írta:
>
> Hello!
>
>
> Nobody has problem with disk cache?
>
> 2013. november 26., kedd 9:16:31 UTC+1 időpontban szimszon a következőt 
> írta:
>>
>> http://code.google.com/p/web2py/issues/detail?id=1791&thanks=1791&ts=1385453629
>>
>> I have an app with lot of disk cache usage in selects after 2.7 - don't know 
>> exactly the exact version :( - I got a lot of trouble with it, sometimes the 
>> app just wait and if I try disk. Or if I make a cache.disk.flush() I got 
>> this:
>>
>> Ticket ID
>>
>> 192.168.7.29.2013-11-18.14-42-35.394acb31-76b9-4204-8695-c5f9ee84a87a
>> <class '_bsddb.DBNotFoundError'> (-30988, 'DB_NOTFOUND: No matching key/data 
>> pair found')
>> Version
>> web2py(tm)   Version 2.7.4-stable+timestamp.2013.11.03.22.45.08
>> Traceback
>>
>> Traceback (most recent call last):
>>   File "/usr/local/share/web2py/gluon/restricted.py", line 217, in restricted
>>     exec ccode in environment
>>   File "applications/eszkoz/compiled/controllers.bevetel.szamla.py", line 
>> 1090, in <module>
>>   File "/usr/local/share/web2py/gluon/globals.py", line 372, in <lambda>
>>     self._caller = lambda f: f()
>>   File "/usr/local/share/web2py/gluon/tools.py", line 3240, in f
>>     return action(*a, **b)
>>   File "applications/eszkoz/compiled/controllers.bevetel.szamla.py", line 
>> 415, in szamla
>>   File "/usr/local/share/web2py/gluon/tools.py", line 3948, in create
>>     **attributes
>>   File "/usr/local/share/web2py/gluon/tools.py", line 3899, in update
>>     callback(onaccept, form, table._tablename)
>>   File "/usr/local/share/web2py/gluon/tools.py", line 76, in callback
>>     [action(form) for action in actions]
>>   File "/usr/local/share/web2py/gluon/tools.py", line 3240, in f
>>     return action(*a, **b)
>>   File "applications/eszkoz/compiled/controllers.bevetel.szamla.py", line 
>> 65, in send_mail_to_penzugy
>>   File "applications/eszkoz/compiled/controllers.bevetel.szamla.py", line 
>> 52, in flush_cache
>>   File "/usr/local/share/web2py/gluon/cache.py", line 336, in clear
>>     storage.clear()
>>   File "/usr/lib/python2.6/UserDict.py", line 124, in clear
>>     del self[key]
>>   File "/usr/lib/python2.6/shelve.py", line 136, in __delitem__
>>     del self.dict[key]
>>   File "/usr/lib/python2.6/bsddb/__init__.py", line 285, in __delitem__
>>     _DeadlockWrap(wrapF)  # del self.db[key]
>>   File "/usr/lib/python2.6/bsddb/dbutils.py", line 68, in DeadlockWrap
>>     return function(*_args, **_kwargs)
>>   File "/usr/lib/python2.6/bsddb/__init__.py", line 284, in wrapF
>>     del self.db[key]
>> DBNotFoundError: (-30988, 'DB_NOTFOUND: No matching key/data pair found')
>>
>> In file: 
>> /usr/local/share/web2py/applications/eszkoz/compiled/controllers.bevetel.szamla.pyc
>>
>>      <code object <module> at 0xfbc8b068, file 
>> "applications/eszkoz/compiled/controllers.bevetel.szamla.py", line 1>
>>
>> I need to manually del the content of the cache dir.
>>
>> The very some app is running good with 2.6.4.
>>
>> I use apache frontend with wsgi in both case.
>>
>>

-- 
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