Univention Bugzilla – Bug 43932
Migrate ucs-overview entries to new 4.2 portal entries
Last modified: 2017-04-04 18:29:14 CEST
After upgrading to UCS 4.2 no portal entries exists. During the upgrade to UCS 4.2 I see in various places: Unsetting ucs/web/overview/entries/admin/umc/label Unsetting ucs/web/overview/entries/admin/umc/label/de Unsetting ucs/web/overview/entries/admin/umc/description Unsetting ucs/web/overview/entries/admin/umc/description/de Script: /etc/univention/templates/scripts/ucs-school-ucr-l10n-fr File: /var/www/univention/meta.json Module: create_portal_entries 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 920, 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 867, 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 832, in reconnect self._apply_last_bind() File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 805, in _apply_last_bind SimpleLDAPObject.simple_bind_s(self,'','') File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 214, in simple_bind_s msgid = self.simple_bind(who,cred,serverctrls,clientctrls) File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 208, in simple_bind return self._ldap_call(self._l.simple_bind,who,cred,RequestControlTuples(serverctrls),RequestControlTuples(clientctrls)) File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 106, in _ldap_call result = func(*args,**kwargs) SERVER_DOWN: {'desc': "Can't contact LDAP server"} +++ This bug was initially created as a clone of Bug #42231 +++ We will need to migrate UCR variable entries for ucs-overview page to new UCS 4.2 portal entries.
Please attach join.log and updater.log.
Created attachment 8573 [details] join.log
Created attachment 8574 [details] updater.log
With the fixes for Bug #43887, the entries are created after the upgrade.
r77950: * create_portal_entries.py: Write an error message if the LDAP server is not available (Bug #43932) r77954 * 35univention-portal.inst: Check if LDAP on DC master is available and abort if not. This prevents error messages from the updater.log (Bug #43932) r77951 + r77952: Added Bug #43932 to existing entry The main cause has been fixed with Bug #43887, I've only removed the traceback from the updater log to prevent support questions. I've created Bug #43975 for a more general approach.
OK: exit joinscript early if LDAP server could not be contacted OK: changelog OK: In my update test the overview variables were migrated
UCS 4.2 has been released: https://docs.software-univention.de/release-notes-4.2-0-en.html https://docs.software-univention.de/release-notes-4.2-0-de.html If this error occurs again, please use "Clone This Bug".