Traceback (most recent call last):
File "/home/eric/Projects/Web2Py/site/gluon/restricted.py", line 224, in restricted
exec ccode in environment
File "/home/eric/Projects/Web2Py/site/applications/cms/controllers/appadmin.py", line 654, in <module>
File "/home/eric/Projects/Web2Py/site/gluon/globals.py", line 392, in <lambda>
self._caller = lambda f: f()
File "/home/eric/Projects/Web2Py/site/applications/cms/controllers/appadmin.py", line 389, in ccache
cache.disk.clear()
File "/home/eric/Projects/Web2Py/site/gluon/cache.py", line 394, in clear
storage.clear()
File "/home/eric/Projects/Web2Py/site/gluon/cache.py", line 334, in clear
del self[key]
File "/home/eric/Projects/Web2Py/site/gluon/cache.py", line 316, in __delitem__
recfile.remove(key, path=self.folder)
File "/home/eric/Projects/Web2Py/site/gluon/recfile.py", line 36, in remove
raise IOError
IOError
Is this a known issue? Web2Py crashes also when there are no files and directories in the "cache" folder.
I'm running on Web2Py version 2.9.11
Tnx!
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.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 a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/3usaQxAFY0k/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
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.
--
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.
Yes, it is created on demand if it isn't there, go ahead and svn delete it.
--