Re: [web2py] Re: cache.disk.clear() crashes in appadmin

2015-03-05 Thread Eric Christiaanse
Hi Leonel, I've removed the cache folder from svn. Everything works fine now with cache removal :) Tnx! 2015-03-03 16:21 GMT+01:00 Leonel Câmara : > Yes, it is created on demand if it isn't there, go ahead and svn delete it. > > -- > Resources: > - http://web2py.com > - http://web2py.com/book

[web2py] Re: cache.disk.clear() crashes in appadmin

2015-03-03 Thread Leonel Câmara
Yes, it is created on demand if it isn't there, go ahead and svn delete it. -- 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 beca

Re: [web2py] Re: cache.disk.clear() crashes in appadmin

2015-03-03 Thread Eric Christiaanse
Hi, The folder itself is under svn control, the data in it isn't. It the cache folder created 'on demand'? When that's the case we can remove all svn control on it. 2015-03-03 15:01 GMT+01:00 Leonel Câmara : > Why is the cache folder under svn control? Files are keys values in the > current ca

[web2py] Re: cache.disk.clear() crashes in appadmin

2015-03-03 Thread Leonel Câmara
Why is the cache folder under svn control? Files are keys values in the current cache disk implementation so you really can't have anything else putting files there. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - htt

Re: [web2py] Re: cache.disk.clear() crashes in appadmin

2015-03-03 Thread Eric Christiaanse
Hi Leonel, Done that and cleaned the cache folder. When I call /appadmin/ccache the code breaks here: try: disk['ratio'] = disk['hits'] * 100 / value['hit_total'] The first time everything goes great with the from cache.disk.storage[key]: {'hit_total': 0, 'misses': 0} The second time it hit

[web2py] Re: cache.disk.clear() crashes in appadmin

2015-03-03 Thread Leonel Câmara
Hey Eric, web2py 2.9.12 does contain the fix, however your application's appadmin probably doesn't as the error is in appadmin which is a controller in your own application. You need to copy the one with the fix from the 2.9.12 welcome application and overwrite it. -- Resources: - http://web2

Re: [web2py] Re: cache.disk.clear() crashes in appadmin

2015-03-02 Thread Eric Christiaanse
Hi, It took me a LONG time to check the update, but I just did. I've updated to Web2Py 2.9.12 (this version contains the fix), and copied the appadmin.py to my project. When I call cacke.disk.clear() I still get an error :( To be exact this one: Traceback (most recent call last): File "/home/e

[web2py] Re: cache.disk.clear() crashes in appadmin

2015-03-02 Thread Leonel Câmara
Hey Robin, If the code is just that you probably have stuff in your cache folder from the previous way of using it that shouldn't be there anymore. If you manually delete all files and folders in your cache folder you should stop seeing this error in the future. -- Resources: - http://web2py

[web2py] Re: cache.disk.clear() crashes in appadmin

2015-03-02 Thread Robin Manoli
Thanks Leonel! Actually the code is just this: def cache_clear(): cache.disk.clear(None) Den onsdag 25 februari 2015 kl. 13:29:09 UTC+1 skrev Leonel Câmara: > > Hey Robin, > > This was my fix for this issue > > https://github.com/web2py/web2py/commit/9d4b2e66c4736c218033e8be70d135cdf0fc718f >

[web2py] Re: cache.disk.clear() crashes in appadmin

2015-02-25 Thread Leonel Câmara
Hey Robin, This was my fix for this issue https://github.com/web2py/web2py/commit/9d4b2e66c4736c218033e8be70d135cdf0fc718f If you show me some code I can try to solve your issue. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source

[web2py] Re: cache.disk.clear() crashes in appadmin

2015-02-24 Thread Robin Manoli
Hey! I'm having the same issue here, however not in appadmin, but using cache.disk.clear in a controller instead. What did you change to fix this? Traceback (most recent call last): File "/web2py/gluon/restricted.py", line 224, in restricted exec ccode in environment File "/web2pyapplicat

[web2py] Re: cache.disk.clear() crashes in appadmin

2014-10-16 Thread Leonel Câmara
I have found the problem in appadmin.py and fixed it. You can put it in your applications controllers replacing the one in controllers/appadmin.py to fix the problem. Here are the steps: 1. Replace appadmin.py with the one attached here. 2. Delete everything in the cache folder. 3. Problem Solve

[web2py] Re: cache.disk.clear() crashes in appadmin

2014-10-16 Thread Leonel Câmara
Humm nevermind, it seems these files that cause the problem are being created automatically by appadmin. So deleting them only temporarily solves the problem. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://cod

[web2py] Re: cache.disk.clear() crashes in appadmin

2014-10-16 Thread Leonel Câmara
Hey, I have found the problem and it's not due to a bug (more like there needs to be a bit of a cleanup before upgrading to this version and this should have probably been documented). In you applications cache folder you have a cache.lock and cache.shelve, delete them. Or just delete the entire

[web2py] Re: cache.disk.clear() crashes in appadmin

2014-10-16 Thread Eric
@Paolo: Done (http://code.google.com/p/web2py/issues/detail?id=1996) @Leonel: Thans! -- 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 me

[web2py] Re: cache.disk.clear() crashes in appadmin

2014-10-16 Thread Leonel Câmara
Hey, It's not a known issue, the disk cache implementation is completely new in this version. I managed to replicate the error and I'm investigating the cause. I'll get back to you in this thread soon. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.

[web2py] Re: cache.disk.clear() crashes in appadmin

2014-10-16 Thread Paolo Valleri
Open a ticket on google code On Thursday, October 16, 2014 11:18:53 AM UTC+2, Eric wrote: > > Hi All, > > When I press the 'empty cache' button on the Appadmin I get a nice error: > > Traceback (most recent call last): > File "/home/eric/Projects/Web2Py/site/gluon/restricted.py", line 224, in >

[web2py] Re: cache.disk.clear

2010-05-04 Thread mdipierro
ok, keep us posted. On May 4, 11:51 am, Avik Basu wrote: > It seems to work fine from the interactive shell.  And after I ran > that command from the interactive shell, I think that I no longer have > the "invalid function" when calling the action.  So, perhaps it was a > problem with items that

[web2py] Re: cache.disk.clear

2010-05-04 Thread Avik Basu
It seems to work fine from the interactive shell. And after I ran that command from the interactive shell, I think that I no longer have the "invalid function" when calling the action. So, perhaps it was a problem with items that were accumulating in the cache. I'll report back if it breaks agai

[web2py] Re: cache.disk.clear

2010-05-03 Thread mdipierro
Can you try it from the shell? python web2py.py -S welcome >>> cache.disk.clear() On May 3, 9:29 pm, mdipierro wrote: > can you show the complete traceback? Do you have the latest web2py? > This seems to work for me. > > On May 3, 6:25 pm, Avik Basu wrote: > > > Hi, > > > I have installed a si

[web2py] Re: cache.disk.clear

2010-05-03 Thread mdipierro
can you show the complete traceback? Do you have the latest web2py? This seems to work for me. On May 3, 6:25 pm, Avik Basu wrote: > Hi, > > I have installed a site on dreamhost and whenever I issue the command > "cache.disk.clear" in an action, I get an "invalid function" error. > > I thought th