Anmeldung an UMC / Module werden nicht geladen

Hallo!

Wenn man sich an der UMC als Administrator anmeldet, werden die Module nicht geladen. Der Staus bleibt bei 0% und der Dienst univention-management-console-server schmiert ab.

UCS version 3.2 Erratalevel 217

Ausgabe /var/log/univention/management-console-server.log:

...08.10.14 14:00:54.976 LOCALE ( INFO ) : Loading locale de_DE.UTF-8 for domain apps 08.10.14 14:00:54.976 LOCALE ( INFO ) : Found translation file /usr/share/univention-management-console/i18n/de/apps.mo 08.10.14 14:00:54.979 MAIN ( ERROR ) : Traceback (most recent call last): File "/usr/sbin/univention-management-console-server", line 209, in <module> umc_daemon.do_action() File "/usr/lib/pymodules/python2.6/daemon/runner.py", line 186, in do_action func(self) File "/usr/lib/pymodules/python2.6/daemon/runner.py", line 131, in _start self.app.run() File "/usr/sbin/univention-management-console-server", line 192, in run notifier.loop() File "/usr/lib/pymodules/python2.6/notifier/nf_generic.py", line 284, in loop step() File "/usr/lib/pymodules/python2.6/notifier/nf_generic.py", line 271, in step not __sockets[ cond ][ fd ]( sock_obj ): File "/usr/lib/pymodules/python2.6/univention/management/console/protocol/server.py", line 165, in _receive self._handle( state, msg ) File "/usr/lib/pymodules/python2.6/univention/management/console/protocol/server.py", line 282, in _handle state.processor.request( msg ) File "/usr/lib/pymodules/python2.6/univention/management/console/protocol/session.py", line 275, in request self.handle_request_get( msg ) File "/usr/lib/pymodules/python2.6/univention/management/console/protocol/session.py", line 408, in handle_request_get 'name' : self.i18n._( flavor.name, translationId ), File "/usr/lib/pymodules/python2.6/univention/management/console/locales.py", line 175, in _ self[ domain ] = I18N( self.locale, domain ) File "/usr/lib/pymodules/python2.6/univention/management/console/locales.py", line 76, in __init__ self.load( locale, domain ) File "/usr/lib/pymodules/python2.6/univention/management/console/locales.py", line 106, in load self.mofile = polib.mofile( filename ) File "/usr/lib/pymodules/python2.6/polib.py", line 170, in mofile instance = parser.parse() File "/usr/lib/pymodules/python2.6/polib.py", line 1587, in parse magic_number = self._readbinary('<I', 4) File "/usr/lib/pymodules/python2.6/polib.py", line 1648, in _readbinary tup = struct.unpack(fmt, bytes) error: unpack requires a string argument of length 4

Danke für Eure Hilfe.

Grüße
fbart

Hallo,

das habe ich so noch nicht gesehen. Evtl. ist die mo-Datei defekt? Auf meinem Testsystem mit UCS 3.2-3 errata217:# md5sum /usr/share/univention-management-console/i18n/de/apps.mo bce573760e3b5b5439a217715c1b0c41 /usr/share/univention-management-console/i18n/de/apps.mo

Mit freundlichen Grüßen
Janis Meybohm

md5sum /usr/share/univention-management-console/i18n/de/apps.mo 68b329da9893e34099c7d8ad5cb9c940 /usr/share/univention-management-console/i18n/de/apps.mo

Any Ideas?

Ich habe es mir mal angeschaut.

root@debvhucsm01:~# debsums univention-management-console-module-apps /usr/lib/univention-install/36univention-management-console-module-apps.inst OK /usr/share/doc/univention-management-console-module-apps/changelog.Debian.gz OK /usr/share/doc/univention-management-console-module-apps/copyright OK /usr/share/locale/de/LC_MESSAGES/univention-management-console-module-apps.mo OK /usr/share/pyshared/univention/management/console/modules/apps/__init__.py OK /usr/share/python-support/univention-management-console-module-apps.public OK /usr/share/univention-management-console-frontend/js/umc/modules/apps.js OK /usr/share/univention-management-console-frontend/js/umc/modules/i18n/de/apps.json OK /usr/share/univention-management-console/categories/apps.xml OK /usr/share/univention-management-console/i18n/de/apps.mo.debian OK /usr/share/univention-management-console/modules/apps.xml.debian OK

root@debvhucsm01:~# cd /usr/share/univention-management-console/i18n/de/ root@debvhucsm01:/usr/share/univention-management-console/i18n/de# ls -l insgesamt 76 -rwxr-xr-x 1 root root 698 5. Aug 13:49 appcenter.mo -rw-r--r-- 1 root root 1 6. Okt 14:28 apps.mo <-- -Hier passt was nicht -rwxr-xr-x 1 root root 644 5. Aug 13:49 apps.mo.debian -rwxr-xr-x 1 root root 456 9. Sep 2013 ipchange.mo -rwxr-xr-x 1 root root 590 28. Aug 15:34 join.mo -rwxr-xr-x 1 root root 621 12. Jun 11:17 lib.mo -rwxr-xr-x 1 root root 631 31. Okt 2013 mrtg.mo -rwxr-xr-x 1 root root 691 3. Jul 12:41 pkgdb.mo -rwxr-xr-x 1 root root 616 9. Sep 15:09 printers.mo -rwxr-xr-x 1 root root 639 9. Jul 09:50 quota.mo -rwxr-xr-x 1 root root 601 18. Okt 2013 reboot.mo -rwxr-xr-x 1 root root 650 31. Okt 2013 services.mo -rwxr-xr-x 1 root root 642 10. Sep 12:46 setup.mo -rwxr-xr-x 1 root root 642 30. Okt 2013 sysinfo.mo -rwxr-xr-x 1 root root 615 30. Okt 2013 top.mo -rwxr-xr-x 1 root root 665 14. Jan 2014 ucr.mo -rwxr-xr-x 1 root root 2650 10. Sep 11:15 udm.mo -rwxr-xr-x 1 root root 485 14. Jul 16:35 umc-core.mo -rwxr-xr-x 1 root root 688 1. Sep 08:22 updater.mo

Workaround:

root@debvhucsm01:/usr/share/univention-management-console/i18n/de# mv apps.mo /root/ root@debvhucsm01:/usr/share/univention-management-console/i18n/de# cp apps.mo.debian apps.mo

root@debvhucsm01:/usr/share/univention-management-console/i18n/de# ls -l insgesamt 72 -rwxr-xr-x 1 root root 698 5. Aug 13:49 appcenter.mo -rwxr-xr-x 1 root root 644 5. Aug 13:49 apps.mo -rwxr-xr-x 1 root root 456 9. Sep 2013 ipchange.mo -rwxr-xr-x 1 root root 590 28. Aug 15:34 join.mo -rwxr-xr-x 1 root root 621 12. Jun 11:17 lib.mo -rwxr-xr-x 1 root root 631 31. Okt 2013 mrtg.mo -rwxr-xr-x 1 root root 691 3. Jul 12:41 pkgdb.mo -rwxr-xr-x 1 root root 616 9. Sep 15:09 printers.mo -rwxr-xr-x 1 root root 639 9. Jul 09:50 quota.mo -rwxr-xr-x 1 root root 601 18. Okt 2013 reboot.mo -rwxr-xr-x 1 root root 650 31. Okt 2013 services.mo -rwxr-xr-x 1 root root 642 10. Sep 12:46 setup.mo -rwxr-xr-x 1 root root 642 30. Okt 2013 sysinfo.mo -rwxr-xr-x 1 root root 615 30. Okt 2013 top.mo -rwxr-xr-x 1 root root 665 14. Jan 2014 ucr.mo -rwxr-xr-x 1 root root 2650 10. Sep 11:15 udm.mo -rwxr-xr-x 1 root root 485 14. Jul 16:35 umc-core.mo -rwxr-xr-x 1 root root 688 1. Sep 08:22 updater.mo

root@debvhucsm01:/usr/share/univention-management-console/i18n/de# /etc/init.d/univention-management-console-server restart Restarting Univention Management Console Server. done.

Die apps.mo passt zwar noch nicht 100%ig im Vergleich zu einem Testsystem, aber das Webinterface ist wieder benutzbar.

Moin moin,

hier heute komischerwiese das gleiche … gestern lief alles noch, Installation war letztes Wochenende zwar recht hardcore, da ein Update das komplette System geschossen hat, aber nach Neuinstallation lief alles … bis heute, wo ein neuer Drucker ran sollte … da ging das WebIf nicht mehr … zum Glück bin ich recht schnell auf den Thread gestossen und konnte mir so nothelfen …

Wie kommt das ? Die Datei war ja wohl mal in Ordnung oder ?

Gruesse,
michael

Folgender Befehl/Workaround schafft erst einmal abhilfe:

ucr commit /usr/share/univention-management-console/i18n/de/apps.mo

Viele Grüße

Mastodon