Monday, February 8, 2016

Failed Not Restartable in WebLogic Managed Server

FAILED_NOT_RESTARTABLE _STATE


Reasons of this error
  • WebLogic Server which you are trying to start is already running.
  • WebLogic Server which you are trying to start did not stop cleanly.

By default when weblogic server starts, it creates two lock files
  • DOMAIN_HOME/servers/Maganged_server_name/tmp/servermame.lok
  • DOMAIN_HOME/servers/Maganged_server_name/data/ldap/ldapfiles/EmbeddedLDAP.lok

When WebLogic server stops, it removes these two files. If you not stop server properly these lock files remains on that location and creating a problem when you attempt to start a server again and after more than one attempt your server goes in FAILED_NOT_RESTARTABLE state.


Note: There could be other process using this port
How you can identify which port is configured for weblogic server?
To identify port configured for weblogic server open weblogic configuration file
DOMAIN_HOME/config/config.xml and search for listen-port
You should see entry like
<listen-port>7003</listen-port>
Solution:-
If server is not running then you can safely remove these lok files under WebLogic server. And if server is running then trying to stop it from console, backend or by killing the process id of the particular server then remove the .lok files.

Note: If this is weblogic managed server (not Admin Server) then you can safely remove entire managed server directory (including sub directories) DOMAIN_HOME/servers/serverName or rename it as a backup. When you start managed server again, Admin Server will create these directories. 

No comments:

Post a Comment