VPS
Main PagecPanel and DirectAdmin LicensingServer Management PlansVirtual Private ServersDedicated Servers
Control Panel Licensing
ServerTune ResellersResellersSpecial PromotionsServerTune SpecialsHomeAbout ServerTuneContact usTechnical SupportKB
ServerTune Main Page
Space
Space
Our most popular products:

SPECIAL PROMOTION: cPanel License $36 /month. more info

Issues, Tips, and Solutions

Protect your server with Mod Security rules written specifically for your system. more info ...

Space
Search:    Advanced search
Browse by category:
perl: warning: Setting locale failed.
Printer Friendly
email to a friend
Add comment Add comment
Views: 223
Votes: 0
Comments: 0
Posted: 28 Feb, 2008
by: Support T.
* * * * *
Updated: 28 Feb, 2008
by: Support T.

email messages are stuck in the queue and when I click "retry" I get this error:

perl : warning: Setting locale failed.
perl : warning: Please check that your locale settings:
LANGUAGE = "es_ES:es:en_GB:en",
LC_ALL = (unset),
LANG = "es_ES.UTF-8"
are supported and installed on your system.
perl : warning: Falling back to the standard locale ("C").

This means that your locale settings had LC_ALL set to ``En_US'' and LANG exists but has no value. Perl tried to believe you but could not. Instead, Perl gave up and fell back to the ``C'' locale, the default locale that is supposed to work no matter what. This usually means your locale settings were wrong, they mention locales your system has never heard of, or the locale installation in your system has problems (for example, some system files are broken or missing). For more info, go to: http://www.perl .com/doc/manual/html /pod/perllocale.html



Locales inside VE
After creating a VE (e.g. using centos-4-i386-default template) running perl (any perl script), results in the warning message given above.

Resolution
Some of templates have removed locales inside, since locales take really much space (~20Mb) while not needed in most cases (except for the default "C" locale).

So in this example /usr/lib/locale/en_US/LC_TIME and other files are missing.

Fix 1
reinstall glibc-common package using the command:

  • rpm -ihv --force glibc-common.rpm

Fix 2
Or disable overriding of LC_* variables in /etc/ssh/sshd_config file and change the following directive from:

    #Allow client to pass locale environment variables
    AcceptEnv LANG LC_*

TO

    #AcceptEnv LANG LC_*

so the default LC will be used.

Other articles in this Category
document HowTo :: install DirectAdmin on your server
document Where to get Technical Support
document DA Documentation & Tutorials
document The directory /var is full
document HowTo :: update DirectAdmin manually
document HowTo :: update DirectAdmin License manually
document HowTo :: transfer clients' account from the old to the new server
document FileManager is really slow, how can I fix it?
document Can't access DirectAdmin control panel
document HowTo :: Update ProFTP
document What are the local paths to log files?
document HowTo :: update all DNS zones
document Can't install DirectAdmin?
document Moving form DirectAdmin to cPanel?
document Setting up DA with an SSL certificate
document I can't login to DirectAdmin. The login page just refreshes without any errors.
document HowTo :: change permission on all files to 700
document HowTo :: prevent users from deleting certain files using the File Manager
document HowTo :: create and monitor your own service/application
document HowTo :: install custombuild
document HowTo :: re-build /etc/virtual/domainowners file
document HowTo :: install ModSecurity v2.x
document HowTo :: change DA default username "admin"
document HowTo :: upgrade Perl to v5.x.x
document HowTo :: install a Perl Module
document Where to buy or lease a License?
document Where to get technical support
document HowTo :: generate and install SSH Keys for Production and Remote/Backup servers
document HowTo :: change the username for a client
document HowTo :: change server IP address
document HowTo :: re-build /etc/virtual/domains File
document HowTo :: create default Packages for a new Reseller
document The task.queue is not being processed
document Reseller to User and vice versa
document HowTo :: change the DocumentRoot for a subdomain?
document Error :: ../../bins/zziptest.c:76: error: invalid lvalue in assignment
document HowTo :: slow down dataskq to improve server performance



RSS