The upgrade fails if cool solution repo was activated before and univention-usercert or univention-windowscert was installed
Remove that extensions does not remove the entries in ldap. This let the upgrade crash
What is the way to go to remove the failing entries from ldap?
After starting the upgrade
HINT:
Please check the release notes carefully BEFORE updating to UCS 4.2-0:
English version: https://docs.software-univention.de/release-notes-4.2-0-en.html
German version: https://docs.software-univention.de/release-notes-4.2-0-de.html
Please also consider documents of following release updates and
3rd party components.
Do you want to continue [Y/n]?
Custom preupdate script /var/lib/local-preup.sh not found
Checking for space on /var/cache/apt/archives: OK
Checking for space on /boot: OK
Checking for space on /: OK
Checking for package status: OK
Checking LDAP schema: 58f8d775 OVER: Loading Translog Overlay
58f8d775 OVER: db_init
58f8d775 OVER: Configuring Translog Overlay
58f8d775 OVER: Configured Translog Overlay to use file "/var/lib/univention-ldap/listener/listener"
58f8d775 UNKNOWN attributeDescription "UNIVENTIONCREATEREVOKECERTIFICATE" inserted.
58f8d775 UNKNOWN attributeDescription "UNIVENTIONCERTIFICATEDAYS" inserted.
58f8d775 OVER: db_close
# (65) Object class violation: unrecognized objectClass 'univentionManageCertificates'
dn: uid=mfrie,cn=users,dc=huf,dc=intranet
# (65) Object class violation: unrecognized objectClass 'univentionManageCertificates'
dn: cn=PC-08,cn=computers,dc=huf,dc=intranet
58f8d776 OVER: db_destroy
Last error before abort
Calling joinscript 18python-univention-directory-manager.inst ...
2017-04-20 18:31:32.648822323+02:00 (in joinscript_init)
Traceback (most recent call last):
File "/usr/share/univention-directory-manager-tools/univention-cli-server", line 222, in doit
output = univention.admincli.admin.doit(arglist)
File "/usr/lib/pymodules/python2.7/univention/admincli/admin.py", line 406, in doit
out = _doit(arglist)
File "/usr/lib/pymodules/python2.7/univention/admincli/admin.py", line 534, in _doit
co = univention.admin.config.config(configRegistry['ldap/master'])
File "/usr/lib/pymodules/python2.7/univention/admin/config.py", line 40, in __init__
base = univention.admin.uldap.getBaseDN(host)
File "/usr/lib/pymodules/python2.7/univention/admin/uldap.py", line 136, in getBaseDN
result = lo.search_s('', ldap.SCOPE_BASE, 'objectClass=*', ['NamingContexts'])
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 559, in search_s
return self.search_ext_s(base,scope,filterstr,attrlist,attrsonly,None,None,timeout=self.timeout)
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 918, in search_ext_s
return self._apply_method_s(SimpleLDAPObject.search_ext_s,*args,**kwargs)
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 865, in _apply_method_s
self.reconnect(self._uri,retry_max=self._retry_max,retry_delay=self._retry_delay)
File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 839, in reconnect
raise e
SERVER_DOWN: {'desc': "Can't contact LDAP server"}
Joinscript 18python-univention-directory-manager.inst finished with exitcode 3
psmisc (22.21-2) wird eingerichtet ...
slapd (2.4.42+dfsg-2.A~4.2.0.201703081826) wird eingerichtet ...
File: /etc/init.d/slapd
Multifile: /etc/ldap/slapd.conf
Backing up /etc/ldap/slapd.conf in /var/backups/slapd-2.4.42+dfsg-2.219.201612021613... done.
Moving old database directories to /var/backups:
- directory dc=huf,dc=intranet... done.
Loading from /var/backups/slapd-2.4.42+dfsg-2.219.201612021613:
- directory dc=huf,dc=intranet... failed.
Loading the database from the LDIF dump failed with the following
error while running slapadd:
58f8e2a6 OVER: Loading Translog Overlay
58f8e2a7 OVER: db_init
58f8e2a7 OVER: Configuring Translog Overlay
58f8e2a7 OVER: Configured Translog Overlay to use file "/var/lib/univention-ldap/listener/listener"
58f8e2a7 <= str2entry: str2ad(UNIVENTIONCERTIFICATEDAYS): attribute type undefined
slapadd: could not parse entry (line=28107)
58f8e2a7 OVER: db_close
58f8e2a7 OVER: db_destroy
dpkg: Fehler beim Bearbeiten des Paketes slapd (--configure):
Unterprozess installiertes post-installation-Skript gab den Fehlerwert 1 zurück