opennode/opennode-management — Issue #146: exception during sync import_machines
Author: mmikulicic
Created: 2012-03-08 17:31:10+00:00
State: open
Labels: bug

```

2012-03-08 19:30:13+0200 [-] Traceback (most recent call last):
2012-03-08 19:30:13+0200 [-] File "/media/psf/opennode-knot/opennode/knot/backend/sync.py", line 26, in run
2012-03-08 19:30:13+0200 [-] yield self.sync()
2012-03-08 19:30:13+0200 [-] File "/media/psf/opennode-management/eggs/Twisted-11.1.0-py2.7-linux-x86_64.egg/twisted/internet/defer.py", line 1037, in _inlineCallbacks
2012-03-08 19:30:13+0200 [-] result = result.throwExceptionIntoGenerator(g)
2012-03-08 19:30:13+0200 [-] File "/media/psf/opennode-management/eggs/Twisted-11.1.0-py2.7-linux-x86_64.egg/twisted/python/failure.py", line 382, in throwExceptionIntoGenerator
2012-03-08 19:30:13+0200 [-] return g.throw(self.type, self.value, self.tb)
2012-03-08 19:30:13+0200 [-] File "/media/psf/opennode-knot/opennode/knot/backend/sync.py", line 56, in sync
2012-03-08 19:30:13+0200 [-] yield import_machines()
2012-03-08 19:30:13+0200 [-] File "/media/psf/opennode-management/eggs/Twisted-11.1.0-py2.7-linux-x86_64.egg/twisted/internet/defer.py", line 1037, in _inlineCallbacks
2012-03-08 19:30:13+0200 [-] result = result.throwExceptionIntoGenerator(g)
2012-03-08 19:30:13+0200 [-] File "/media/psf/opennode-management/eggs/Twisted-11.1.0-py2.7-linux-x86_64.egg/twisted/python/failure.py", line 382, in throwExceptionIntoGenerator
2012-03-08 19:30:13+0200 [-] return g.throw(self.type, self.value, self.tb)
2012-03-08 19:30:13+0200 [-] File "/media/psf/opennode-knot/opennode/knot/backend/sync.py", line 54, in import_machines
2012-03-08 19:30:13+0200 [-] yield ensure_machine(host)
2012-03-08 19:30:13+0200 [-] File "/media/psf/opennode-management/eggs/Twisted-11.1.0-py2.7-linux-x86_64.egg/twisted/python/threadpool.py", line 207, in _worker
2012-03-08 19:30:13+0200 [-] result = context.call(ctx, function, *args, **kwargs)
2012-03-08 19:30:13+0200 [-] File "/media/psf/opennode-management/eggs/Twisted-11.1.0-py2.7-linux-x86_64.egg/twisted/python/context.py", line 118, in callWithContext
2012-03-08 19:30:13+0200 [-] return self.currentContext().callWithContext(ctx, func, *args, **kw)
2012-03-08 19:30:13+0200 [-] File "/media/psf/opennode-management/eggs/Twisted-11.1.0-py2.7-linux-x86_64.egg/twisted/python/context.py", line 81, in callWithContext
2012-03-08 19:30:13+0200 [-] return func(*args,**kw)
2012-03-08 19:30:13+0200 [-] File "/media/psf/opennode-management/opennode/oms/zodb/db.py", line 138, in
2012-03-08 19:30:13+0200 [-] lambda: run_in_tx(fun, *args, **kwargs))
2012-03-08 19:30:13+0200 [-] File "/media/psf/opennode-management/opennode/oms/zodb/db.py", line 131, in run_in_tx
2012-03-08 19:30:13+0200 [-] transaction.commit()
2012-03-08 19:30:13+0200 [-] File "/media/psf/opennode-management/eggs/transaction-1.2.0-py2.7.egg/transaction/_manager.py", line 89, in commit
2012-03-08 19:30:13+0200 [-] return self.get().commit()
2012-03-08 19:30:13+0200 [-] File "/media/psf/opennode-management/eggs/transaction-1.2.0-py2.7.egg/transaction/_transaction.py", line 342, in commit
2012-03-08 19:30:13+0200 [-] reraise(t, v, tb)
2012-03-08 19:30:13+0200 [-] File "/media/psf/opennode-management/eggs/transaction-1.2.0-py2.7.egg/transaction/_transaction.py", line 333, in commit
2012-03-08 19:30:13+0200 [-] self._commitResources()
2012-03-08 19:30:13+0200 [-] File "/media/psf/opennode-management/eggs/transaction-1.2.0-py2.7.egg/transaction/_transaction.py", line 473, in _commitResources
2012-03-08 19:30:13+0200 [-] reraise(t, v, tb)
2012-03-08 19:30:13+0200 [-] File "/media/psf/opennode-management/eggs/transaction-1.2.0-py2.7.egg/transaction/_transaction.py", line 450, in _commitResources
2012-03-08 19:30:13+0200 [-] rm.tpc_vote(self)
2012-03-08 19:30:13+0200 [-] File "/media/psf/opennode-management/eggs/ZODB3-3.10.5-py2.7-linux-x86_64.egg/ZODB/Connection.py", line 781, in tpc_vote
2012-03-08 19:30:13+0200 [-] s = vote(transaction)
2012-03-08 19:30:13+0200 [-] File "/media/psf/opennode-management/eggs/ZODB3-3.10.5-py2.7-linux-x86_64.egg/ZEO/ClientStorage.py", line 1098, in tpc_vote
2012-03-08 19:30:13+0200 [-] return self._check_serials()
2012-03-08 19:30:13+0200 [-] File "/media/psf/opennode-management/eggs/ZODB3-3.10.5-py2.7-linux-x86_64.egg/ZEO/ClientStorage.py", line 929, in _check_serials
2012-03-08 19:30:13+0200 [-] raise s
2012-03-08 19:30:13+0200 [-] ConflictError: database conflict error (oid 0x66, class BTrees.OOBTree.OOBTree, serial this txn started with 0x0395003a2ca402aa 2012-03-08 17:30:10.462656, serial currently committed 0x0395003a2ce0bdcc 2012-03-08 17:30:10.518257)
```