Univention Bugzilla – Full Text Bug Listing |
Summary: | UMC-server crash: corrupt .mo file | ||
---|---|---|---|
Product: | UCS | Reporter: | Andreas Peichert <peichert> |
Component: | UMC (Generic) | Assignee: | Florian Best <best> |
Status: | CLOSED FIXED | QA Contact: | Alexander Kramer <kramer> |
Severity: | normal | ||
Priority: | P5 | CC: | best, gohmann, hahn, klaeser, steuwer, walkenhorst |
Version: | UCS 4.0 | Flags: | best:
Patch_Available+
|
Target Milestone: | UCS 4.0-0-errata | ||
Hardware: | Other | ||
OS: | Linux | ||
See Also: |
https://forge.univention.org/bugzilla/show_bug.cgi?id=36657 https://forge.univention.org/bugzilla/show_bug.cgi?id=35066 |
||
What kind of report is it?: | --- | What type of bug is this?: | --- |
Who will be affected by this bug?: | --- | How will those affected feel about the bug?: | --- |
User Pain: | Enterprise Customer affected?: | ||
School Customer affected?: | ISV affected?: | ||
Waiting Support: | Flags outvoted (downgraded) after PO Review: | ||
Ticket number: | Bug group (optional): | Error handling, External feedback | |
Max CVSS v3 score: | |||
Attachments: | patch |
Description
Andreas Peichert
2014-11-13 16:52:52 CET
Maybe the internal process for registering apps in UMC has not been completely finished upon a reload of the module list? (In reply to Andreas Peichert from comment #0) > After an update the UMC-server crashed on login (modules/list call) due to > an corrupt .mo file. See Bug #36657. Maybe this could be simple avoided by skipping corrupt .mo files. UMC could show an error message to the user ("Translation file /usr/share/univention-management-console/i18n/de/apps.mo could not be loaded. You may encounter untranslated text in this session") but it would still work (not failing silently). Created attachment 6525 [details]
patch
Attached a patch which catches the error and continues untranslated.
We should also backport this to UCS 3.2 Adding a IOError in the exception catching would also fix Bug #35066. seen this bug also on a UCS DC Master, the DC Backup in the same domain hasn't this error. Reported again: Ticket #2015012921000029 *** Bug 35066 has been marked as a duplicate of this bug. *** Don't crash the server anymore if .mo file is empty or corrupt Fix: svn r57701 YAML: 2015-02-02-univention-management-console.yaml Package: univention-management-console Version: 7.1.63-12.853.201502021053 OK - Don't crash the server anymore if .mo file is empty or corrupt (see below) OK - debian/changelog OK - yaml file tail -F /var/log/univention/management-console-server.log 03.02.15 11:15:17.109 MAIN ( ERROR ) : Corrupted .mo file detected for translation domain 'appcenter': unpack requires a string argument of length 4 03.02.15 11:15:17.109 MAIN ( ERROR ) : Corrupted .mo file detected for translation domain 'appcenter': unpack requires a string argument of length 4 03.02.15 11:15:17.109 MAIN ( ERROR ) : Corrupted .mo file detected for translation domain 'appcenter': unpack requires a string argument of length 4 03.02.15 11:15:17.110 MAIN ( ERROR ) : Corrupted .mo file detected for translation domain 'appcenter': unpack requires a string argument of length 4 ... |