Installation of Vantage Storage Point v!4.1.5 receives Exit Code 1 and RC=102 when starting VANWEBUI
search cancel

Installation of Vantage Storage Point v!4.1.5 receives Exit Code 1 and RC=102 when starting VANWEBUI

book

Article ID: 400107

calendar_today

Updated On:

Products

Vantage Storage Resource Manager

Issue/Introduction

The following errors are received in the Vantage Web client started task during startup:

JVMJZBL1005I Output from DD:STDENV config shell script:
JVMJZBL1038E Child shell process exited with exit code: 1
JVMJZBL2999I JZOS batch launcher elapsed time=0 seconds, cpu time=0.030000 seconds
JVMJZBL1042E JZOS batch launcher failed, return code=102

Cause

The reported error occurs when the .profile script is run by the VANWEBUI STC  (i.e., . /etc/profile   .profile) and it does not properly set the LOGNAME Environment variable (i.e., there is no controlling terminal and the logname is not available). 

An example of code in the .profile shell script:  

readonly LOGNAME
# MS
if [ -z "$LOGNAME" ]; then
LOGNAME=logname
export LOGNAME
fi

Resolution

Change the relevant code in the .profile shell script to properly set the LOGNAME variable: 

# MS
if [ -t 0 ]; then
    # Interactive - stdin is a terminal
    echo "Running interactively"
    LOGNAME="${USER:-logname}"
else
    # Batch - stdin is not a terminal
    echo "Running from JCL/batch"
    LOGNAME="${_BPX_USERID:-BATCH}"
fi
export LOGNAME