Saturday 18 April 2015

Server failed during startup and moving to FAILED_NOT_RESTARTABLE

========================================================================
Applies To:
OSB - version 11.1.1.7.0
WLS - 10.3.6
========================================================================
Problem:
Today one of my client reported that he is not able to restart the managed sever and it's moving to FAILED_NOT_RESTARTABLE.

***************************************************
*  To start WebLogic Server, use a username and   *
*  password assigned to an admin-level user.  For *
*  server administration, use the WebLogic Server *
*  console at http://hostname:port/console        *
***************************************************
starting weblogic with Java version:
java version "1.6.0_45"
Java(TM) SE Runtime Environment (build 1.6.0_45-b06)
Oracle JRockit(R) (build R28.2.7-7-155314-1.6.0_45-20130329-0641-linux-x86_64, compiled mode)
/u01/domains/poc/osb/bin/startWebLogic.sh: line 179: syntax error near unexpected token `fi'
/u01/domains/poc/osb/bin/startWebLogic.sh: line 179: `fi'
<Apr 1, 2015 12:40:15 AM> <FINEST> <NodeManager> <Waiting for the process to die: 2919>
<Apr 1, 2015 12:40:15 AM> <INFO> <NodeManager> <Server failed during startup so will not be restarted>
<Apr 1, 2015 12:40:15 AM> <FINEST> <NodeManager> <runMonitor returned, setting finished=true and notifying waiters>
========================================================================
Cause:
Logs clearly says there is problem with the startWebLogic.sh which is having invalid syntax.
On investigation found that it was modified recently and having invalid syntax for token "fi". 
If conditional statement wasn't properly used.
========================================================================
Solution:
Correct the syntax for if conditional statement used in startWebLogic.sh. 
Example is given below,

if [ condition ]; then 
............
fi

In my case, extra "fi" was used at the end of if statement so have to remove that extra "fi" and restart server.

No comments:

Post a Comment