Univention Bugzilla – Bug 47602
UMC Error: Specified locale is not available
Last modified: 2019-05-15 14:52:14 CEST
In case the language that is chosen for the umc is not installed in /etc/locale.gen the umc server throws this error: Specified locale is not available The error is also thrown if the "Accepted Language" Header is set "weird" in my case it was set to just "de" without a region. I think no error should be raised in that case. The server already has a fallback to the "C" locale. Maybe a diagnose module? See: univention-management-console/src/univention/management/console/base.py
I experienced the or a similar problem in my last UCS Technical Training Task #10201 After explicitly switching the language to German in UMC the problem was gone; I used chromium from my notebook to access UMC on a remote server.
*** Bug 48039 has been marked as a duplicate of this bug. ***
Again: UCS Technical Training 2018-11-22
(In reply to Philipp Hahn from comment #3) > Again: UCS Technical Training 2018-11-22 My browser (Firefox) is configured to use only English ("en-us"), by the UCS system only has "de_DE.UTF.8" # ucr search --brief locale locale/default: de_DE.UTF-8:UTF-8 locale: de_DE.UTF-8:UTF-8
univention-system-setup defined default locales that should be applied in any case in umc/python/setup/util.py: forcedLocales = ['en_US.UTF-8:UTF-8', 'de_DE.UTF-8:UTF-8'] But that is in function auto_complete_values_for_join() which is only called when system-setup is operated via UMC. In the case of comment1 + 3 a PXE installation was done
Even worse: If I configure Firefox for only "fr" and surf to the portal, I get an empty page. After adding "de" or "en" in Firefox I again get the portal page. According to Jürn there already is a bug for this issue...
*** Bug 48716 has been marked as a duplicate of this bug. ***
Patch available in fbest/47602-missing-en-us-locale. It sets locale to "C" if en-US is wanted but doesn't exists on the system and keeps this for the whole session. And doesn't produce further log messages for the session. FYI: the Accept-Language header is set by the frontend to the language you select. So if your browser is espanol (which is not available) it picks english. We could be even more graceful and remove the error completely, so that any request with any locale is allowed. (?!)
*** Bug 48304 has been marked as a duplicate of this bug. ***
It prevents also the installation of UCS@school if UCS was set up with US Ireland keyboard (attachment 9772 [details]).
univention-management-console.yaml 7cdf6786401c | YAML Bug #47602 univention-management-console (11.0.4-15) e4f394151a31 | Bug #47602: be graceful about missing english locale
OK: no error if default en locale is not installed OK: yaml (224a33f789 Bug #47602: yaml typo) -> verified
<http://errata.software-univention.de/ucs/4.4/104.html>