Bug 25813 - Operations error - partition_metadata: increment sequence number without transaction at ../source4/dsdb/samdb/ldb_modules/partition_metadata.c
Operations error - partition_metadata: increment sequence number without tran...
Status: CLOSED WORKSFORME
Product: UCS
Classification: Unclassified
Component: Samba4
UCS 3.0
Other Linux
: P5 normal (vote)
: UCS 3.1
Assigned To: Stefan Gohmann
Tobias Peters
: interim-2
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-01-11 16:16 CET by Stefan Gohmann
Modified: 2012-12-12 21:08 CET (History)
1 user (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments
users.txt.gz (329.25 KB, application/x-gzip)
2012-06-01 10:33 CEST, Felix Botner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Gohmann univentionstaff 2012-01-11 16:16:07 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'
Comment 1 Stefan Gohmann univentionstaff 2012-01-12 06:56:28 CET
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.
Comment 2 Stefan Gohmann univentionstaff 2012-02-09 15:14:29 CET
Bisher ist das in sehr vielen weiteren Tests nicht erneut aufgetreten.
Comment 3 Felix Botner univentionstaff 2012-06-01 10:32:55 CEST
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
Comment 4 Felix Botner univentionstaff 2012-06-01 10:33:16 CEST
Created attachment 4424 [details]
users.txt.gz
Comment 5 Stefan Gohmann univentionstaff 2012-07-09 13:32:21 CEST
Das sollten wir mit dem nächsten Samba4 Upstream Import nochmal prüfen.
Comment 6 Stefan Gohmann univentionstaff 2012-10-15 07:23:13 CEST
Ich kann das Problem mit der S4 Version in UCS 3.1 nicht mehr reproduzieren.
Comment 7 Tobias Peters univentionstaff 2012-10-19 14:03:15 CEST
Nach vielen Durchläufen der Tests ist es auch bei mir nicht mehr aufgetreten.
Comment 8 Stefan Gohmann univentionstaff 2012-12-12 21:08:23 CET
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".