How to solve lock to the embedded LDAP data files directory

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


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>”

 

go to DOMAIN_HOME/servers/AdminServer/data/ldap/ldapfiles

and delete EmbeddedLDAP.lok file

For example,
Unix/Linux
rm /home/test-user/test/user_projects/domains/sample_domain/servers/AdminServer/data/ldap/ldapfiles/EmbeddedLDAP.lok

For windows
C:/Oracle/Middleware/user_projects/domains/sample_domain/servers

/AdminServer/data/ldap/ldapfiles/EmbeddedLDAP.lok

2 thoughts on “How to solve lock to the embedded LDAP data files directory

Leave a Reply

Your email address will not be published. Required fields are marked *