Troubleshooting Language Issues: Language Changed from en_US.UTF-8 |
|
|
|
|
||
Troubleshooting Language Issues: Language Changed from en_US.UTF-8 |
|
|
|
|
|
|
|
||
As instructed in the Quick Start Guide, Provisioner must be installed on CentOS/RHEL configured with the language US/English (en_US.UTF-8) and must not be changed from this language selection after installation, as Provisioner scripts and utilities expect responses in US/English.
When properly configured, executing the env command from the command line, the character string "en_US.UTF-8" must appear in the command's results.
For example:
[root@ip-49-1 linmin]# env|grep 'LANG='
LANG=en_US.UTF-8
[root@ip-49-1 linmin]#
Under rare conditions, the language can be changed by a command (such as "export"), script or an external tool such as an SSH client set to another language accessing the Provisioner PXE Server.
Symptoms
Upon executing a Provisioner PXE Server script or utility, an error condition will occur and output in the non-English language will be evident.
In the example below, the use of French instead of English is evident:
[root@ciac40-csp ~]# php /home/tftpboot/www/lbmp-API-APID-admin.php action=listusers
mv: ne peut évaluer `ls:': Aucun fichier ou répertoire de ce type
mv: ne peut évaluer `/root/.lbmp/.aa_*:': Aucun fichier ou répertoire de ce type
mv: ne peut évaluer `Aucun': Aucun fichier ou répertoire de ce type
mv: ne peut évaluer `fichier': Aucun fichier ou répertoire de ce type
mv: ne peut évaluer `ou': Aucun fichier ou répertoire de ce type
mv: ne peut évaluer `répertoire': Aucun fichier ou répertoire de ce type
mv: ne peut évaluer `de': Aucun fichier ou répertoire de ce type
mv: ne peut évaluer `ce': Aucun fichier ou répertoire de ce type
mv: ne peut évaluer `type': Aucun fichier ou répertoire de ce type
Root Cause
In the example above, the customer correctly installed Provisioner PXE Server with US English.
Subsequently, the customer accessed the Provisioner PXE Server to update the license key using an SSH client that was set to French. The SSH client changed the session's language from US English to French, without overwriting any on-disk files.
Solution
Temporary solution:
•Add the line LANG="en_US.UTF-8" to the file /etc/environment
•Reboot the Provisioner PXE Server
To avoid a repeat of the same scenario:
•Change the default language of SSH and other remote access tools to en_US.UTF-8
Note that because there are different mechanisms to change the current session's language to one other that en_US.UTF-8, there is no permanent solution to this issue, which happens extremely rarely.
By being aware of the symptoms, root cause and solution of a change of language, you should be able to quickly remedy the situation should it occur.