Not able to start the server: Unable to obtain lock

Not able to start the server: Unable to obtain lock

Not able to start the server: Unable to obtain lock

Please find below error and solution for weblogic issue- Not able to start the server: Unable to obtain lock

ERROR:

<Critical> <WebLogicServer> <BEA-000362> <Server failed. Reason:
There are 1 nested errors:
weblogic.management.ManagementException: Unable to obtain lock on $Domain_name/servers/$server_name tmp\AdminServer.lok. Server may already be running
at weblogic.t3.srvr.ServerServicesManager.startInStandbyState(ServerServicesManager.java:164)
at weblogic.t3.srvr.T3Srvr.initializeStandby(T3Srvr.java:711)
at weblogic.t3.srvr.T3Srvr.startup(T3Srvr.java:482)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:440)
at weblogic.Server.main(Server.java:67)
>
<May 13, 2012 8:34:54 PM IST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FAILED>
<May 13, 2012 8:34:54 PM IST> <Error> <WebLogicServer> <BEA-000383> <A critical service failed. The server will shut itself down>
<May 13, 2012 8:34:54 PM IST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN>

SOLUTION:

If the server is already running then ignore this error
If you are unable to start the server delete lok file and restart the server.

Rm -rf $Domain_name/servers/$server_name tmp\AdminServer.lok

 

For more such weblogic issues and resolution click here.

Latest Weblogic Interview Questions and Answers