Thursday 31 March 2016

Weblogic Server not coming up using script startWebLogic



Issue:

Weblogic service is not coming up  using script (startWebLogic.sh).

Dec 10, 2014 6:44:29 PM AST> <Critical> <WebLogicServer> <BEA-000362> <Server failed. Reason: Could not obtain an exclusive lock to the embedded LDAP data files directory
<01/06/2012 10:56:47 AM EST> <Error> <Store> <BEA-280061> <The persistent store "_WLS_AdminServer" could not be deployed: weblogic.store.PersistentStoreException: [Store:280105]The persistent file store "_WLS_AdminServer" cannot open file _WLS_ADMINSERVER000000.DAT
<MW_HOME>/user_projects/domains/IDMDomain/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.>
<Dec 10, 2014 6:44:29 PM AST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FAILED>
<Dec 10, 2014 6:44:29 PM AST> <Error> <WebLogicServer> <BEA-000383> <A critical service failed. The server will shut itself down>
<Dec 10, 2014 6:44:29 PM AST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN>



Casue:

Weblogic service fails to start for many reasons:

1. Force shutdown of the Weblogic Service.
2. Unable to lock the files required to start the service.

Solution:

1. Navigate to Idapfiles location under server and delete the “EmbeddedLDAP.lok” file from there, location would be e.g.<MW_HOME>/user_projects/domains/<Domain_Name>/servers/AdminServer/data/ldap/ldapfiles

EmbeddedLDAP.lok” won't allow Admin server to come up, then perform the following additional steps.

1. cd $DomainHome/servers/AdminServer/data/store
2. find . –name *.DAT
3. Verify the file name in your result and error message should be same.
4. Rename this file and move from this directory to some other directory.
5. find "EmbeddedLDAP.lok" and "AdminServer.lok" as well and remove the same.
6. check the port using netstat –an | grep <Weblogic server port>, there should not be any open connection to this port.
7. Start your weblogic server either via weblogic script or node manner.


Note: .DAT file is very important file, and contains business data as well in Production system. Please take a backup of this file before doing any operation on it, so that later this file can be analysed to complete those transaction.


No comments:

Post a Comment


No one has ever become poor by giving