Tuesday, December 10, 2013

Clean up Weblogic temp files for improper shutdown or crash (... unable to get file lock, will retry ...)

When Weblogic crashes or initialized Shutdown process cut out, it will leave Administrative lock rights in temp files. When you check java process and see it but you can't open Admin console, that mean it is still in Shutdown process.

You might have the following errors:
... unable to get file lock, will retry ....
.../ldap/ldapfiles. Waiting for 10 seconds.....

Solution:
We need to go to Domains servers folder or search indicating that path:
$ cd /opt/app/ohw/Middleware/user_projects/domains/rep_domain/servers
$ find . -name "*.DAT"
./AdminServer/data/store/default/_WLS_ADMINSERVER000000.DAT
./AdminServer/data/store/diagnostics/WLS_DIAGNOSTICS000000.DAT


Remove all those .DAT files under /date/store/default and /diagnostics folder:
$ rm ./AdminServer/data/store/default/_WLS_ADMINSERVER000000.DAT
$ rm ./AdminServer/data/store/diagnostics/WLS_DIAGNOSTICS000000.DAT


Search for .lok files:
$ find . -name "*.lok"
./AdminServer/tmp/Adminserver.lok
./AdminServer/data/ldap/ldapfiles/
EmbeddedLDAP.lok

Remove them too:
$ rm ./AdminServer/tmp/Adminserver.lok
$ rm ./AdminServer/data/ldap/ldapfiles/EmbeddedLDAP.lok


Start your domain.

1 comment: