Wednesday, September 30, 2015

Unable to obtain an exclusive lock to embedded LDAP data files directory in Weblogic

ISSUE:


Could not obtain an exclusive lock to the embedded LDAP data files directory and due to this Admin Server was failing during startup.

ERROR OBSERVED:



Logs : $DOMAIN_NAME/servers/AdminServer/logs/AdminServer.out

<<

<Error> <EmbeddedLDAP> <BEA-171519> <Could not obtain an exclusive lock to the embedded LDAP data files directory: /u04/app/product/fusion/user_projects/domains/product_domain/servers/AdminServer/data/ldap/ldapfiles because another WebLogic Server is already using this directory. Ensure that the first WebLogic Server is completely shutdown and restart the server.>
<Notice> <WebLogicServer> <BEA-000365> <Server state changed to FAILED>
<Error> <WebLogicServer> <BEA-000383> <A critical service failed. The server will shut itself down>
<Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN>

>>

ROOT CAUSE:


Some time even after proper shutdown or forceful shutdown .lok file does not get removed automatically and when users try to restart the server again , since file is already present ,it fails to start the servers.

SOLUTION:


Step 1) Delete EmbeddedLDAP.lok file from below location
$cd DOMAIN_HOME/servers/AdminServer/data/ldap/ldapfiles
$ rm -rf EmbeddedLDAP.lok

Step 2) Restart Weblogic Admin Server and retest issue.

No comments:

Post a Comment

Other Posts