yes I know this problem for a long time, would be nice if this would be fixed. I guess right now the problem is that the whole ticket display fails if one ticket is corrupted. I think this could be quickfixed by a simple try catch block around the deserialization of each ticket pickle file.
On Sunday, March 11, 2012 3:48:04 AM UTC+1, Brian M wrote: > > This has actually been plaguing me for a while but finally annoyed me > enough to ask. I have several web2py (1.99.4) apps running under > Apache/2.2.17 (Win32) , mod_wsgi/3.3 and Python/2.6.4. More often than > not when an error happens and a ticket is generated, the ticket seems to be > corrupt. Attempting to view the ticket creates another error for which the > ticket says something like: > > <type 'exceptions.EOFError'> Version web2py™ (1, 99, 4, > datetime.datetime(2011, 12, 22, 11, 20, 45), 'stable') Python Python > 2.6.4: C:\vantage_dashboard\xampp\apache\bin\httpd.exe Traceback > > 1. > 2. > 3. > 4. > 5. > 6. > 7. > 8. > 9. > 10. > 11. > 12. > 13. > 14. > 15. > 16. > > Traceback (most recent call last): > File "C:\vantage_dashboard\xampp\web2py\gluon\restricted.py", line 204, in > restricted > exec ccode in environment > File > "C:/vantage_dashboard/xampp/web2py/applications/admin/controllers/default.py" > <https://app02:444/admin/default/edit/admin/controllers/default.py>, line > 1341, in <module> > File "C:\vantage_dashboard\xampp\web2py\gluon\globals.py", line 172, in > <lambda> > self._caller = lambda f: f() > File > "C:/vantage_dashboard/xampp/web2py/applications/admin/controllers/default.py" > <https://app02:444/admin/default/edit/admin/controllers/default.py>, line > 1082, in errors > error = pickle.load(fullpath_file) > File "C:\Python26\Lib\pickle.py", line 1370, in load > return Unpickler(file).load() > File "C:\Python26\Lib\pickle.py", line 858, in load > dispatch[key](self) > File "C:\Python26\Lib\pickle.py", line 880, in load_eof > raise EOFError > EOFError > > > Which means that I have to attempt to read the original error ticket in a > text editor which is just slightly less than idea. Any ideas what might be > happening? This problem doesn't seem to happen in my dev environment (also > Windows but just using rocket instead of apache/mod_wsgi). > > Thanks, > Brian >