000030689 - RSA Authentication Manager 8.1 SP1 Patch 4 Web Tier error message "LookupError: unknown encoding 'euc-jp-linux'" in Japanese language OS

Document created by RSA Customer Support Employee on Jun 14, 2016Last modified by RSA Customer Support on Feb 10, 2018
Version 6Show Document
  • View in full screen mode

Article Content

Article Number000030689
Applies ToRSA Product Set: SecurID
RSA Product/Service Type: Authentication Manager
RSA Version/Condition: 8.1 SP1 P4 Web Tier
Platform: 2-byte Language, Japanese RHEL 6 Linux
IssueWhen running ./rsaserv status on the web tier, the following LookupError error is returned:

[root@jphybcld83 server]# ./rsaserv status 
Running as rsaadmin... 
Traceback (most recent call last): 
File "/opt/RSASecurity/RSAAuthenticationManagerWebtier//components/ims/unix/rsaservManager.py", line 164, in <module> 
ret = process() 
File "/opt/RSASecurity/RSAAuthenticationManagerWebtier//components/ims/unix/rsaservManager.py", line 134, in process 
operationStatus = service.status(dependency) 
File "/opt/RSASecurity/RSAAuthenticationManagerWebtier//components/ims/unix/rsaServices.py", line 220, in status 
masterServiceList[dep].status(1) 
File "/opt/RSASecurity/RSAAuthenticationManagerWebtier//components/ims/unix/rsaServices.py", line 224, in status 
self.controller.status(self.description); 
File "/opt/RSASecurity/RSAAuthenticationManagerWebtier//components/ims/unix/rsaControllers.py", line 267, in status 
print formatForStatus(serviceName, 'ok', 'RUNNING') 
LookupError: unknown encoding 'euc-jp-linux'
Cause
  • The language pack was imported, but the LANG env variable missing.
  • The problem is not with codecs.lookup("euc-jp-linux")
ResolutionTo resolve this issue, please export the UTF-8 instead of the euc, as follows:

LookupError: unknown encoding 'euc-jp-linux'
[root@dwivep-RHEL server]# export LANG="ja_JP.UTF-8"
[root@dwivep-RHEL server] locale
LANG=JP.UTF-8
LC_CTYPE="ja_JP.UTF-8"
LC_NUMERIC="ja_JP.UTF-8"
LC_TIME="ja_JP.UTF-8"
LC_COLLATE="ja_JP.UTF-8"
LC_MONETARY="ja_JP.UTF-8"
LC_MESSAGES="ja_JP.UTF-8"
LC_PAPER="ja_JP.UTF-8"
LC_NAME="ja_JP.UTF-8"
LC_ADDRESS="ja_JP.UTF-8"
LC_TELEPHONE="ja_JP.UTF-8"
LC_MEASUREMENT="ja_JP.UTF-8"
LC_IDENTIFICATION="ja_JP.UTF-8"
LC_ALL=
[root@dwivep-RHEL server] ./rsaserv status
Running as devuaer...
RSA Webtier Server                                        [Running]

[root@dwivep-RHEL server] #
NotesEngineering thinks that the Japanese in UTF-8 is supported, but Authentication Manager probably doesn't support the EUC encoding, so you need to export the env UTF-8 instead of the jp.euc.

Attachments

    Outcomes