Hi, have recently upgraded to 4.1-4 errata 366.
Noticed an issue after running “univention-s4connector-list-rejected” showing two windows computer accounts that would not sync from S4 to UCS due to a UID already existing traceback.
My (probably misguided) attempt to work around it was to delete the computer accounts in UCS UMC, and unjoin the computer from the samba domain to remove the AD entry, thinking that with entries removed from both sides, I could rejoin the computers after changing the name and start fresh.
Does not seem to have worked out that way.
Now having unjoined, changed the computer names and rejoined them, I’m getting “univention-s4connector-list-rejected” errors piling up in both directions with indicated for paths on each side S4->UCS and UCS->S4 for these new computer account objects.
Really not sure what to do to move forward from here.
Output of “univention-s4connector-list-rejected” shows entries piling up at about 4 a minute. Was over 114 when I left the office. Have just sanitised real domain name to “dc=replaceddomainname,dc=com”.
[code] root@dc1:/var/log/univention# univention-s4connector-list-rejected
UCS rejected
1: UCS DN: cn=NAV,cn=computers,dc=replaceddomainname,dc=com
S4 DN: <not found>
Filename: /var/lib/univention-connector/s4/1483427853.705730
2: UCS DN: cn=NAV,cn=computers,dc=replaceddomainname,dc=com
S4 DN: <not found>
Filename: /var/lib/univention-connector/s4/1483427853.732950
3: UCS DN: cn=NAV,cn=Computers,dc=replaceddomainname,dc=com
S4 DN: <not found>
Filename: /var/lib/univention-connector/s4/1483427854.166414
4: UCS DN: cn=NAV,ou=Servers,dc=replaceddomainname,dc=com
S4 DN: <not found>
Filename: /var/lib/univention-connector/s4/1483427875.569946
5: UCS DN: cn=NAV,ou=Servers,dc=replaceddomainname,dc=com
S4 DN: <not found>
Filename: /var/lib/univention-connector/s4/1483427875.593706
6: UCS DN: cn=NAV,ou=Servers,dc=replaceddomainname,dc=com
S4 DN: <not found>
Filename: /var/lib/univention-connector/s4/1483427875.992033
7: UCS DN: cn=NAV,ou=Servers,dc=replaceddomainname,dc=com
S4 DN: <not found>
Filename: /var/lib/univention-connector/s4/1483427930.890286
8: UCS DN: cn=NAV,ou=Servers,dc=replaceddomainname,dc=com
S4 DN: <not found>
Filename: /var/lib/univention-connector/s4/1483427931.351270
9: UCS DN: cn=NAV,ou=Servers,dc=replaceddomainname,dc=com
S4 DN: <not found>
Filename: /var/lib/univention-connector/s4/1483427943.966653
10: UCS DN: cn=NAV,ou=Servers,dc=replaceddomainname,dc=com
S4 DN:
Filename: /var/lib/univention-connector/s4/1483427944.408640
11: UCS DN: cn=NAV,ou=Servers,dc=replaceddomainname,dc=com
S4 DN:
Filename: /var/lib/univention-connector/s4/1483428002.786916
12: UCS DN: cn=NAV,ou=Servers,dc=replaceddomainname,dc=com
S4 DN:
Filename: /var/lib/univention-connector/s4/1483428003.138910
13: UCS DN: cn=NAV,ou=Servers,dc=replaceddomainname,dc=com
S4 DN:
Filename: /var/lib/univention-connector/s4/1483428060.893638
14: UCS DN: cn=NAV,ou=Servers,dc=replaceddomainname,dc=com
S4 DN:
Filename: /var/lib/univention-connector/s4/1483428061.334427
15: UCS DN: cn=NAV,ou=Servers,dc=replaceddomainname,dc=com
S4 DN:
Filename: /var/lib/univention-connector/s4/1483428098.512087
16: UCS DN: cn=NAV,ou=Servers,dc=replaceddomainname,dc=com
S4 DN:
Filename: /var/lib/univention-connector/s4/1483428098.930595
17: UCS DN: cn=NAV,ou=Servers,dc=replaceddomainname,dc=com
S4 DN:
Filename: /var/lib/univention-connector/s4/1483428156.707879
18: UCS DN: cn=NAV,ou=Servers,dc=replaceddomainname,dc=com
S4 DN:
Filename: /var/lib/univention-connector/s4/1483428157.178855
19: UCS DN: cn=NAV,ou=Servers,dc=replaceddomainname,dc=com
S4 DN:
Filename: /var/lib/univention-connector/s4/1483428215.187057
20: UCS DN: cn=NAV,ou=Servers,dc=replaceddomainname,dc=com
S4 DN:
Filename: /var/lib/univention-connector/s4/1483428215.620075
21: UCS DN: cn=NAV,ou=Servers,dc=replaceddomainname,dc=com
S4 DN:
Filename: /var/lib/univention-connector/s4/1483428273.668240
22: UCS DN: cn=NAV,ou=Servers,dc=replaceddomainname,dc=com
S4 DN:
Filename: /var/lib/univention-connector/s4/1483428274.093298
23: UCS DN: cn=NAV,ou=Servers,dc=replaceddomainname,dc=com
S4 DN:
Filename: /var/lib/univention-connector/s4/1483428332.237704
24: UCS DN: cn=NAV,ou=Servers,dc=replaceddomainname,dc=com
S4 DN:
Filename: /var/lib/univention-connector/s4/1483428332.603446
25: UCS DN: cn=NAV,ou=Servers,dc=replaceddomainname,dc=com
S4 DN:
Filename: /var/lib/univention-connector/s4/1483428390.633473
26: UCS DN: cn=NAV,ou=Servers,dc=replaceddomainname,dc=com
S4 DN:
Filename: /var/lib/univention-connector/s4/1483428391.060995
27: UCS DN: cn=NAV,ou=Servers,dc=replaceddomainname,dc=com
S4 DN:
Filename: /var/lib/univention-connector/s4/1483428449.380103
28: UCS DN: cn=NAV,ou=Servers,dc=replaceddomainname,dc=com
S4 DN:
Filename: /var/lib/univention-connector/s4/1483428449.882448
29: UCS DN: cn=NAV,ou=Servers,dc=replaceddomainname,dc=com
S4 DN:
Filename: /var/lib/univention-connector/s4/1483428507.996386
30: UCS DN: cn=NAV,ou=Servers,dc=replaceddomainname,dc=com
S4 DN:
Filename: /var/lib/univention-connector/s4/1483428508.247584
<<<<<THIS IS OVER 114 entries now>>>>>>
S4 rejected
1: S4 DN: CN=NAV,CN=Computers,dc=replaceddomainname,dc=com
UCS DN: <not found>
2: S4 DN: CN=NAV,OU=Servers,dc=replaceddomainname,dc=com
UCS DN: <not found>
last synced USN: 99143
<<<<<<<<THIS STAYS AT 2 entries>>>>>>>>>>
[/code]
Extract from connector-s4.log showing “object is currently locked” messages and tracebacks:
[code]03.01.2017 17:50:54,308 LDAP (PROCESS): sync from ucs: Resync rejected file: /var/lib/univention-connector/s4/1483429736.119085 [839/4854]
03.01.2017 17:50:54,316 LDAP (PROCESS): sync from ucs: [windowscomputer] [ add] CN=NAV,OU=Servers,dc=replaceddomainname,dc=com
03.01.2017 17:50:54,319 LDAP (PROCESS): Unable to sync CN=NAV,OU=Servers,dc=replaceddomainname,dc=com (GUID: 21c8f2e0-d6be-4bd9-b3b6-5351ac3c5315). The object is currently locked.
03.01.2017 17:50:54,324 LDAP (PROCESS): sync from ucs: Resync rejected file: /var/lib/univention-connector/s4/1483429736.478003
03.01.2017 17:50:54,330 LDAP (PROCESS): sync from ucs: [windowscomputer] [ delete] CN=NAV,OU=Servers,dc=replaceddomainname,dc=com
03.01.2017 17:50:54,333 LDAP (PROCESS): Unable to sync CN=NAV,OU=Servers,dc=replaceddomainname,dc=com (GUID: 21c8f2e0-d6be-4bd9-b3b6-5351ac3c5315). The object is currently locked.
03.01.2017 17:50:54,337 LDAP (PROCESS): sync from ucs: Resync rejected file: /var/lib/univention-connector/s4/1483429795.506436
03.01.2017 17:50:54,345 LDAP (PROCESS): sync from ucs: [windowscomputer] [ add] CN=NAV,OU=Servers,dc=replaceddomainname,dc=com
03.01.2017 17:50:54,347 LDAP (PROCESS): Unable to sync CN=NAV,OU=Servers,dc=replaceddomainname,dc=com (GUID: 21c8f2e0-d6be-4bd9-b3b6-5351ac3c5315). The object is currently locked.
03.01.2017 17:50:54,352 LDAP (PROCESS): sync from ucs: Resync rejected file: /var/lib/univention-connector/s4/1483429795.530687
03.01.2017 17:50:54,364 LDAP (PROCESS): sync from ucs: [windowscomputer] [ modify] CN=NAV,OU=Servers,dc=replaceddomainname,dc=com
03.01.2017 17:50:54,367 LDAP (PROCESS): Unable to sync CN=NAV,OU=Servers,dc=replaceddomainname,dc=com (GUID: 21c8f2e0-d6be-4bd9-b3b6-5351ac3c5315). The object is currently locked.
03.01.2017 17:50:54,373 LDAP (PROCESS): sync from ucs: Resync rejected file: /var/lib/univention-connector/s4/1483429795.911385
03.01.2017 17:50:54,380 LDAP (PROCESS): sync from ucs: [windowscomputer] [ delete] CN=NAV,OU=Servers,dc=replaceddomainname,dc=com
03.01.2017 17:50:54,382 LDAP (PROCESS): Unable to sync CN=NAV,OU=Servers,dc=replaceddomainname,dc=com (GUID: 21c8f2e0-d6be-4bd9-b3b6-5351ac3c5315). The object is currently locked.
03.01.2017 17:50:54,388 LDAP (PROCESS): sync to ucs: Resync rejected dn: CN=NAV,CN=Computers,dc=replaceddomainname,dc=com
03.01.2017 17:50:54,398 LDAP (PROCESS): sync to ucs: [windowscomputer] [ add] cn=NAV,OU=Servers,dc=replaceddomainname,dc=com
03.01.2017 17:50:54,685 LDAP (ERROR ): Unknown Exception during sync_to_ucs
03.01.2017 17:50:54,686 LDAP (ERROR ): Traceback (most recent call last):
File “/usr/lib/pymodules/python2.7/univention/s4connector/init.py”, line 1475, in sync_to_ucs
result = self.add_in_ucs(property_type, object, module, position)
File “/usr/lib/pymodules/python2.7/univention/s4connector/init.py”, line 1262, in add_in_ucs
return ucs_object.create() and self.__modify_custom_attributes(property_type, object, ucs_object, module, position)
File “/usr/lib/pymodules/python2.7/univention/admin/handlers/init.py”, line 305, in create
return self._create()
File “/usr/lib/pymodules/python2.7/univention/admin/handlers/init.py”, line 764, in _create
self._ldap_post_create()
File “/usr/lib/pymodules/python2.7/univention/admin/handlers/computers/windows.py”, line 478, in _ldap_post_create
univention.admin.handlers.simpleComputer.update_groups(self)
File “/usr/lib/pymodules/python2.7/univention/admin/handlers/init.py”, line 2454, in update_groups
groupObject.modify(ignore_license=1)
File “/usr/lib/pymodules/python2.7/univention/admin/handlers/init.py”, line 316, in modify
return self._modify(modify_childs, ignore_license=ignore_license)
File “/usr/lib/pymodules/python2.7/univention/admin/handlers/init.py”, line 810, in _modify
self.lo.modify(self.dn, ml, ignore_license=ignore_license)
File “/usr/lib/pymodules/python2.7/univention/admin/uldap.py”, line 403, in modify
raise univention.admin.uexceptions.ldapError(_err2str(msg), original_exception=msg)
ldapError: Type or value exists: modify/add: memberUid: value #0 already exists
03.01.2017 17:50:54,687 LDAP (PROCESS): sync to ucs: Resync rejected dn: CN=NAV,OU=Servers,dc=replaceddomainname,dc=com
03.01.2017 17:50:54,698 LDAP (PROCESS): sync to ucs: [windowscomputer] [ add] cn=NAV,OU=Servers,dc=replaceddomainname,dc=com
03.01.2017 17:50:54,932 LDAP (ERROR ): Unknown Exception during sync_to_ucs
03.01.2017 17:50:54,933 LDAP (ERROR ): Traceback (most recent call last):
File “/usr/lib/pymodules/python2.7/univention/s4connector/init.py”, line 1475, in sync_to_ucs
result = self.add_in_ucs(property_type, object, module, position)
File “/usr/lib/pymodules/python2.7/univention/s4connector/init.py”, line 1262, in add_in_ucs
return ucs_object.create() and self.__modify_custom_attributes(property_type, object, ucs_object, module, position)
File “/usr/lib/pymodules/python2.7/univention/admin/handlers/init.py”, line 305, in create
return self._create()
File “/usr/lib/pymodules/python2.7/univention/admin/handlers/init.py”, line 764, in _create
self._ldap_post_create()
File “/usr/lib/pymodules/python2.7/univention/admin/handlers/computers/windows.py”, line 478, in _ldap_post_create
univention.admin.handlers.simpleComputer.update_groups(self)
File “/usr/lib/pymodules/python2.7/univention/admin/handlers/init.py”, line 2454, in update_groups
groupObject.modify(ignore_license=1)
File “/usr/lib/pymodules/python2.7/univention/admin/handlers/init.py”, line 316, in modify
return self._modify(modify_childs, ignore_license=ignore_license)
File “/usr/lib/pymodules/python2.7/univention/admin/handlers/init.py”, line 810, in _modify
self.lo.modify(self.dn, ml, ignore_license=ignore_license)
File “/usr/lib/pymodules/python2.7/univention/admin/uldap.py”, line 403, in modify
raise univention.admin.uexceptions.ldapError(_err2str(msg), original_exception=msg)
ldapError: Type or value exists: modify/add: memberUid: value #0 already exists
03.01.2017 17:50:59,960 LDAP (PROCESS): sync from ucs: [windowscomputer] [ add] CN=NAV,OU=Servers,dc=replaceddomainname,dc=com
03.01.2017 17:50:59,962 LDAP (PROCESS): Unable to sync CN=NAV,OU=Servers,dc=replaceddomainname,dc=com (GUID: 21c8f2e0-d6be-4bd9-b3b6-5351ac3c5315). The object is currently locked.
03.01.2017 17:50:59,974 LDAP (PROCESS): sync from ucs: [windowscomputer] [ modify] CN=NAV,OU=Servers,dc=replaceddomainname,dc=com
03.01.2017 17:50:59,976 LDAP (PROCESS): Unable to sync CN=NAV,OU=Servers,dc=replaceddomainname,dc=com (GUID: 21c8f2e0-d6be-4bd9-b3b6-5351ac3c5315). The object is currently locked.
03.01.2017 17:50:59,985 LDAP (PROCESS): sync from ucs: [windowscomputer] [ delete] CN=NAV,OU=Servers,dc=replaceddomainname,dc=com
[/code]
Any ideas on how to stop the S4-connector piling up the sync errors? What is causing the object currently locked message, and can I unlock it manually?