<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.openvz.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Skehlet</id>
	<title>OpenVZ Virtuozzo Containers Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.openvz.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Skehlet"/>
	<link rel="alternate" type="text/html" href="https://wiki.openvz.org/Special:Contributions/Skehlet"/>
	<updated>2026-06-13T19:10:38Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.31.1</generator>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=Locales_inside_VE&amp;diff=5187</id>
		<title>Locales inside VE</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=Locales_inside_VE&amp;diff=5187"/>
		<updated>2008-03-21T17:18:53Z</updated>

		<summary type="html">&lt;p&gt;Skehlet: added error given by PostgreSQL in case of missing locales&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Problem description ==&lt;br /&gt;
&lt;br /&gt;
After creating a VE (e.g. using centos-4-i386-default template)&lt;br /&gt;
running perl (any perl script), results in the warning message:&lt;br /&gt;
&lt;br /&gt;
 perl: warning: Setting locale failed.&lt;br /&gt;
 perl: warning: Please check that your locale settings:&lt;br /&gt;
         LANGUAGE = &amp;quot;en_US:en&amp;quot;,&lt;br /&gt;
         LC_ALL = (unset),&lt;br /&gt;
         LANG = &amp;quot;en_US&amp;quot;&lt;br /&gt;
     are supported and installed on your system.&lt;br /&gt;
 perl: warning: Falling back to the standard locale (&amp;quot;C&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
Another common problem is with PostgreSQL, if it won't start up and you see something like this in your &amp;amp;lt;pgsql_data_dir&amp;amp;gt;/serverlog:&lt;br /&gt;
&lt;br /&gt;
 invalid value for parameter &amp;quot;lc_messages&amp;quot;: &amp;quot;en_US.UTF-8&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Resolution ==&lt;br /&gt;
&lt;br /&gt;
Some of templates have removed locales inside, since locales take really much space (~20Mb)&lt;br /&gt;
while not needed in most cases (except for the default &amp;quot;C&amp;quot; locale).&lt;br /&gt;
&lt;br /&gt;
So in this example '''/usr/lib/locale/en_US/LC_TIME''' and other files are missing.&lt;br /&gt;
&lt;br /&gt;
== Fix 1 ==&lt;br /&gt;
&lt;br /&gt;
reinstall glibc-common package using the command:&lt;br /&gt;
 # rpm -ihv --force glibc-common.rpm&lt;br /&gt;
&lt;br /&gt;
== Fix 2 ==&lt;br /&gt;
&lt;br /&gt;
Or '''disable''' overriding of LC_* variables in '''/etc/ssh/sshd_config''':&lt;br /&gt;
&lt;br /&gt;
 # Allow client to pass locale environment variables&lt;br /&gt;
 AcceptEnv LANG LC_*&lt;br /&gt;
&lt;br /&gt;
to&lt;br /&gt;
&lt;br /&gt;
 #AcceptEnv LANG LC_*&lt;br /&gt;
&lt;br /&gt;
so the default LC will be used.&lt;br /&gt;
&lt;br /&gt;
== Fix 3 ==&lt;br /&gt;
&lt;br /&gt;
To fix this permanently for all new vzs you create, edit your '''/vz/templates/&amp;amp;lt;distro&amp;amp;gt;/&amp;amp;lt;version&amp;amp;gt;/&amp;amp;lt;platform&amp;amp;gt;/.rpmmacros''' and change the line &amp;lt;b&amp;gt;%_install_langs C&amp;lt;/b&amp;gt;&lt;br /&gt;
to include the language(s) you want, for example:&lt;br /&gt;
&lt;br /&gt;
 %_install_langs C:pt_PT:pt_PT.UTF-8:en_US:en_US.UTF-8&lt;br /&gt;
&lt;br /&gt;
or simply&lt;br /&gt;
&lt;br /&gt;
 %_install_langs all&lt;br /&gt;
&lt;br /&gt;
After this you will need to rebuild your [[OS template cache]], for example:&lt;br /&gt;
&lt;br /&gt;
 vzpkgcache -r centos-4-i386-vmirth&lt;br /&gt;
 vzpkgcache centos-4-i386-vmirth&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category: Troubleshooting]]&lt;br /&gt;
[[Category: Templates]]&lt;/div&gt;</summary>
		<author><name>Skehlet</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=Locales_inside_VE&amp;diff=5186</id>
		<title>Locales inside VE</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=Locales_inside_VE&amp;diff=5186"/>
		<updated>2008-03-21T17:14:50Z</updated>

		<summary type="html">&lt;p&gt;Skehlet: added a permanent fix for the missing locale problem&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Problem description ==&lt;br /&gt;
&lt;br /&gt;
After creating a VE (e.g. using centos-4-i386-default template)&lt;br /&gt;
running perl (any perl script), results in the warning message:&lt;br /&gt;
&lt;br /&gt;
 perl: warning: Setting locale failed.&lt;br /&gt;
 perl: warning: Please check that your locale settings:&lt;br /&gt;
         LANGUAGE = &amp;quot;en_US:en&amp;quot;,&lt;br /&gt;
         LC_ALL = (unset),&lt;br /&gt;
         LANG = &amp;quot;en_US&amp;quot;&lt;br /&gt;
     are supported and installed on your system.&lt;br /&gt;
 perl: warning: Falling back to the standard locale (&amp;quot;C&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
== Resolution ==&lt;br /&gt;
&lt;br /&gt;
Some of templates have removed locales inside, since locales take really much space (~20Mb)&lt;br /&gt;
while not needed in most cases (except for the default &amp;quot;C&amp;quot; locale).&lt;br /&gt;
&lt;br /&gt;
So in this example '''/usr/lib/locale/en_US/LC_TIME''' and other files are missing.&lt;br /&gt;
&lt;br /&gt;
== Fix 1 ==&lt;br /&gt;
&lt;br /&gt;
reinstall glibc-common package using the command:&lt;br /&gt;
 # rpm -ihv --force glibc-common.rpm&lt;br /&gt;
&lt;br /&gt;
== Fix 2 ==&lt;br /&gt;
&lt;br /&gt;
Or '''disable''' overriding of LC_* variables in '''/etc/ssh/sshd_config''':&lt;br /&gt;
&lt;br /&gt;
 # Allow client to pass locale environment variables&lt;br /&gt;
 AcceptEnv LANG LC_*&lt;br /&gt;
&lt;br /&gt;
to&lt;br /&gt;
&lt;br /&gt;
 #AcceptEnv LANG LC_*&lt;br /&gt;
&lt;br /&gt;
so the default LC will be used.&lt;br /&gt;
&lt;br /&gt;
== Fix 3 ==&lt;br /&gt;
&lt;br /&gt;
To fix this permanently for all new vzs you create, edit your '''/vz/templates/&amp;amp;lt;distro&amp;amp;gt;/&amp;amp;lt;version&amp;amp;gt;/&amp;amp;lt;platform&amp;amp;gt;/.rpmmacros''' and change the line &amp;lt;b&amp;gt;%_install_langs C&amp;lt;/b&amp;gt;&lt;br /&gt;
to include the language(s) you want, for example:&lt;br /&gt;
&lt;br /&gt;
 %_install_langs C:pt_PT:pt_PT.UTF-8:en_US:en_US.UTF-8&lt;br /&gt;
&lt;br /&gt;
or simply&lt;br /&gt;
&lt;br /&gt;
 %_install_langs all&lt;br /&gt;
&lt;br /&gt;
After this you will need to rebuild your [[OS template cache]], for example:&lt;br /&gt;
&lt;br /&gt;
 vzpkgcache -r centos-4-i386-vmirth&lt;br /&gt;
 vzpkgcache centos-4-i386-vmirth&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category: Troubleshooting]]&lt;br /&gt;
[[Category: Templates]]&lt;/div&gt;</summary>
		<author><name>Skehlet</name></author>
		
	</entry>
</feed>