Bug 48681 - Traceback during installation of ucs-school-umc-installer
Traceback during installation of ucs-school-umc-installer
Status: CLOSED FIXED
Product: UCS@school
Classification: Unclassified
Component: UMC - Installer
UCS@school 4.4
Other Linux
: P5 normal (vote)
: UCS@school 4.4 v1
Assigned To: Ole Schwiegert
Daniel Tröder
:
: 48708 (view as bug list)
Depends on:
Blocks: 48708
  Show dependency treegraph
 
Reported: 2019-02-14 13:39 CET by Sönke Schwardt-Krummrich
Modified: 2019-03-12 10:59 CET (History)
3 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 6: Setup Problem: Issue for the setup process
Who will be affected by this bug?: 3: Will affect average number of installed domains
How will those affected feel about the bug?: 5: Blocking further progress on the daily work
User Pain: 0.514
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sönke Schwardt-Krummrich univentionstaff 2019-02-14 13:39:39 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
Comment 1 Florian Best univentionstaff 2019-02-14 13:53:44 CET
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?
Comment 2 Daniel Tröder univentionstaff 2019-02-15 09:44:46 CET
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]
Comment 3 Daniel Tröder univentionstaff 2019-02-15 10:56:40 CET
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
-----------------------------------------------------------------------------
Comment 4 Ole Schwiegert univentionstaff 2019-02-19 14:41:57 CET
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.
Comment 5 Ole Schwiegert univentionstaff 2019-02-20 08:43:13 CET
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.
Comment 6 Ole Schwiegert univentionstaff 2019-02-20 08:46:15 CET
*** Bug 48708 has been marked as a duplicate of this bug. ***
Comment 7 Daniel Tröder univentionstaff 2019-02-20 09:40:57 CET
OK: code change
OK: advisory
OK: jenkins job succeeded
Comment 8 Sönke Schwardt-Krummrich univentionstaff 2019-03-12 10:59:04 CET
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.