Thursday, 10 October 2019

BEA-141281 unable to get file lock, will retry ...[Fixed] Weblogic Error

Dear DBA-mates, Hope you all are doing great!!!
[Fixed] Weblogic Error: ><BEA-141281> <unable to get file lock, will retry ...>

Recently, while starting the weblogic services we found this below error. This is very common error for any weblogic DBAs. And almost people may know the solution.

But if a DBA working in PROD, at least once he will check either in google or colleagues to kill the process in PROD.

So, we thought lets share this error with you all for future references without any doubts.

weblogic java error:
<Sep 16, 2019 11:04:18 AM EDT> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) Client VM Version 20.45-b01 from Sun Microsystems Inc.>
<Sep 16, 2019 11:04:29 AM EDT> <Info> <Management> <BEA-141281> <unable to get file lock, will retry ...>
<Sep 16, 2019 11:04:39 AM EDT> <Info> <Management> <BEA-141281> <unable to get file lock, will retry ...>
<Sep 16, 2019 11:04:49 AM EDT> <Info> <Management> <BEA-141281> <unable to get file lock, will retry ...>

$tail -f nohup.out
<Sep 16, 2019 11:04:18 AM EDT> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) Client VM Version 20.45-b01 from Sun Microsystems Inc.>

<Sep 16, 2019 11:04:29 AM EDT> <Info> <Management> <BEA-141281> <unable to get file lock, will retry ...>

<Sep 16, 2019 11:04:39 AM EDT> <Info> <Management> <BEA-141281> <unable to get file lock, will retry ...>

Solution:

$ps ucx

Here, it will show all the running process.

Check for the JAVA process and kill it.

$kill -9 <java process>

Again start the services, it will work.

Work around -2:

If still not working then you need to check the .lok file and remove that and then again start the services.

First either bring down the weblogic services or kill the process including java process and then remove the .lok file.

Expected Path:

../Middleware/user_projects/domains/<your domain name>/servers/<mostly AdminServer>/tmp

You can find out .lok file. You either rename it or remove it.

From AdminServer directory, you can use below commands to find out the *.lok files also:

$find . –name *.lok –exec ls –ltr {} \;

Note: Always be careful and 100 % sure while removing any files.

Some more useful links:
Regards,

8 comments:

  1. I've learn several good stuff here. Certainly value bookmarking for revisiting.

    I surprise how a lot attempt you place to make any such fantastic informative site.

    ReplyDelete
  2. I have read so many articles about the blogger lovers except this paragraph is truly a fastidious paragraph, keep it up.

    ReplyDelete
  3. Wow, marvelous blog layout! How long have you been blogging for?
    you make blogging look easy. The overall look of your site is great,
    let alone the content!

    ReplyDelete
  4. excellent points altogether, you simply gained a emblem new reader.
    What could you suggest about your put up that you
    just made some days ago? Any certain?

    ReplyDelete

  5. Dear User,

    Thank you for your support and nice feedback.

    Regards,
    ora-data Team

    ReplyDelete


  6. Dear User,

    Thank you for your support and nice feedback.

    Regards,
    ora-data Team

    ReplyDelete
  7. Hello! I know this is kind of off topic but I was wondering if you knew where I could find a captcha plugin for my comment form?
    I'm using the same blog platform ass yours and I'm having problems finding one?
    Thanks a lot!

    ReplyDelete
  8. Thank v much,solution suggested has helped to continue my work with developer11g.

    ReplyDelete

Thank you for your comments and suggestions. It's good to talk you.