IBM Support

PH21352: AN ERROR OCCURRED WHEN RUNNING SETUPCLIENT.SH

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

APAR status

  • Closed as program error.

Error description

  • An error occurs when running setupClient.sh with source in
    Linux environment.
    
    # .(dot) /<install_root>/bin/setupClient.sh
    (with source)
    
    Error occurred
    ---
    dirname: invalid option --
    'b'
    Try 'dirname --help' for more information.
    -bash:
    //bin/sdk/_setupSdk.sh: No such file or directory
    ---
    

Local fix

  • Change setupClient.sh as follows:
    
    From
    ---
    {
     CUR_DIR=`pwd`
    
    WAS_DIR=`dirname ${0}`/../
     cd "${WAS_DIR}"
     WAS_HOME=`pwd`
     cd
    "${CUR_DIR}"
    }
    setWASHome
    ---
    
    To
    ---
    setWasHome()
    {
    
    WAS_DIR=`dirname $_`/../
     CUR_DIR=`pwd`
     cd "${WAS_DIR}"
    
    WAS_HOME=`pwd`
     cd "${CUR_DIR}"
    }
    ---
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server                                      *
    ****************************************************************
    * PROBLEM DESCRIPTION: "dirname: invalid option" when          *
    *                      sourcing setupClient.sh script          *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    When sourcing setupClient.sh, the script tries to set a
    directory variable using "dirname ${0}", but ${0}
    returns "-bash", the name of the shell, instead of the
    "setupClient.sh", the name of the shell script.
    

Problem conclusion

  • Changed setupClient.sh script to properly find the directory
    of setupClient.sh.
    
    This change will only be present in new installs, as
    bin/setupClient.sh is a "non-serviceable file" meaning
    the local file and any possible changes are preserved.
    
    For existing installs, the variable ´WAS_DIR´ can be
    explicitly overridden by the end user and future fixpacks will
    not replace the file.
    
    The fix for this APAR is targeted for inclusion in fix pack
    9.0.5.4.  For more information, see
    'Recommended Updates for WebSphere Application Server':
    http://www.ibm.com/support/docview.wss?rs=180&uid=swg27004980
    

Temporary fix

Comments

APAR Information

  • APAR number

    PH21352

  • Reported component name

    WEBS APP SERV N

  • Reported component ID

    5724H8800

  • Reported release

    900

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2020-01-23

  • Closed date

    2020-03-23

  • Last modified date

    2020-03-23

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    WEBS APP SERV N

  • Fixed component ID

    5724H8800

Applicable component levels

[{"Business Unit":{"code":"BU048","label":"IBM Software"}, "Product":{"code":"SSCVS22","label":"General"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"900","Edition":""}]

Document Information

Modified date:
23 March 2020