DUAS: Scripts fail with error "Bad String"
search cancel

DUAS: Scripts fail with error "Bad String"

book

Article ID: 139011

calendar_today

Updated On:

Products

CA Automic Dollar Universe

Issue/Introduction

Dollar Universe 6 Installation or Upgrade scripts on Solaris fail to execute producing some "Bad String" errors.


Example of errors returned while launching uniinstaller:


Bad string
/kit/bin/duas/uniinstaller: =entralhost=HOSTNAME: not found


Example of errors returned while launching the last step of the Upgrade (Precommit) in uniupgrade_controlv5.log :


Starting uniupgrade_controlV5 with parameters:PRECOMMIT /app/dollaru/COMPANY  /logs/log/uniupgrade_controlv5.log

Bad string

DUAS environment loaded for Company COMPANY Node NODENAME.


Logs are in file: /logs/log/maintenance.log


In maintenance.log we are missing the parameter PRECOMMIT:


============================================================

============================================================

 of instance in /app/dollaru/COMPANY

============================================================

============================================================


/app/dollaru/COMPANY/temp/tmpv5/uniupgrade_controlV5[5]: test: argument expected

/app/dollaru/COMPANY/temp/tmpv5/uniupgrade_controlV5[7]: test: argument expected

/app/dollaru/COMPANY/temp/tmpv5/uniupgrade_controlV5[9]: test: argument expected

Unknown request 


Environment

OS: Solaris

Release : 6.x

Component : DOLLAR UNIVERSE

Cause

Wrong locale settings cause the command tr to fail, for example:


tr [:upper:] [:lower:]


results into


Bad string




Example of locale settings when connecting to the server directly via ssh:


[root@server]/>locale
LANG=
LC_CTYPE=fr_FR.ISO8859-1
LC_NUMERIC=fr_FR.ISO8859-15
LC_TIME=fr_FR.ISO8859-15
LC_COLLATE=fr_FR.ISO8859-15
LC_MONETARY=fr_FR.ISO8859-15
LC_MESSAGES=fr

LC_ALL=


Example of locale settings when connecting to the server via a rebond english server ssh:



[root@server]/>locale

LANG=fr_FR.UTF-8
LC_CTYPE=en_US.UTF-8
LC_NUMERIC=en_US.UTF-8
LC_TIME=en_US.UTF-8
LC_COLLATE=en_US.UTF-8
LC_MONETARY=en_US.UTF-8
LC_MESSAGES=en_US.UTF-8

LC_ALL=


Resolution

Issue due to a wrong locale settings inherited from a "remote ssh session on a different rebond server".
Locale settings were set in English, where the target production server was in French.
This resulted into a mix of English + French settings which caused a tr command used in one of the upgrade scripts to fail and not produce any output:
tr [:upper:] [:lower:]

Resulted into
Bad string


Solution consists on connecting to the Server directly so that all the terminal locale settings are properly set to ones of the Target Server.