Bug 39131 - System setup fails and does not complete when German language + english locale is selected
System setup fails and does not complete when German language + english local...
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UDM (Generic)
UCS 4.0
Other Linux
: P5 normal (vote)
: UCS 4.0-2-errata
Assigned To: Daniel Tröder
Erik Damrose
:
Depends on:
Blocks: 39635 39146
  Show dependency treegraph
 
Reported: 2015-08-10 15:09 CEST by Erik Damrose
Modified: 2015-10-27 09:42 CET (History)
3 users (show)

See Also:
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):
Max CVSS v3 score:


Attachments
setup.log of affected system (72.04 KB, text/x-log)
2015-08-10 15:12 CEST, Erik Damrose
Details
profile of affected system (1.02 KB, text/plain)
2015-08-10 15:13 CEST, Erik Damrose
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Erik Damrose univentionstaff 2015-08-10 15:09:54 CEST
Appliance mode: When choosing German as language on the first screen and an english location (tested with boston and new york city), several tracebacks occur and can be found in setup.log.

This prevents the configuration and installation of any univention-server-* package. The symptom is that system setup finishes within seconds, and clicking on finish does not complete system setup.

Traceback (most recent call last):
  File "/usr/lib/univention-system-setup/scripts/05_role/10role", line 37, in <module>
    from univention.management.console.modules.setup.setup_script import AptScript, main, _
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/__init__.py", line 34, in <module>
    import univention.management.console.protocol
  File "/usr/lib/pymodules/python2.7/univention/management/console/protocol/__init__.py", line 187, in <module>
    from session import *
  File "/usr/lib/pymodules/python2.7/univention/management/console/protocol/session.py", line 69, in <module>
    from ..acl import LDAP_ACLs
  File "/usr/lib/pymodules/python2.7/univention/management/console/acl.py", line 72, in <module>
    import univention.admin.modules
  File "/usr/lib/pymodules/python2.7/univention/admin/modules.py", line 44, in <module>
    import univention.admin.syntax
  File "/usr/lib/pymodules/python2.7/univention/admin/syntax.py", line 3043, in <module>
    class Country(select):
  File "/usr/lib/pymodules/python2.7/univention/admin/syntax.py", line 3164, in Country
    locale.setlocale(locale.LC_ALL, "")
  File "/usr/lib/python2.7/locale.py", line 547, in setlocale
    return _setlocale(category, locale)
locale.Error: unsupported locale setting
Comment 1 Erik Damrose univentionstaff 2015-08-10 15:12:43 CEST
Created attachment 7094 [details]
setup.log of affected system
Comment 2 Erik Damrose univentionstaff 2015-08-10 15:13:06 CEST
Created attachment 7095 [details]
profile of affected system
Comment 3 Daniel Tröder univentionstaff 2015-08-10 16:40:45 CEST
Commit 62882 adds a try-except-block that prevents a crash in case of a missing locale.
Comment 4 Daniel Tröder univentionstaff 2015-08-10 18:05:54 CEST
YAML is in commit 62897.
Comment 5 Erik Damrose univentionstaff 2015-08-10 18:13:13 CEST
OK: This traceback is gone from the system setup log
OK: UMC behavior
OK: yaml
Verified
Comment 6 Janek Walkenhorst univentionstaff 2015-08-10 18:44:35 CEST
<http://errata.univention.de/ucs/4.0/284.html>