Bug 39131

Summary: System setup fails and does not complete when German language + english locale is selected
Product: UCS Reporter: Erik Damrose <damrose>
Component: UDM (Generic)Assignee: Daniel Tröder <troeder>
Status: CLOSED FIXED QA Contact: Erik Damrose <damrose>
Severity: normal    
Priority: P5 CC: best, gohmann, walkenhorst
Version: UCS 4.0   
Target Milestone: UCS 4.0-2-errata   
Hardware: Other   
OS: Linux   
See Also: https://forge.univention.org/bugzilla/show_bug.cgi?id=39134
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:
Bug Depends on:    
Bug Blocks: 39635, 39146    
Attachments: setup.log of affected system
profile of affected system

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>