ZODB/FSSession TransactionError
After playing around successfully with FSSession for a while, I ran into the following error when calling FSSession: Error Type: TransactionError Error Value: A serious error, which was probably a system error, occurred in a previous database transaction. This application may be in an invalid state and must be restarted before database updates can be allowed. Beware though that if the error was due to a serious system problem, such as a disk full condition, then the application may not come up until you deal with the system problem. See your application log for information on the error that lead to this problem. Traceback (innermost last): File /usr/local/dc2/Zope-2.1.0-linux2-x86/lib/python/ZPublisher/Publish.py, line 214, in publish_module File /usr/local/dc2/Zope-2.1.0-linux2-x86/lib/python/ZPublisher/Publish.py, line 179, in publish File /usr/local/dc2/Zope-2.1.0-linux2-x86/lib/python/Zope/__init__.py, line 202, in zpublisher_exception_hook (Object: short9_panic2) File /usr/local/dc2/Zope-2.1.0-linux2-x86/lib/python/ZPublisher/Publish.py, line 169, in publish File /usr/local/dc2/Zope-2.1.0-linux2-x86/lib/python/ZODB/Transaction.py, line 209, in commit TransactionError: (see above) And from the log file: 2000-06-27T16:33:19 PANIC(300) ZODB A storage error occurred in the last phase of a two-phase commit. This shouldn't happen. The application may be in a hosed state, so we will not allow transactions to commit from here on I also get the following error on occassion when calling FSSession: Error Type: EOFError Error Value: Traceback (innermost last): File /usr/local/dc/Zope-2.1.0-linux2-x86/lib/python/ZPublisher/Publish.py, line 214, in publish_module File /usr/local/dc/Zope-2.1.0-linux2-x86/lib/python/ZPublisher/Publish.py, line 179, in publish File /usr/local/dc/Zope-2.1.0-linux2-x86/lib/python/Zope/__init__.py, line 202, in zpublisher_exception_hook (Object: ApplicationDefaultPermissions) File /usr/local/dc/Zope-2.1.0-linux2-x86/lib/python/ZPublisher/Publish.py, line 165, in publish File /usr/local/dc/Zope-2.1.0-linux2-x86/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: short9_panic2) File /usr/local/dc/Zope-2.1.0-linux2-x86/lib/python/ZPublisher/Publish.py, line 102, in call_object (Object: short9_panic2) File /usr/local/dc/Zope-2.1.0-linux2-x86/lib/python/OFS/DTMLDocument.py, line 166, in __call__ (Object: short9_panic2) File /usr/local/dc/Zope-2.1.0-linux2-x86/lib/python/DocumentTemplate/DT_String.py, line 502, in __call__ (Object: short9_panic2) File /usr/local/dc/Zope-2.1.0-linux2-x86/lib/python/Products/FSSession/FSSession.py, line 116, in __call__ (Object: FSSession) File /usr/local/dc/Zope-2.1.0-linux2-x86/lib/python/Products/FSSession/FSSession.py, line 142, in load (Object: FSSession) EOFError: (see above) I have plenty of disk space and have tried reinstalling FSSession/Zope, rebooting, etc... I am running Zope 2.1.0 and FSSession 0.3.1 Any advice would be greatly appreciated, Brian McClain
On Tue, 27 Jun 2000, Brian McClain wrote:
Error Type: TransactionError
Ooouch ... I am not sure I can diagnose the problem but it is certainly a serious issue. Your email indicates two problems. The first trace (TransactionError) does not mention FSSession anywhere so I do not know where to start. Did you have any other indications that the error was raised because of FSSession? Is it reproducible? The second trace indicates an EOFError which indicates that cPickle is trying to unpickle a file with 0 length. So I guess you tried to store objects in FSSession that were unPicklable and looking at the code I can see that FSSession does not do a proper cleaning after such an event. I will correct the second problem now and post the new version soon. Thanks Pavlos
participants (2)
-
Brian McClain -
Pavlos Christoforou