UCS s4connector list rejected

We created almost OU in the GUI of RSAT, and we don’t know why the value sometimes is lowercase and sometimes is uppercase. I don’t know why and wonder if this is the reason which causes error as below:

root@ucs-1:~# univention-s4connector-list-rejected

UCS rejected


S4 rejected

    1:    S4 DN: CN=cnmb.tonghop,OU=CNMB.TONGHOP,OU=CNMB,OU=mycompany,DC=mycompany,DC=log
         UCS DN: cn=cnmb.tonghop,ou=cnmb.tonghop,ou=cnmb,ou=mycompany,dc=mycompany,dc=log
    2:    S4 DN: DC=HAN-TONGHOP01,DC=mycompany.log,CN=MicrosoftDNS,DC=DomainDnsZones,DC=mycompany,DC=log
         UCS DN: relativedomainname=han-tonghop01,zonename=mycompany.log,cn=dns,dc=mycompany,dc=log
    3:    S4 DN: DC=HAN-SALES02L,DC=mycompany.log,CN=MicrosoftDNS,DC=DomainDnsZones,DC=mycompany,DC=log
         UCS DN: relativedomainname=han-sales02l,zonename=mycompany.log,cn=dns,dc=mycompany,dc=log
    4:    S4 DN: DC=HAN-VCKT01L,DC=mycompany.log,CN=MicrosoftDNS,DC=DomainDnsZones,DC=mycompany,DC=log
         UCS DN: relativedomainname=han-vckt01l,zonename=mycompany.log,cn=dns,dc=mycompany,dc=log

        last synced USN: 289939

Pls help us to solve this. Tks

Hey,

please take a look at the corresponding log file, /var/log/univention/connector-s4.log, and show the actual error messages relating to the objects.

Kind regards
mosu

OMG this log file is 2GB size, below is some last lines of the log file:

22.01.2018 21:52:59,241 LDAP        (PROCESS): sync to ucs: Resync rejected dn: DC=HAN-TONGHOP01,DC=mycompany.xxx,CN=MicrosoftDNS,DC=DomainDnsZones,dc=mycompany,dc=xxx
22.01.2018 21:52:59,244 LDAP        (PROCESS): sync to ucs:   [           dns] [    modify] relativedomainname=han-tonghop01,zonename=mycompany.xxx,cn=dns,dc=mycompany,dc=xxx
22.01.2018 21:52:59,247 LDAP        (ERROR  ): Unknown Exception during sync_to_ucs
22.01.2018 21:52:59,247 LDAP        (ERROR  ): Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/univention/s4connector/__init__.py", line 1477, in sync_to_ucs
    result = self.property[property_type].ucs_sync_function(self, property_type, object)
  File "/usr/lib/pymodules/python2.7/univention/s4connector/s4/dns.py", line 1638, in con2ucs
    ucs_host_record_create(s4connector, object)
  File "/usr/lib/pymodules/python2.7/univention/s4connector/s4/dns.py", line 979, in ucs_host_record_create
    newRecord.modify()
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 317, in modify
    return self._modify(modify_childs, ignore_license=ignore_license)
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 813, in _modify
    self.lo.modify(self.dn, ml, ignore_license=ignore_license)
  File "/usr/lib/pymodules/python2.7/univention/admin/uldap.py", line 471, in modify
    raise univention.admin.uexceptions.ldapError(_err2str(msg), original_exception=msg)
ldapError: Type or value exists: aRecord: value #0 provided more than once

22.01.2018 21:52:59,247 LDAP        (PROCESS): sync to ucs: Resync rejected dn: DC=HAN-VCKT01L,DC=mycompany.xxx,CN=MicrosoftDNS,DC=DomainDnsZones,dc=mycompany,dc=xxx
22.01.2018 21:52:59,251 LDAP        (PROCESS): sync to ucs:   [           dns] [    modify] relativedomainname=han-vckt01l,zonename=mycompany.xxx,cn=dns,dc=mycompany,dc=xxx
22.01.2018 21:52:59,284 LDAP        (ERROR  ): Unknown Exception during sync_to_ucs
22.01.2018 21:52:59,284 LDAP        (ERROR  ): Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/univention/s4connector/__init__.py", line 1477, in sync_to_ucs
    result = self.property[property_type].ucs_sync_function(self, property_type, object)
  File "/usr/lib/pymodules/python2.7/univention/s4connector/s4/dns.py", line 1638, in con2ucs
    ucs_host_record_create(s4connector, object)
  File "/usr/lib/pymodules/python2.7/univention/s4connector/s4/dns.py", line 979, in ucs_host_record_create
    newRecord.modify()
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 317, in modify
    return self._modify(modify_childs, ignore_license=ignore_license)
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 813, in _modify
    self.lo.modify(self.dn, ml, ignore_license=ignore_license)
  File "/usr/lib/pymodules/python2.7/univention/admin/uldap.py", line 471, in modify
    raise univention.admin.uexceptions.ldapError(_err2str(msg), original_exception=msg)
ldapError: Type or value exists: aRecord: value #0 provided more than once

22.01.2018 21:52:59,284 LDAP        (PROCESS): sync to ucs: Resync rejected dn: DC=HAN-SALES02L,DC=mycompany.xxx,CN=MicrosoftDNS,DC=DomainDnsZones,dc=mycompany,dc=xxx
22.01.2018 21:52:59,289 LDAP        (PROCESS): sync to ucs:   [           dns] [    modify] relativedomainname=han-sales02l,zonename=mycompany.xxx,cn=dns,dc=mycompany,dc=xxx
22.01.2018 21:52:59,298 LDAP        (ERROR  ): Unknown Exception during sync_to_ucs
22.01.2018 21:52:59,298 LDAP        (ERROR  ): Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/univention/s4connector/__init__.py", line 1477, in sync_to_ucs
    result = self.property[property_type].ucs_sync_function(self, property_type, object)
  File "/usr/lib/pymodules/python2.7/univention/s4connector/s4/dns.py", line 1638, in con2ucs
    ucs_host_record_create(s4connector, object)
  File "/usr/lib/pymodules/python2.7/univention/s4connector/s4/dns.py", line 979, in ucs_host_record_create
    newRecord.modify()
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 317, in modify
    return self._modify(modify_childs, ignore_license=ignore_license)
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 813, in _modify
    self.lo.modify(self.dn, ml, ignore_license=ignore_license)
  File "/usr/lib/pymodules/python2.7/univention/admin/uldap.py", line 471, in modify
    raise univention.admin.uexceptions.ldapError(_err2str(msg), original_exception=msg)
ldapError: Type or value exists: aRecord: value #0 provided more than once

22.01.2018 21:53:55,28 LDAP        (PROCESS): sync to ucs: Resync rejected dn: DC=HAN-TONGHOP01,DC=mycompany.xxx,CN=MicrosoftDNS,DC=DomainDnsZones,dc=mycompany,dc=xxx
22.01.2018 21:53:55,31 LDAP        (PROCESS): sync to ucs:   [           dns] [    modify] relativedomainname=han-tonghop01,zonename=mycompany.xxx,cn=dns,dc=mycompany,dc=xxx
22.01.2018 21:53:55,34 LDAP        (ERROR  ): Unknown Exception during sync_to_ucs
22.01.2018 21:53:55,34 LDAP        (ERROR  ): Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/univention/s4connector/__init__.py", line 1477, in sync_to_ucs
    result = self.property[property_type].ucs_sync_function(self, property_type, object)
  File "/usr/lib/pymodules/python2.7/univention/s4connector/s4/dns.py", line 1638, in con2ucs
    ucs_host_record_create(s4connector, object)
  File "/usr/lib/pymodules/python2.7/univention/s4connector/s4/dns.py", line 979, in ucs_host_record_create
    newRecord.modify()
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 317, in modify
    return self._modify(modify_childs, ignore_license=ignore_license)
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 813, in _modify
    self.lo.modify(self.dn, ml, ignore_license=ignore_license)
  File "/usr/lib/pymodules/python2.7/univention/admin/uldap.py", line 471, in modify
    raise univention.admin.uexceptions.ldapError(_err2str(msg), original_exception=msg)
ldapError: Type or value exists: aRecord: value #0 provided more than once

22.01.2018 21:53:55,34 LDAP        (PROCESS): sync to ucs: Resync rejected dn: DC=HAN-VCKT01L,DC=mycompany.xxx,CN=MicrosoftDNS,DC=DomainDnsZones,dc=mycompany,dc=xxx
22.01.2018 21:53:55,39 LDAP        (PROCESS): sync to ucs:   [           dns] [    modify] relativedomainname=han-vckt01l,zonename=mycompany.xxx,cn=dns,dc=mycompany,dc=xxx
22.01.2018 21:53:55,48 LDAP        (ERROR  ): Unknown Exception during sync_to_ucs
22.01.2018 21:53:55,49 LDAP        (ERROR  ): Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/univention/s4connector/__init__.py", line 1477, in sync_to_ucs
    result = self.property[property_type].ucs_sync_function(self, property_type, object)
  File "/usr/lib/pymodules/python2.7/univention/s4connector/s4/dns.py", line 1638, in con2ucs
    ucs_host_record_create(s4connector, object)
  File "/usr/lib/pymodules/python2.7/univention/s4connector/s4/dns.py", line 979, in ucs_host_record_create
    newRecord.modify()
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 317, in modify
    return self._modify(modify_childs, ignore_license=ignore_license)
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 813, in _modify
    self.lo.modify(self.dn, ml, ignore_license=ignore_license)
  File "/usr/lib/pymodules/python2.7/univention/admin/uldap.py", line 471, in modify
    raise univention.admin.uexceptions.ldapError(_err2str(msg), original_exception=msg)
ldapError: Type or value exists: aRecord: value #0 provided more than once

22.01.2018 21:53:55,49 LDAP        (PROCESS): sync to ucs: Resync rejected dn: DC=HAN-SALES02L,DC=mycompany.xxx,CN=MicrosoftDNS,DC=DomainDnsZones,dc=mycompany,dc=xxx
22.01.2018 21:53:55,53 LDAP        (PROCESS): sync to ucs:   [           dns] [    modify] relativedomainname=han-sales02l,zonename=mycompany.xxx,cn=dns,dc=mycompany,dc=xxx
22.01.2018 21:53:55,63 LDAP        (ERROR  ): Unknown Exception during sync_to_ucs
22.01.2018 21:53:55,63 LDAP        (ERROR  ): Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/univention/s4connector/__init__.py", line 1477, in sync_to_ucs
    result = self.property[property_type].ucs_sync_function(self, property_type, object)
  File "/usr/lib/pymodules/python2.7/univention/s4connector/s4/dns.py", line 1638, in con2ucs
    ucs_host_record_create(s4connector, object)
  File "/usr/lib/pymodules/python2.7/univention/s4connector/s4/dns.py", line 979, in ucs_host_record_create
    newRecord.modify()
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 317, in modify
    return self._modify(modify_childs, ignore_license=ignore_license)
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 813, in _modify
    self.lo.modify(self.dn, ml, ignore_license=ignore_license)
  File "/usr/lib/pymodules/python2.7/univention/admin/uldap.py", line 471, in modify
    raise univention.admin.uexceptions.ldapError(_err2str(msg), original_exception=msg)
ldapError: Type or value exists: aRecord: value #0 provided more than once

22.01.2018 21:54:50,881 LDAP        (PROCESS): sync to ucs: Resync rejected dn: DC=HAN-TONGHOP01,DC=mycompany.xxx,CN=MicrosoftDNS,DC=DomainDnsZones,dc=mycompany,dc=xxx
22.01.2018 21:54:50,884 LDAP        (PROCESS): sync to ucs:   [           dns] [    modify] relativedomainname=han-tonghop01,zonename=mycompany.xxx,cn=dns,dc=mycompany,dc=xxx
22.01.2018 21:54:50,887 LDAP        (ERROR  ): Unknown Exception during sync_to_ucs
22.01.2018 21:54:50,887 LDAP        (ERROR  ): Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/univention/s4connector/__init__.py", line 1477, in sync_to_ucs
    result = self.property[property_type].ucs_sync_function(self, property_type, object)
  File "/usr/lib/pymodules/python2.7/univention/s4connector/s4/dns.py", line 1638, in con2ucs
    ucs_host_record_create(s4connector, object)
  File "/usr/lib/pymodules/python2.7/univention/s4connector/s4/dns.py", line 979, in ucs_host_record_create
    newRecord.modify()
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 317, in modify
    return self._modify(modify_childs, ignore_license=ignore_license)
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 813, in _modify
    self.lo.modify(self.dn, ml, ignore_license=ignore_license)
  File "/usr/lib/pymodules/python2.7/univention/admin/uldap.py", line 471, in modify
    raise univention.admin.uexceptions.ldapError(_err2str(msg), original_exception=msg)
ldapError: Type or value exists: aRecord: value #0 provided more than once

22.01.2018 21:54:50,887 LDAP        (PROCESS): sync to ucs: Resync rejected dn: DC=HAN-VCKT01L,DC=mycompany.xxx,CN=MicrosoftDNS,DC=DomainDnsZones,dc=mycompany,dc=xxx
22.01.2018 21:54:50,891 LDAP        (PROCESS): sync to ucs:   [           dns] [    modify] relativedomainname=han-vckt01l,zonename=mycompany.xxx,cn=dns,dc=mycompany,dc=xxx
22.01.2018 21:54:50,910 LDAP        (ERROR  ): Unknown Exception during sync_to_ucs
22.01.2018 21:54:50,910 LDAP        (ERROR  ): Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/univention/s4connector/__init__.py", line 1477, in sync_to_ucs
    result = self.property[property_type].ucs_sync_function(self, property_type, object)
  File "/usr/lib/pymodules/python2.7/univention/s4connector/s4/dns.py", line 1638, in con2ucs
    ucs_host_record_create(s4connector, object)
  File "/usr/lib/pymodules/python2.7/univention/s4connector/s4/dns.py", line 979, in ucs_host_record_create
    newRecord.modify()
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 317, in modify
    return self._modify(modify_childs, ignore_license=ignore_license)
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 813, in _modify
    self.lo.modify(self.dn, ml, ignore_license=ignore_license)
  File "/usr/lib/pymodules/python2.7/univention/admin/uldap.py", line 471, in modify
    raise univention.admin.uexceptions.ldapError(_err2str(msg), original_exception=msg)
ldapError: Type or value exists: aRecord: value #0 provided more than once

22.01.2018 21:54:50,910 LDAP        (PROCESS): sync to ucs: Resync rejected dn: DC=HAN-SALES02L,DC=mycompany.xxx,CN=MicrosoftDNS,DC=DomainDnsZones,dc=mycompany,dc=xxx
22.01.2018 21:54:50,914 LDAP        (PROCESS): sync to ucs:   [           dns] [    modify] relativedomainname=han-sales02l,zonename=mycompany.xxx,cn=dns,dc=mycompany,dc=xxx
22.01.2018 21:54:50,941 LDAP        (ERROR  ): Unknown Exception during sync_to_ucs
22.01.2018 21:54:50,941 LDAP        (ERROR  ): Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/univention/s4connector/__init__.py", line 1477, in sync_to_ucs
    result = self.property[property_type].ucs_sync_function(self, property_type, object)
  File "/usr/lib/pymodules/python2.7/univention/s4connector/s4/dns.py", line 1638, in con2ucs
    ucs_host_record_create(s4connector, object)
  File "/usr/lib/pymodules/python2.7/univention/s4connector/s4/dns.py", line 979, in ucs_host_record_create
    newRecord.modify()
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 317, in modify
    return self._modify(modify_childs, ignore_license=ignore_license)
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 813, in _modify
    self.lo.modify(self.dn, ml, ignore_license=ignore_license)
  File "/usr/lib/pymodules/python2.7/univention/admin/uldap.py", line 471, in modify
    raise univention.admin.uexceptions.ldapError(_err2str(msg), original_exception=msg)
ldapError: Type or value exists: aRecord: value #0 provided more than once

22.01.2018 21:55:46,745 LDAP        (PROCESS): sync to ucs: Resync rejected dn: DC=HAN-TONGHOP01,DC=mycompany.xxx,CN=MicrosoftDNS,DC=DomainDnsZones,dc=mycompany,dc=xxx
22.01.2018 21:55:46,748 LDAP        (PROCESS): sync to ucs:   [           dns] [    modify] relativedomainname=han-tonghop01,zonename=mycompany.xxx,cn=dns,dc=mycompany,dc=xxx
22.01.2018 21:55:46,751 LDAP        (ERROR  ): Unknown Exception during sync_to_ucs
22.01.2018 21:55:46,751 LDAP        (ERROR  ): Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/univention/s4connector/__init__.py", line 1477, in sync_to_ucs
    result = self.property[property_type].ucs_sync_function(self, property_type, object)
  File "/usr/lib/pymodules/python2.7/univention/s4connector/s4/dns.py", line 1638, in con2ucs
    ucs_host_record_create(s4connector, object)
  File "/usr/lib/pymodules/python2.7/univention/s4connector/s4/dns.py", line 979, in ucs_host_record_create
    newRecord.modify()
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 317, in modify
    return self._modify(modify_childs, ignore_license=ignore_license)
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 813, in _modify
    self.lo.modify(self.dn, ml, ignore_license=ignore_license)
  File "/usr/lib/pymodules/python2.7/univention/admin/uldap.py", line 471, in modify
    raise univention.admin.uexceptions.ldapError(_err2str(msg), original_exception=msg)
ldapError: Type or value exists: aRecord: value #0 provided more than once

22.01.2018 21:55:46,751 LDAP        (PROCESS): sync to ucs: Resync rejected dn: DC=HAN-VCKT01L,DC=mycompany.xxx,CN=MicrosoftDNS,DC=DomainDnsZones,dc=mycompany,dc=xxx
22.01.2018 21:55:46,755 LDAP        (PROCESS): sync to ucs:   [           dns] [    modify] relativedomainname=han-vckt01l,zonename=mycompany.xxx,cn=dns,dc=mycompany,dc=xxx
22.01.2018 21:55:46,764 LDAP        (ERROR  ): Unknown Exception during sync_to_ucs
22.01.2018 21:55:46,765 LDAP        (ERROR  ): Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/univention/s4connector/__init__.py", line 1477, in sync_to_ucs
    result = self.property[property_type].ucs_sync_function(self, property_type, object)
  File "/usr/lib/pymodules/python2.7/univention/s4connector/s4/dns.py", line 1638, in con2ucs
    ucs_host_record_create(s4connector, object)
  File "/usr/lib/pymodules/python2.7/univention/s4connector/s4/dns.py", line 979, in ucs_host_record_create
    newRecord.modify()
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 317, in modify
    return self._modify(modify_childs, ignore_license=ignore_license)
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 813, in _modify
    self.lo.modify(self.dn, ml, ignore_license=ignore_license)
  File "/usr/lib/pymodules/python2.7/univention/admin/uldap.py", line 471, in modify
    raise univention.admin.uexceptions.ldapError(_err2str(msg), original_exception=msg)
ldapError: Type or value exists: aRecord: value #0 provided more than once

22.01.2018 21:55:46,765 LDAP        (PROCESS): sync to ucs: Resync rejected dn: DC=HAN-SALES02L,DC=mycompany.xxx,CN=MicrosoftDNS,DC=DomainDnsZones,dc=mycompany,dc=xxx
22.01.2018 21:55:46,769 LDAP        (PROCESS): sync to ucs:   [           dns] [    modify] relativedomainname=han-sales02l,zonename=mycompany.xxx,cn=dns,dc=mycompany,dc=xxx
22.01.2018 21:55:46,779 LDAP        (ERROR  ): Unknown Exception during sync_to_ucs
22.01.2018 21:55:46,779 LDAP        (ERROR  ): Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/univention/s4connector/__init__.py", line 1477, in sync_to_ucs
    result = self.property[property_type].ucs_sync_function(self, property_type, object)
  File "/usr/lib/pymodules/python2.7/univention/s4connector/s4/dns.py", line 1638, in con2ucs
    ucs_host_record_create(s4connector, object)
  File "/usr/lib/pymodules/python2.7/univention/s4connector/s4/dns.py", line 979, in ucs_host_record_create
    newRecord.modify()
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 317, in modify
    return self._modify(modify_childs, ignore_license=ignore_license)
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 813, in _modify
    self.lo.modify(self.dn, ml, ignore_license=ignore_license)
  File "/usr/lib/pymodules/python2.7/univention/admin/uldap.py", line 471, in modify
    raise univention.admin.uexceptions.ldapError(_err2str(msg), original_exception=msg)
ldapError: Type or value exists: aRecord: value #0 provided more than once

22.01.2018 21:56:43,613 LDAP        (PROCESS): sync to ucs: Resync rejected dn: DC=HAN-TONGHOP01,DC=mycompany.xxx,CN=MicrosoftDNS,DC=DomainDnsZones,dc=mycompany,dc=xxx
22.01.2018 21:56:43,676 LDAP        (PROCESS): sync to ucs:   [           dns] [    modify] relativedomainname=han-tonghop01,zonename=mycompany.xxx,cn=dns,dc=mycompany,dc=xxx
22.01.2018 21:56:43,679 LDAP        (ERROR  ): Unknown Exception during sync_to_ucs
22.01.2018 21:56:43,822 LDAP        (ERROR  ): Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/univention/s4connector/__init__.py", line 1477, in sync_to_ucs
    result = self.property[property_type].ucs_sync_function(self, property_type, object)
  File "/usr/lib/pymodules/python2.7/univention/s4connector/s4/dns.py", line 1638, in con2ucs
    ucs_host_record_create(s4connector, object)
  File "/usr/lib/pymodules/python2.7/univention/s4connector/s4/dns.py", line 979, in ucs_host_record_create
    newRecord.modify()
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 317, in modify
    return self._modify(modify_childs, ignore_license=ignore_license)
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 813, in _modify
    self.lo.modify(self.dn, ml, ignore_license=ignore_license)
  File "/usr/lib/pymodules/python2.7/univention/admin/uldap.py", line 471, in modify
    raise univention.admin.uexceptions.ldapError(_err2str(msg), original_exception=msg)
ldapError: Type or value exists: aRecord: value #0 provided more than once

22.01.2018 21:56:43,822 LDAP        (PROCESS): sync to ucs: Resync rejected dn: DC=HAN-VCKT01L,DC=mycompany.xxx,CN=MicrosoftDNS,DC=DomainDnsZones,dc=mycompany,dc=xxx
22.01.2018 21:56:43,826 LDAP        (PROCESS): sync to ucs:   [           dns] [    modify] relativedomainname=han-vckt01l,zonename=mycompany.xxx,cn=dns,dc=mycompany,dc=xxx
22.01.2018 21:56:43,836 LDAP        (ERROR  ): Unknown Exception during sync_to_ucs
22.01.2018 21:56:43,836 LDAP        (ERROR  ): Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/univention/s4connector/__init__.py", line 1477, in sync_to_ucs
    result = self.property[property_type].ucs_sync_function(self, property_type, object)
  File "/usr/lib/pymodules/python2.7/univention/s4connector/s4/dns.py", line 1638, in con2ucs
    ucs_host_record_create(s4connector, object)
  File "/usr/lib/pymodules/python2.7/univention/s4connector/s4/dns.py", line 979, in ucs_host_record_create
    newRecord.modify()
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 317, in modify
    return self._modify(modify_childs, ignore_license=ignore_license)
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 813, in _modify
    self.lo.modify(self.dn, ml, ignore_license=ignore_license)
  File "/usr/lib/pymodules/python2.7/univention/admin/uldap.py", line 471, in modify
    raise univention.admin.uexceptions.ldapError(_err2str(msg), original_exception=msg)
ldapError: Type or value exists: aRecord: value #0 provided more than once

22.01.2018 21:56:43,836 LDAP        (PROCESS): sync to ucs: Resync rejected dn: DC=HAN-SALES02L,DC=mycompany.xxx,CN=MicrosoftDNS,DC=DomainDnsZones,dc=mycompany,dc=xxx
22.01.2018 21:56:43,841 LDAP        (PROCESS): sync to ucs:   [           dns] [    modify] relativedomainname=han-sales02l,zonename=mycompany.xxx,cn=dns,dc=mycompany,dc=xxx
22.01.2018 21:56:43,852 LDAP        (ERROR  ): Unknown Exception during sync_to_ucs
22.01.2018 21:56:43,852 LDAP        (ERROR  ): Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/univention/s4connector/__init__.py", line 1477, in sync_to_ucs
    result = self.property[property_type].ucs_sync_function(self, property_type, object)
  File "/usr/lib/pymodules/python2.7/univention/s4connector/s4/dns.py", line 1638, in con2ucs
    ucs_host_record_create(s4connector, object)
  File "/usr/lib/pymodules/python2.7/univention/s4connector/s4/dns.py", line 979, in ucs_host_record_create
    newRecord.modify()
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 317, in modify
    return self._modify(modify_childs, ignore_license=ignore_license)
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 813, in _modify
    self.lo.modify(self.dn, ml, ignore_license=ignore_license)
  File "/usr/lib/pymodules/python2.7/univention/admin/uldap.py", line 471, in modify
    raise univention.admin.uexceptions.ldapError(_err2str(msg), original_exception=msg)
ldapError: Type or value exists: aRecord: value #0 provided more than once

Thanks.

For the objects where the error message is Type of value exists: aRecord, I would try to remove the corresponding reject file and to re-sync the reject from the S4 side to the UCS side. This can be achieved with the following two commands:

/usr/share/univention-s4-connector/remove_s4_rejected.py  <object's S4 DN>
/usr/share/univention-s4-connector/resync_object_from_s4.py <object's S4 DN>

For example:

/usr/share/univention-s4-connector/remove_s4_rejected.py DC=HAN-VCKT01L,DC=mycompany.log,CN=MicrosoftDNS,DC=DomainDnsZones,DC=mycompany,DC=log
/usr/share/univention-s4-connector/resync_object_from_s4.py DC=HAN-VCKT01L,DC=mycompany.log,CN=MicrosoftDNS,DC=DomainDnsZones,DC=mycompany,DC=log

According to the log file, this applies to the following objects: DC=HAN-TONGHOP01, DC=HAN-VCKT01L and DC=HAN-SALES02L.

I suggest these steps because the entry on the UCS side seems to be correct already — no need to add another IP. So what I’m basically telling the system with these two commands is “ignore that change, and just make sure that the UCS side looks like the S4 side”.

Read more about handling S4 connector rejects in this support database article.

The log file excerpt you’ve shown doesn’t contain anything for the first reject, though, CN=cnmb.tonghop. Can you get me log entries and error messages for that one, too? Thanks.

Kind regards,
mosu

Hi @Moritz_Bunkus
Below is someline which related to CN=cnmb.tonghop which you requested:

17.01.2018 01:32:13,372 LDAP        (PROCESS): sync to ucs: Resync rejected dn: CN=SGN-GIAODICH01-,CN=Computers,DC=mycompany,DC=xxx
17.01.2018 01:32:13,375 LDAP        (PROCESS): sync to ucs:   [windowscomputer] [       add] cn=SGN-GIAODICH01-,OU=GIAODICH,OU=MAYTINH,OU=mycompany,dc=mycompany,dc=xxx
17.01.2018 01:32:13,398 LDAP        (ERROR  ): InvalidSyntax: Windows workstation/server name: Value may not contain other than numbers, letters and dots! (cn=SGN-GIAODICH01-,OU=GIAODICH,OU=MAYTINH,OU=mycompany,dc=mycompany,dc=xxx)
17.01.2018 01:32:13,398 LDAP        (PROCESS): sync to ucs: Resync rejected dn: CN=SGN-GIAODICH01-,OU=GIAODICH,OU=MAYTINH,OU=mycompany,DC=mycompany,DC=xxx
17.01.2018 01:32:13,401 LDAP        (PROCESS): sync to ucs:   [windowscomputer] [       add] cn=SGN-GIAODICH01-,OU=GIAODICH,OU=MAYTINH,OU=mycompany,dc=mycompany,dc=xxx
17.01.2018 01:32:13,421 LDAP        (ERROR  ): InvalidSyntax: Windows workstation/server name: Value may not contain other than numbers, letters and dots! (cn=SGN-GIAODICH01-,OU=GIAODICH,OU=MAYTINH,OU=mycompany,dc=mycompany,dc=xxx)
17.01.2018 01:32:13,421 LDAP        (PROCESS): sync to ucs: Resync rejected dn: CN=cnmb.tonghop,OU=CNMB.TONGHOP,OU=CNMB,OU=mycompany,DC=mycompany,DC=xxx
17.01.2018 01:32:13,424 LDAP        (PROCESS): sync to ucs:   [         group] [    modify] cn=cnmb.tonghop,ou=cnmb.tonghop,ou=cnmb,ou=mycompany,dc=mycompany,dc=xxx
17.01.2018 01:32:13,474 LDAP        (PROCESS): Unable to sync cn=cnmb.tonghop,ou=cnmb.tonghop,ou=cnmb,ou=mycompany,dc=mycompany,dc=xxx (UUID: 83d39934-e87a-1036-9fbe-c37cbc672f53). The object is currently locked.
17.01.2018 01:32:13,474 LDAP        (PROCESS): sync to ucs: Resync rejected dn: DC=HAN-VCKT01L,DC=mycompany.log,CN=MicrosoftDNS,DC=DomainDnsZones,DC=mycompany,DC=xxx
17.01.2018 01:32:13,478 LDAP        (PROCESS): sync to ucs:   [           dns] [    modify] relativedomainname=han-vckt01l,zonename=mycompany.log,cn=dns,dc=mycompany,dc=xxx
17.01.2018 01:32:13,487 LDAP        (ERROR  ): Unknown Exception during sync_to_ucs
17.01.2018 01:32:13,487 LDAP        (ERROR  ): Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/univention/s4connector/__init__.py", line 1477, in sync_to_ucs
    result = self.property[property_type].ucs_sync_function(self, property_type, object)
  File "/usr/lib/pymodules/python2.7/univention/s4connector/s4/dns.py", line 1638, in con2ucs
    ucs_host_record_create(s4connector, object)
  File "/usr/lib/pymodules/python2.7/univention/s4connector/s4/dns.py", line 979, in ucs_host_record_create
    newRecord.modify()
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 317, in modify
    return self._modify(modify_childs, ignore_license=ignore_license)
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 813, in _modify
    self.lo.modify(self.dn, ml, ignore_license=ignore_license)
  File "/usr/lib/pymodules/python2.7/univention/admin/uldap.py", line 471, in modify
    raise univention.admin.uexceptions.ldapError(_err2str(msg), original_exception=msg)
ldapError: Type or value exists: aRecord: value #523 provided more than once

17.01.2018 01:32:13,487 LDAP        (PROCESS): sync to ucs: Resync rejected dn: DC=HAN-TONGHOP01,DC=mycompany.log,CN=MicrosoftDNS,DC=DomainDnsZones,DC=mycompany,DC=xxx
17.01.2018 01:32:13,490 LDAP        (PROCESS): sync to ucs:   [           dns] [    modify] relativedomainname=han-tonghop01,zonename=mycompany.log,cn=dns,dc=mycompany,dc=xxx
17.01.2018 01:32:13,492 LDAP        (ERROR  ): Unknown Exception during sync_to_ucs
17.01.2018 01:32:13,492 LDAP        (ERROR  ): Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/univention/s4connector/__init__.py", line 1477, in sync_to_ucs
    result = self.property[property_type].ucs_sync_function(self, property_type, object)
  File "/usr/lib/pymodules/python2.7/univention/s4connector/s4/dns.py", line 1638, in con2ucs
    ucs_host_record_create(s4connector, object)
  File "/usr/lib/pymodules/python2.7/univention/s4connector/s4/dns.py", line 979, in ucs_host_record_create
    newRecord.modify()
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 317, in modify
    return self._modify(modify_childs, ignore_license=ignore_license)
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 813, in _modify
    self.lo.modify(self.dn, ml, ignore_license=ignore_license)
  File "/usr/lib/pymodules/python2.7/univention/admin/uldap.py", line 471, in modify
    raise univention.admin.uexceptions.ldapError(_err2str(msg), original_exception=msg)
ldapError: Type or value exists: aRecord: value #40 provided more than once

17.01.2018 01:32:13,492 LDAP        (PROCESS): sync to ucs: Resync rejected dn: DC=HAN-SALES02L,DC=mycompany.log,CN=MicrosoftDNS,DC=DomainDnsZones,DC=mycompany,DC=xxx
17.01.2018 01:32:13,497 LDAP        (PROCESS): sync to ucs:   [           dns] [    modify] relativedomainname=han-sales02l,zonename=mycompany.log,cn=dns,dc=mycompany,dc=xxx
17.01.2018 01:32:13,506 LDAP        (ERROR  ): Unknown Exception during sync_to_ucs
17.01.2018 01:32:13,506 LDAP        (ERROR  ): Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/univention/s4connector/__init__.py", line 1477, in sync_to_ucs
    result = self.property[property_type].ucs_sync_function(self, property_type, object)
  File "/usr/lib/pymodules/python2.7/univention/s4connector/s4/dns.py", line 1638, in con2ucs
    ucs_host_record_create(s4connector, object)
  File "/usr/lib/pymodules/python2.7/univention/s4connector/s4/dns.py", line 979, in ucs_host_record_create
    newRecord.modify()
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 317, in modify
    return self._modify(modify_childs, ignore_license=ignore_license)
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 813, in _modify
    self.lo.modify(self.dn, ml, ignore_license=ignore_license)
  File "/usr/lib/pymodules/python2.7/univention/admin/uldap.py", line 471, in modify
    raise univention.admin.uexceptions.ldapError(_err2str(msg), original_exception=msg)
ldapError: Type or value exists: aRecord: value #546 provided more than once

17.01.2018 01:33:09,251 LDAP        (PROCESS): sync from ucs:   Resync rejected file: /var/lib/univention-connector/s4/1499406290.050326
17.01.2018 01:33:09,254 LDAP        (PROCESS): sync from ucs: [         group] [    modify] cn=CNMB.TOCHUC,ou=CNMN.TOCHUC,ou=CNMB,ou=mycompany,DC=mycompany,DC=xxx
17.01.2018 01:33:09,288 LDAP        (ERROR  ): sync_from_ucs: traceback during add object: cn=CNMB.TOCHUC,ou=CNMN.TOCHUC,ou=CNMB,ou=mycompany,DC=mycompany,DC=xxx
17.01.2018 01:33:09,288 LDAP        (ERROR  ): sync_from_ucs: traceback due to addlist: [('objectClass', ['top', 'group']), ('sAMAccountName', [u'CNMB.TOCHUC']), ('groupType', [u'-2147483646']), (u'description', [u'CNMB.TOCHUC'])]
17.01.2018 01:33:09,292 LDAP        (WARNING): sync failed, saved as rejected
	/var/lib/univention-connector/s4/1499406290.050326
17.01.2018 01:33:09,292 LDAP        (WARNING): Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/univention/s4connector/__init__.py", line 843, in __sync_file_from_ucs
    if ((old_dn and not self.sync_from_ucs(key, object, premapped_ucs_dn, unicode(old_dn, 'utf8'), old, new)) or (not old_dn and not self.sync_from_ucs(key, object, premapped_ucs_dn, old_dn, old, new))):
  File "/usr/lib/pymodules/python2.7/univention/s4connector/s4/__init__.py", line 2420, in sync_from_ucs
    self.lo_s4.lo.add_ext_s(compatible_modstring(object['dn']), compatible_addlist(addlist), serverctrls=ctrls)  # FIXME encoding
  File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 187, in add_ext_s
    resp_type, resp_data, resp_msgid, resp_ctrls = self.result3(msgid,all=1,timeout=self.timeout)
  File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 476, in result3
    resp_ctrl_classes=resp_ctrl_classes
  File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 483, in result4
    ldap_result = self._ldap_call(self._l.result4,msgid,all,timeout,add_ctrls,add_intermediates,add_extop)
  File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 106, in _ldap_call
    result = func(*args,**kwargs)
NO_SUCH_OBJECT: {'info': '00002030: objectclass: Cannot add cn=CNMB.TOCHUC,ou=CNMN.TOCHUC,ou=CNMB,ou=mycompany,DC=mycompany,DC=xxx, parent does not exist!', 'desc': 'No such object'}

17.01.2018 01:33:09,292 LDAP        (PROCESS): sync to ucs: Resync rejected dn: CN=SGN-GIAODICH01-,CN=Computers,DC=mycompany,DC=xxx
17.01.2018 01:33:09,295 LDAP        (PROCESS): sync to ucs:   [windowscomputer] [       add] cn=SGN-GIAODICH01-,OU=GIAODICH,OU=MAYTINH,OU=mycompany,dc=mycompany,dc=xxx
17.01.2018 01:33:09,316 LDAP        (ERROR  ): InvalidSyntax: Windows workstation/server name: Value may not contain other than numbers, letters and dots! (cn=SGN-GIAODICH01-,OU=GIAODICH,OU=MAYTINH,OU=mycompany,dc=mycompany,dc=xxx)
17.01.2018 01:33:09,316 LDAP        (PROCESS): sync to ucs: Resync rejected dn: CN=SGN-GIAODICH01-,OU=GIAODICH,OU=MAYTINH,OU=mycompany,DC=mycompany,DC=xxx
17.01.2018 01:33:09,319 LDAP        (PROCESS): sync to ucs:   [windowscomputer] [       add] cn=SGN-GIAODICH01-,OU=GIAODICH,OU=MAYTINH,OU=mycompany,dc=mycompany,dc=xxx
17.01.2018 01:33:09,340 LDAP        (ERROR  ): InvalidSyntax: Windows workstation/server name: Value may not contain other than numbers, letters and dots! (cn=SGN-GIAODICH01-,OU=GIAODICH,OU=MAYTINH,OU=mycompany,dc=mycompany,dc=xxx)
17.01.2018 01:33:09,340 LDAP        (PROCESS): sync to ucs: Resync rejected dn: CN=cnmb.tonghop,OU=CNMB.TONGHOP,OU=CNMB,OU=mycompany,DC=mycompany,DC=xxx
17.01.2018 01:33:09,343 LDAP        (PROCESS): sync to ucs:   [         group] [    modify] cn=cnmb.tonghop,ou=cnmb.tonghop,ou=cnmb,ou=mycompany,dc=mycompany,dc=xxx
17.01.2018 01:33:09,390 LDAP        (PROCESS): Unable to sync cn=cnmb.tonghop,ou=cnmb.tonghop,ou=cnmb,ou=mycompany,dc=mycompany,dc=xxx (UUID: 83d39934-e87a-1036-9fbe-c37cbc672f53). The object is currently locked.
17.01.2018 01:33:09,390 LDAP        (PROCESS): sync to ucs: Resync rejected dn: DC=HAN-VCKT01L,DC=mycompany.log,CN=MicrosoftDNS,DC=DomainDnsZones,DC=mycompany,DC=xxx
17.01.2018 01:33:09,395 LDAP        (PROCESS): sync to ucs:   [           dns] [    modify] relativedomainname=han-vckt01l,zonename=mycompany.log,cn=dns,dc=mycompany,dc=xxx
17.01.2018 01:33:09,404 LDAP        (ERROR  ): Unknown Exception during sync_to_ucs
17.01.2018 01:33:09,404 LDAP        (ERROR  ): Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/univention/s4connector/__init__.py", line 1477, in sync_to_ucs
    result = self.property[property_type].ucs_sync_function(self, property_type, object)
  File "/usr/lib/pymodules/python2.7/univention/s4connector/s4/dns.py", line 1638, in con2ucs
    ucs_host_record_create(s4connector, object)
  File "/usr/lib/pymodules/python2.7/univention/s4connector/s4/dns.py", line 979, in ucs_host_record_create
    newRecord.modify()
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 317, in modify
    return self._modify(modify_childs, ignore_license=ignore_license)
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 813, in _modify
    self.lo.modify(self.dn, ml, ignore_license=ignore_license)
  File "/usr/lib/pymodules/python2.7/univention/admin/uldap.py", line 471, in modify
    raise univention.admin.uexceptions.ldapError(_err2str(msg), original_exception=msg)
ldapError: Type or value exists: aRecord: value #523 provided more than once

17.01.2018 01:33:09,404 LDAP        (PROCESS): sync to ucs: Resync rejected dn: DC=HAN-TONGHOP01,DC=mycompany.log,CN=MicrosoftDNS,DC=DomainDnsZones,DC=mycompany,DC=xxx
17.01.2018 01:33:09,407 LDAP        (PROCESS): sync to ucs:   [           dns] [    modify] relativedomainname=han-tonghop01,zonename=mycompany.log,cn=dns,dc=mycompany,dc=xxx
17.01.2018 01:33:09,409 LDAP        (ERROR  ): Unknown Exception during sync_to_ucs
17.01.2018 01:33:09,409 LDAP        (ERROR  ): Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/univention/s4connector/__init__.py", line 1477, in sync_to_ucs
    result = self.property[property_type].ucs_sync_function(self, property_type, object)
  File "/usr/lib/pymodules/python2.7/univention/s4connector/s4/dns.py", line 1638, in con2ucs
    ucs_host_record_create(s4connector, object)
  File "/usr/lib/pymodules/python2.7/univention/s4connector/s4/dns.py", line 979, in ucs_host_record_create
    newRecord.modify()
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 317, in modify
    return self._modify(modify_childs, ignore_license=ignore_license)
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 813, in _modify
    self.lo.modify(self.dn, ml, ignore_license=ignore_license)
  File "/usr/lib/pymodules/python2.7/univention/admin/uldap.py", line 471, in modify
    raise univention.admin.uexceptions.ldapError(_err2str(msg), original_exception=msg)
ldapError: Type or value exists: aRecord: value #40 provided more than once

Mastodon