Univention Bugzilla – Bug 25813
Operations error - partition_metadata: increment sequence number without transaction at ../source4/dsdb/samdb/ldb_modules/partition_metadata.c
Last modified: 2012-12-12 21:08:23 CET
Bei den automatischen S4 Connector Tests bekomme ich nach einiger Zeit für alle LDB Operationen den folgenden Traceback: 06.01.2012 15:21:49,231 LDAP (PROCESS): sync from ucs: Resync rejected file: /var/lib/univention-connector/s4/1325852546.753513 06.01.2012 15:21:49,232 LDAP (PROCESS): sync from ucs: [ ou] [ add] ou=fslyvbpn1,dc=deadlock64,dc=local 06.01.2012 15:21:49,238 LDAP (WARNING): sync failed, saved as rejected 06.01.2012 15:21:49,238 LDAP (WARNING): Traceback (most recent call last): File "/usr/lib/pymodules/python2.6/univention/s4connector/__init__.py", line 606, in __sync_file_from_ucs or (not old_dn and not self.sync_from_ucs(key, object, premapped_ucs_dn, old_dn, old))): File "/usr/lib/pymodules/python2.6/univention/s4connector/s4/__init__.py", line 2166, in sync_from_ucs self.lo_s4.lo.add_s(compatible_modstring(object['dn']), compatible_addlist(addlist)) #FIXME encoding File "/usr/lib/python2.6/dist-packages/ldap/ldapobject.py", line 194, in add_s return self.result(msgid,all=1,timeout=self.timeout) File "/usr/lib/python2.6/dist-packages/ldap/ldapobject.py", line 422, in result res_type,res_data,res_msgid = self.result2(msgid,all,timeout) File "/usr/lib/python2.6/dist-packages/ldap/ldapobject.py", line 426, in result2 res_type, res_data, res_msgid, srv_ctrls = self.result3(msgid,all,timeout) File "/usr/lib/python2.6/dist-packages/ldap/ldapobject.py", line 432, in result3 ldap_result = self._ldap_call(self._l.result3,msgid,all,timeout) File "/usr/lib/python2.6/dist-packages/ldap/ldapobject.py", line 96, in _ldap_call result = func(*args,**kwargs) OPERATIONS_ERROR: {'info': '00002020: Operations error - partition_metadata: increment sequence number without transaction at ../source4/dsdb/samdb/ldb_modules/partition_metadata.c:362', 'desc'
Scheinbar tritt das Problem auf, wenn ich versuche den gleichen Benutzer in unterschiedlicher Groß-/Kleinschreibung hinzufügen, hier 'CN=sgwwqxyk,CN=Users,DC=deadlock64,DC=local' und 'cn=sgwwqxyk,cn=users,dc=deadlock64,dc=local'. 06.01.2012 10:51:32,349 LDAP (WARNING): group_members_sync_from_ucs: failed to sync members: (cn=glkfivud,cn=groups,dc=deadlock64,dc=local,[(2, 'member', ['CN=sgwwqxyk,CN=Users,DC=deadlock64,DC=local', 'cn=sgwwqxyk,cn=users,dc=deadlock64,dc=local'])]) 06.01.2012 10:51:32,350 LDAP (WARNING): sync failed, saved as rejected 06.01.2012 10:51:32,350 LDAP (WARNING): Traceback (most recent call last): File "/usr/lib/pymodules/python2.6/univention/s4connector/__init__.py", line 606, in __sync_file_from_ucs or (not old_dn and not self.sync_from_ucs(key, object, premapped_ucs_dn, old_dn, old))): File "/usr/lib/pymodules/python2.6/univention/s4connector/s4/__init__.py", line 2249, in sync_from_ucs f(self, property_type, object) File "/usr/lib/pymodules/python2.6/univention/s4connector/s4/__init__.py", line 58, in group_members_sync_from_ucs return s4connector.group_members_sync_from_ucs(key, object) File "/usr/lib/pymodules/python2.6/univention/s4connector/s4/__init__.py", line 1210, in group_members_sync_from_ucs self._group_members_sync_from_ucs(key, object, member_check_list) File "/usr/lib/pymodules/python2.6/univention/s4connector/s4/__init__.py", line 1304, in _group_members_sync_from_ucs self.lo_s4.lo.modify_s(compatible_modstring(object['dn']),[(ldap.MOD_REPLACE, 'member', modlist_members)]) File "/usr/lib/python2.6/dist-packages/ldap/ldapobject.py", line 322, in modify_s return self.result(msgid,all=1,timeout=self.timeout) File "/usr/lib/python2.6/dist-packages/ldap/ldapobject.py", line 422, in result res_type,res_data,res_msgid = self.result2(msgid,all,timeout) File "/usr/lib/python2.6/dist-packages/ldap/ldapobject.py", line 426, in result2 res_type, res_data, res_msgid, srv_ctrls = self.result3(msgid,all,timeout) File "/usr/lib/python2.6/dist-packages/ldap/ldapobject.py", line 432, in result3 ldap_result = self._ldap_call(self._l.result3,msgid,all,timeout) File "/usr/lib/python2.6/dist-packages/ldap/ldapobject.py", line 96, in _ldap_call result = func(*args,**kwargs) OPERATIONS_ERROR: {'info': '00002020: Operations error - partition_metadata: increment sequence number without transaction at ../source4/dsdb/samdb/ldb_modules/partition_metadata.c:362', 'desc': 'Operations error'} Da das nur durch einen S4 restart behoben werden kann, sollten wir das in 3.0-1 beheben.
Bisher ist das in sehr vielen weiteren Tests nicht erneut aufgetreten.
Mit dem ucs@school Benutzer Import File aus dem Anhang bekam ich ebenfalls eine solche Meldung: 01.06.2012 09:17:59,968 LDAP (PROCESS): sync from ucs: Resync rejected file: /var/lib/univention-connector/s4/1338488833.476788 01.06.2012 09:17:59,968 LDAP (PROCESS): sync from ucs: Resync rejected file: /var/lib/univention-connector/s4/1338488833.476788 01.06.2012 09:17:59,976 LDAP (PROCESS): sync from ucs: [ user] [ add] cn=puser35776,cn=schueler,cn=users,ou=s30,dc=qq,dc=ww 01.06.2012 09:17:59,976 LDAP (PROCESS): sync from ucs: [ user] [ add] cn=puser35776,cn=schueler,cn=users,ou=s30,dc=qq,dc=ww 01.06.2012 09:17:59,997 LDAP (WARNING): sync failed, saved as rejected 01.06.2012 09:17:59,997 LDAP (WARNING): sync failed, saved as rejected 01.06.2012 09:17:59,997 LDAP (WARNING): Traceback (most recent call last): File "/usr/lib/pymodules/python2.6/univention/s4connector/__init__.py", line 751, in __sync_file_from_ucs or (not old_dn and not self.sync_from_ucs(key, object, premapped_ucs_dn, old_dn, old))): File "/usr/lib/pymodules/python2.6/univention/s4connector/s4/__init__.py", line 2269, in sync_from_ucs self.lo_s4.lo.modify_ext_s(compatible_modstring(object['dn']), compatible_modlist(modlist), serverctrls=self.serverctrls_for_add_and_modify) File "/usr/lib/python2.6/dist-packages/ldap/ldapobject.py", line 295, in modify_ext_s return self.result(msgid,all=1,timeout=self.timeout) File "/usr/lib/python2.6/dist-packages/ldap/ldapobject.py", line 422, in result res_type,res_data,res_msgid = self.result2(msgid,all,timeout) File "/usr/lib/python2.6/dist-packages/ldap/ldapobject.py", line 426, in result2 res_type, res_data, res_msgid, srv_ctrls = self.result3(msgid,all,timeout) File "/usr/lib/python2.6/dist-packages/ldap/ldapobject.py", line 432, in result3 ldap_result = self._ldap_call(self._l.result3,msgid,all,timeout) File "/usr/lib/python2.6/dist-packages/ldap/ldapobject.py", line 96, in _ldap_call result = func(*args,**kwargs) OPERATIONS_ERROR: {'info': '00002020: Operations error - ltdb modify without transaction', 'desc': 'Operations error'} Nach dem Neustart von samba4 und dem connector ging es dann weiter
Created attachment 4424 [details] users.txt.gz
Das sollten wir mit dem nächsten Samba4 Upstream Import nochmal prüfen.
Ich kann das Problem mit der S4 Version in UCS 3.1 nicht mehr reproduzieren.
Nach vielen Durchläufen der Tests ist es auch bei mir nicht mehr aufgetreten.
UCS 3.1-0 has been released: http://forum.univention.de/viewtopic.php?f=54&t=2125 If this error occurs again, please use "Clone This Bug".