Http://gdutlzh.blog.163.com/blog/static/164746951201291903824812/ <BEA-141281> <unable to get file lock, will retry...>
I ran into this error the first time I restarted WebLogic on one of my instals, the only reference that I was able to find is the error description below:
BEA-141281 |
Info:Unable to get file lock, will retry...
Description |
This message indicates that WLS can not get file lock because other process still holds the lock. W ls will try again before timeout. |
Cause |
This is an information-level message only. |
Action |
If WLS fails to start due to unable to get file lock, then lock files need to be removed manually before restart WLS. |
|
The funny thing is that it tells you want to remove the locks but doesn't provide their location, if you are running obiee 11G you can remove adminserver. Lok from:
D: \ oracle \ fmw \ user_projects \ Domains \ bifoundation_domain \ servers \ adminserver \ TMP
If you are not using weblogic in the context of Oracle busines intelligence you can do a file search for any Lok files under your middleware home (D: \ oracle \ fmw ).
------------------------------------------------
Overview
Because the previous server was directly down and all processes were shut down abnormally, the following error was reported the next time WebLogic was started:
<2012-3-2 05:08:34 P.M. CST> <info> <Management> <BEA-141281> <unable to get file lock, will retry...>
<2012-3-2 05:08:44 P.M. CST> <info> <Management> <BEA-141281> <unable to get file lock, will retry...>
Solution
1. Delete the *. Lok file under domain
1. Delete edit. Lok
Go to domain_home:
CD/u01/Oracle/middleware/user_projects/domains/idm_domain
Delete the edit. Lok File
Rm edit. Lok
2. Delete config. Lok
Go to domain_home/config:
CD/u01/Oracle/middleware/user_projects/domains/idm_domain/config/
Delete the config. Lok File
Rm config. Lok
3. Delete adminserver. Lok
CD/u01/Oracle/middleware/user_projects/domains/idm_domain/servers/adminserver/tmp
Rm adminserver. Lok
4. Delete embeddedldap. Lok
/U01/Oracle/middleware/user_projects/domains/idm_domain/servers/adminserver/data/ldap/ldapfiles
Rm embeddedldap. Lok
2. Delete the *. dat file under domain:
Enter domain_home
CD/u01/Oracle/middleware/user_projects/domains/idm_domain
Found File deleted
[[Email protected] idm_domain] $ find servers/-name "*. dat"
Servers/adminserver/data/store/diagnostics/wls_diagnostics000000.dat
Servers/adminserver/data/store/default/_ wls_adminserver000000.dat
Restart weblogic!
<BEA-141281> <unable to get file lock, will retry...>