Bug 26320 - Falsche Locale-Settings nach Installation
Falsche Locale-Settings nach Installation
Status: CLOSED INVALID
Product: UCS
Classification: Unclassified
Component: UCS Installer
UCS 3.0
Other Linux
: P5 normal (vote)
: UCS 3.1
Assigned To: Felix Botner
Stefan Gohmann
: interim-1
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-03-01 16:23 CET by Sönke Schwardt-Krummrich
Modified: 2012-12-12 21:08 CET (History)
2 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
installation.log.gz (67.36 KB, application/x-gzip)
2012-03-01 16:23 CET, Sönke Schwardt-Krummrich
Details
installation_profile (1.32 KB, text/plain)
2012-03-01 16:24 CET, Sönke Schwardt-Krummrich
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sönke Schwardt-Krummrich univentionstaff 2012-03-01 16:23:17 CET
Created attachment 4243 [details]
installation.log.gz

Ein Member-Server wurde in Version 3.0-0 installiert. Es wurde als Sprache
Englisch, als Zeitzone London und als Keyboardmapping deutsch-qwertz
ausgewählt.
Anschließend sind locale/default und locale inkonsistent, was zu Folgefehlern
führt.

root@member32:~# egrep 'key|locale' /etc/univention/installation_profile   
locale_default='en_GB.UTF-8:UTF-8'
locales='en_GB.UTF-8:UTF-8'
keymap='de-latin1'
root@member32:~# ucr search locale
locale/default: en_GB.UTF-8:UTF-8
locale/keymap: de-latin1
locale: de_DE.UTF-8:UTF-8 de_DE@euro:ISO-8859-15
root@member32:~#
Comment 1 Sönke Schwardt-Krummrich univentionstaff 2012-03-01 16:24:37 CET
Created attachment 4244 [details]
installation_profile
Comment 2 Sönke Schwardt-Krummrich univentionstaff 2012-03-01 16:29:05 CET
Das führt z.B. zu Problemen beim Start von postgresql, wenn die eingestellte Locale nicht vorhanden ist.

root@member32:~# /etc/init.d/postgresql restart
Restarting PostgreSQL 8.4 database server: mainperl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "en_GB.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). The PostgreSQL server failed to start. Please check the log output: FATAL: invalid value for parameter "lc_messages": "en_GB.UTF-8" ... failed!
 failed!
root@member32:~# 

Hotfix:
ucr set locale="en_GB.UTF-8:UTF-8 de_DE.UTF-8:UTF-8 de_DE@euro:ISO-8859-15"
locale-gen

Ggf. sollte in /etc/locale.gen auch der Wert aus "locale/default" eingetragen werden, falls der Wert nicht in der UCR-Variable "locale" enthalten ist.
Comment 3 Sönke Schwardt-Krummrich univentionstaff 2012-03-01 16:36:07 CET
(In reply to comment #2)
> root@member32:~# /etc/init.d/postgresql restart
> Restarting PostgreSQL 8.4 database server: mainperl: warning: Setting locale
> failed. perl: warning: Please check that your locale settings: LANGUAGE =
> (unset), LC_ALL = (unset), LANG = "en_GB.UTF-8" are supported and installed on
> your system. perl: warning: Falling back to the standard locale ("C"). The
> PostgreSQL server failed to start. Please check the log output: FATAL: invalid
> value for parameter "lc_messages": "en_GB.UTF-8" ... failed!
>  failed!
> root@member32:~# 

Siehe auch Bug 24913.
 
> Ggf. sollte in /etc/locale.gen auch der Wert aus "locale/default" eingetragen
> werden, falls der Wert nicht in der UCR-Variable "locale" enthalten ist.

Ausgelagert in Bug 26322.
Comment 4 Felix Botner univentionstaff 2012-08-17 13:55:20 CEST
Ich kann das nicht mehr nachvollziehen (3.1 Neuinstallation):

-> egrep 'key|locale' /etc/univention/installation_profile   
locale_default='en_GB.UTF-8:UTF-8'
locales='en_GB.UTF-8:UTF-8'
keymap='de-latin1'

-> ucr search --brief locale
locale/default: en_GB.UTF-8:UTF-8
locale/keymap: de-latin1
locale: en_GB.UTF-8:UTF-8

-> locale
LANG=en_GB.UTF-8
LANGUAGE=
LC_CTYPE="en_GB.UTF-8"
LC_NUMERIC="en_GB.UTF-8"
LC_TIME="en_GB.UTF-8"
LC_COLLATE="en_GB.UTF-8"
LC_MONETARY="en_GB.UTF-8"
LC_MESSAGES="en_GB.UTF-8"
LC_PAPER="en_GB.UTF-8"
LC_NAME="en_GB.UTF-8"
LC_ADDRESS="en_GB.UTF-8"
LC_TELEPHONE="en_GB.UTF-8"
LC_MEASUREMENT="en_GB.UTF-8"
LC_IDENTIFICATION="en_GB.UTF-8"
LC_ALL=

Postgresql Installation und Start klappt auch.
Comment 5 Stefan Gohmann univentionstaff 2012-09-17 11:03:21 CEST
Ich konnte ebenfalls keine Probleme feststellen.
Comment 6 Stefan Gohmann univentionstaff 2012-12-12 21:08:00 CET
UCS 3.1-0 has been released: 
 http://forum.univention.de/viewtopic.php?f=54&t=2125

If this error occurs again, please use "Clone This Bug".