IBM Support

PI22849: AGENTS NOT STARTING ON SOLARIS 5.10 GETTING ERROR " ./AGENT: SYNTAX ERROR AT LINE 131: `WORKER_PROC_ID=$' UNEXPECTED"

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • after installing agents on the solaris box the client receives
    the following error:
    error " ./agent: syntax error at line 131: `WORKER_PROC_ID=$'
    unexpected"
    
    There is an issue with the line 131 of the agent script which
    are :
    
    if [ -e "$JDK_HOME/bin/jstack" ]; then
    WORKER_PROC_ID=$(ps -ef | grep
    "$AGENT_HOME/monitor/air-worker.jar" | grep java | grep -v grep
    | awk '{print $2}')
    $JDK_HOME/bin/jstack $WORKER_PROC_ID >
    $AGENT_HOME/var/log/thread_dump.out 2>
    $AGENT_HOME/var/log/shutdown.out
    $JDK_HOME/bin/jmap -F
    -dump:file=$AGENT_HOME/var/log/heap_dump.hprof $WORKER_PROC_ID >
    $AGENT_HOME/var/log/shutdown.out 2>&1
    fi
    
    running the agent results in the following error :
     ./agent: syntax error at line 131: `WORKER_PROC_ID=$'
    unexpected"
    

Local fix

  • as a temporary fix the user can comment out the aforementioned
    lines (starting from 131) and run the agent without any problem.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * Solaris Users                                                *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * after installing agents on the solaris box the client        *
    * receives                                                     *
    * the following error:                                         *
    * error " ./agent: syntax error at line 131:                   *
    * `WORKER_PROC_ID=$'                                           *
    * unexpected"                                                  *
    *                                                              *
    * There is an issue with the line 131 of the agent script      *
    * which                                                        *
    * are :                                                        *
    *                                                              *
    * if [ -e "$JDK_HOME/bin/jstack" ]; then                       *
    * WORKER_PROC_ID=$(ps -ef | grep                               *
    * "$AGENT_HOME/monitor/air-worker.jar" | grep java | grep -v   *
    * grep                                                         *
    * | awk '{print $2}')                                          *
    * $JDK_HOME/bin/jstack $WORKER_PROC_ID >                       *
    * $AGENT_HOME/var/log/thread_dump.out 2>                       *
    * $AGENT_HOME/var/log/shutdown.out                             *
    * $JDK_HOME/bin/jmap -F                                        *
    * -dump:file=$AGENT_HOME/var/log/heap_dump.hprof               *
    * $WORKER_PROC_ID >                                            *
    * $AGENT_HOME/var/log/shutdown.out 2>&1                        *
    * fi                                                           *
    *                                                              *
    * running the agent results in the following error :           *
    * ./agent: syntax error at line 131: `WORKER_PROC_ID=$'        *
    * unexpected"                                                  *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    

Problem conclusion

  • Fixed in IBM UrbanCode Deploy 6.1.0.2
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI22849

  • Reported component name

    UC DEPLOY

  • Reported component ID

    5725M5400

  • Reported release

    610

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2014-07-28

  • Closed date

    2014-08-25

  • Last modified date

    2015-06-01

  • 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

    UC DEPLOY

  • Fixed component ID

    5725M5400

Applicable component levels

  • R600 PSN

       UP

  • R600 PSY

       UP

  • R601 PSN

       UP

  • R601 PSY

       UP

  • R610 PSN

       UP

  • R610 PSY

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SS4GSP","label":"IBM UrbanCode Deploy"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"610","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
16 October 2021