Univention Bugzilla – Bug 48681
Traceback during installation of ucs-school-umc-installer
Last modified: 2019-03-12 10:59:04 CET
ucs-school-umc-installer (7.0.0-1A~4.4.0.201902141130) wird eingerichtet ... Calling joinscript 35ucs-school-umc-installer.inst ... 2019-02-14 11:17:17.566500283+01:00 (in joinscript_init) Object exists: cn=UMC,cn=univention,dc=nstx,dc=local Object exists: cn=UMC,cn=policies,dc=nstx,dc=local Object exists: cn=operations,cn=UMC,cn=univention,dc=nstx,dc=local Object exists: cn=default-umc-all,cn=UMC,cn=policies,dc=nstx,dc=local WARNING: cannot append cn=default-umc-all,cn=UMC,cn=policies,dc=nstx,dc=local to univentionPolicyReference, value exists No modification: cn=Domain Admins,cn=groups,dc=nstx,dc=local Object exists: cn=default-umc-users,cn=UMC,cn=policies,dc=nstx,dc=local WARNING: cannot append cn=default-umc-users,cn=UMC,cn=policies,dc=nstx,dc=local to univentionPolicyReference, value exists No modification: cn=Domain Users,cn=groups,dc=nstx,dc=local Object exists: cn=schoolinstaller-all,cn=operations,cn=UMC,cn=univention,dc=nstx,dc=local WARNING: cannot append cn=schoolinstaller-all,cn=operations,cn=UMC,cn=univention,dc=nstx,dc=local to allow, value exists No modification: cn=default-umc-all,cn=UMC,cn=policies,dc=nstx,dc=local 2019-02-14 11:17:19.880653870+01:00 (in joinscript_save_current_version) Joinscript 35ucs-school-umc-installer.inst finished with exitcode 0 Job for univention-management-console-server.service failed because the control process exited with error code. See "systemctl status univention-management-console-server.service" and "journalctl -xe" for details. invoke-rc.d: initscript univention-management-console-server, action "reload" failed. Traceback (most recent call last): File "/usr/sbin/univention-management-console-acls", line 39, in <module> from univention.management.console.acl import Rule ImportError: No module named management.console.acl Trigger für python-support (1.0.15.18.201403132013) werden verarbeitet ... Configuring ucsschool=4.4 v1 updating certificates for ucsschool=4.4 v1 File: /usr/share/univention-management-console/modules/apps.xml
Hmmm? I saw the same traceback with management.console.log not being available some days ago in another context. That's strange. Did something change in the python-integration?
Happens on a fresh install of UCS 4.4 when installing "ucsschool" app. # python -c 'from univention.management.console.acl import Rule' [no problem] # univention-app install ucsschool The following additional packages will be installed: python-ucs-school ucs-school-l10n-fr ucs-school-umc-common univention-l10n-tools Die folgenden Pakete werden ENTFERNT: libdrm-amdgpu1 libdrm-intel1 libdrm-nouveau2 libdrm-radeon1 libevdev2 libfontenc1 libgl1-mesa-dri libgl1-mesa-glx libglapi-mesa libgudev-1.0-0 libid3tag0 libimlib2 libinput-bin libinput10 libllvm3.9 libmtdev1 libobrender32v5 libobt2v5 libpangoxft-1.0-0 libpciaccess0 libsensors4 libwacom-common libwacom2 libxatracker2 libxcb-glx0 libxcb-shape0 libxfont1 libxfont2 libxtst6 libxv1 libxxf86dga1 libxxf86vm1 openbox x11-utils x11-xserver-utils xfonts-base xfonts-encodings xfonts-utils xinit xserver-common xserver-xorg xserver-xorg-core xserver-xorg-input-libinput xserver-xorg-video-all xserver-xorg-video-amdgpu xserver-xorg-video-ati xserver-xorg-video-fbdev xserver-xorg-video-nouveau xserver-xorg-video-radeon xserver-xorg-video-vesa xserver-xorg-video-vmware Die folgenden NEUEN Pakete werden installiert: python-ucs-school ucs-school-l10n-fr ucs-school-umc-common ucs-school-umc-installer univention-l10n-tools 0 aktualisiert, 5 neu installiert, 51 zu entfernen und 13 nicht aktualisiert. Job for univention-management-console-server.service failed because the control process exited with error code. See "systemctl status univention-management-console-server.service" and "journalctl -xe" for details. invoke-rc.d: initscript univention-management-console-server, action "reload" failed. Traceback (most recent call last): File "/usr/sbin/univention-management-console-acls", line 39, in <module> from univention.management.console.acl import Rule ImportError: No module named management.console.acl Trigger für python-support (1.0.15.18.201403132013) werden verarbeitet ... ^^ Trigger für python-support executed *after* problem May be a problem with the python-support module cache. # python -c 'from univention.management.console.acl import Rule' [no problem now]
I inserted a "update-python-modules -f" at the top of the postinst, but it didn't help. So maybe it's not that. The postinst with expanded #DEBHELPER#: ----------------------------------------------------------------------------- #!/bin/sh [ucs license...] update-python-modules -f # run join script on DC master and DC backup . /usr/share/univention-lib/base.sh call_joinscript 35ucs-school-umc-installer.inst || true invoke-rc.d univention-management-console-server reload || true # generate a new hash for the UMC frontend in order to avoid caching problems . /usr/share/univention-lib/umc.sh umc_frontend_new_hash # Automatically added by dh_pysupport if which update-python-modules >/dev/null 2>&1; then update-python-modules ucs-school-umc-installer.public fi # End automatically added section # make sure the installer is visible to root on an unjoined system /usr/sbin/univention-management-console-acls allow --user root --host "*" --command 'schoolinstaller/*' exit 0 -----------------------------------------------------------------------------
Package: ucs-school-umc-installer Version: 7.0.0-2A~4.4.0.201902191438 Branch: ucs_4.4-0 Scope: ucs-school-4.4 We decided during a sprint meeting to just deactivate the problematic line in the post install script since it is not really necessary, but blocks the setup processes for the upcoming 4.4 release. This bug was cloned as Bug #48708 for fixing this potential problem after 4.4v1. A comment in the script itself, referring to this Bug was also added.
Package: ucs-school-umc-installer Version: 7.0.0-3A~4.4.0.201902200837 Branch: ucs_4.4-0 Scope: ucs-school-4.4 Removed the postinst completely as discussed.
*** Bug 48708 has been marked as a duplicate of this bug. ***
OK: code change OK: advisory OK: jenkins job succeeded
UCS@school 4.4 v1 has been released. https://docs.software-univention.de/release-notes-ucsschool-4.4v1-de.html If this error occurs again, please clone this bug.