Thursday, April 10, 2014

weblogic.management.ManagementException:Unable to obtain lock on tmp/AdminServer.lok. Server may already be running

Error:  <Warning> <EmbeddedLDAP> <BEA-171520> <Could not obtain an exclusive lock for directory: ./servers/AdminServer/data/ldap/ldapfiles. Waiting for 10 seconds and then retrying in case existing WebLogic Server is still shutting down.>

Unable to obtain lock on AdminServer.lok
  
Issue: This error seen when the server is stopped abruptly. A graceful restart would remove all the loks and allow a fresh restart of the Weblogic application server. However, If you kill the server manually or if the server crashes abruptly, The loks will not be cleared.

Solution:

-> The AdminServer.lok will be present in /tmp directory of the weblogic root folder. Manually delete the AdminServer.lok and try restarting the server.
-> The EmbeddedLDAP.lok will be present in /servers/AdminServer/data/ldap/ldapfiles. Delete the file manually.

This should resolve the issue. The server will be started without any further exceptions.

0 comments:

Post a Comment