I always have a trouble to undo something. Zope: 2.5, not updated OS: Linux SuSE 8.0 Pro Session is on ZODB, not in temp folder. Anybody know what this error means and how to avoid this? Error Type: UndoError Error Value: Couldn't undo change to '\x00\x00\x00\x00\x00\x00\x1c4' because non-undoable transaction Traceback (innermost last): File /opt/zope/lib/python/ZPublisher/Publish.py, line 150, in publish_module File /opt/zope/lib/python/ZPublisher/Publish.py, line 114, in publish File /opt/zope/lib/python/Zope/__init__.py, line 159, in zpublisher_exception_hook (Object: newTask) File /opt/zope/lib/python/ZPublisher/Publish.py, line 102, in publish File /opt/zope/lib/python/Zope/__init__.py, line 173, in commit File /opt/zope/lib/python/ZODB/Transaction.py, line 234, in commit File /opt/zope/lib/python/ZODB/DB.py, line 590, in commit File /opt/zope/lib/python/ZODB/FileStorage.py, line 1134, in transactionalUndo (Object: /opt/zope/var/Data.fs) File /opt/zope/lib/python/ZODB/FileStorage.py, line 1169, in _txn_undo (Object: /opt/zope/var/Data.fs) File /opt/zope/lib/python/ZODB/FileStorage.py, line 1260, in _txn_undo_write (Object: /opt/zope/var/Data.fs) UndoError: (see above) -- Regards, Bogdan We've found by experience that people who are careless and sloppy writers are usually also careless and sloppy thinkers (often enough to bet on, anyway). -- ESR (http://www.tuxedo.org/~esr/faqs/smart-questions.html)
Bo M. Maryniuck writes:
I always have a trouble to undo something. Zope: 2.5, not updated OS: Linux SuSE 8.0 Pro Session is on ZODB, not in temp folder.
Anybody know what this error means and how to avoid this?
Error Type: UndoError Error Value: Couldn't undo change to '\x00\x00\x00\x00\x00\x00\x1c4' because non-undoable transaction I see two potential reasons:
1. The transaction references a set of objects. At least one of these objects has later been changed by another transaction. The former transaction cannot be undone without the latter one (because this would give you some inconsistency) 2. A single Zope-transaction can consist of an undoable transaction (e.g. against a ZODB on top of an undoable storage) and a non-undoable transaction (e.g. against a relational database). Then the whole transaction is non-undoable (because you cannot undo the effect in the relational database). Up to now, I did not know that Zope supports this kind of undoable transaction. But it would be fine when it does. Dieter
On Tuesday 29 October 2002 21:50, Dieter Maurer wrote:
Error Type: UndoError Error Value: Couldn't undo change to '\x00\x00\x00\x00\x00\x00\x1c4' because non-undoable transaction
I see two potential reasons:
1. The transaction references a set of objects. At least one of these objects has later been changed by another transaction. The former transaction cannot be undone without the latter one (because this would give you some inconsistency)
1. Add DTML Method 2. Delete DTML Method 3. Undo (try) the latest change 4. Get error. Seems that Zope can not undo anything I do: all what I do (change, delete or move) it always returns this error.
2. A single Zope-transaction can consist of an undoable transaction (e.g. against a ZODB on top of an undoable storage) and a non-undoable transaction (e.g. against a relational database). Then the whole transaction is non-undoable (because you cannot undo the effect in the relational database).
Hmm.... Hmm... So what there is such undoable stuff to just undelete an object? -- Regards, Bogdan We have enough youth, how about a fountain of SMART?
Bo M. Maryniuck writes:
Seems that Zope can not undo anything I do: all what I do (change, delete or You told us in an earlier message that your sessions are in filestorage and not in RAM. Maybe, these sessions mark the transaction as non-undoable or another session change has been committed in the meantime.
Dieter
On Wednesday 30 October 2002 21:12, Dieter Maurer wrote:
You told us in an earlier message that your sessions are in filestorage and not in RAM. Maybe, these sessions mark the transaction as non-undoable or another session change has been committed in the meantime.
Yes, exactly. I've changed sessions back to the RAM and Zope now can undo. But I need persistent session in the filestorage. And undo feature... :-( -- Regards, Bogdan If Peter Piper pickles a peck of Python packages, can he pack the pickled Python peckers in a proper packing place? -- Found on comp.lang.python
Bo M. Maryniuck wrote:
On Wednesday 30 October 2002 21:12, Dieter Maurer wrote:
You told us in an earlier message that your sessions are in filestorage and not in RAM. Maybe, these sessions mark the transaction as non-undoable or another session change has been committed in the meantime.
Yes, exactly. I've changed sessions back to the RAM and Zope now can undo. But I need persistent session in the filestorage. And undo feature... :-(
Have you tried using mounted storages to keep your session stuff seperate? cheers, Chris
On Thursday 31 October 2002 15:12, Chris Withers wrote:
Have you tried using mounted storages to keep your session stuff seperate? No and it's interesting. How? I mean, where to RTFM how to mount another one file storage and point there session stuff?
-- Regards, Bogdan There is a 70% probability of tomorrow. (Actual weatherman quote, 1988)
Bo M. Maryniuck wrote:
On Thursday 31 October 2002 15:12, Chris Withers wrote:
Have you tried using mounted storages to keep your session stuff seperate?
No and it's interesting. How? I mean, where to RTFM how to mount another one file storage and point there session stuff?
look for the ExternalMount product, have a read of http://www.zope.org/About/ZEOClient. Search the mailing list archives and if you're still stuck, try zodb-dev@zope.org. cheers, Chris
On Friday 01 November 2002 17:29, Chris Withers wrote:
look for the ExternalMount product, have a read of http://www.zope.org/About/ZEOClient. Search the mailing list archives and if you're still stuck, try zodb-dev@zope.org.
Yes, it works fine for me under 2.4, 2.5 and 2.6 as well. Thank you. -- Regards, Bogdan I've been in the sun for a week. I took the bold step of leaving my laptop at home. I found only 4K messages pending when I returned. -- Keith Packard
Bo M. Maryniuck wrote:
On Friday 01 November 2002 17:29, Chris Withers wrote:
look for the ExternalMount product, have a read of http://www.zope.org/About/ZEOClient. Search the mailing list archives and if you're still stuck, try zodb-dev@zope.org.
Yes, it works fine for me under 2.4, 2.5 and 2.6 as well. Thank you.
cool :-) Chris
participants (3)
-
Bo M. Maryniuck -
Chris Withers -
Dieter Maurer