December 5, 2010

BEA-000362 due to "Unable to obtain lock" on AdminServer lock file

Problem:

When starting up the Oracle WebLogic 11g AdminServer, you may get the following error:
<Dec 3, 2010 8:57:32 AM EST> <Critical> <WebLogicServer> <BEA-000362> <Server failed. Reason:

There are 1 nested errors:

weblogic.management.ManagementException: Unable to obtain lock on /u01/app/oracle/middleware/user_projects/domains/soa_domain/servers/AdminServer/tmp/AdminServer.lok. Server may already be running
        at weblogic.management.internal.ServerLocks.getServerLock(ServerLocks.java:159)
        at weblogic.management.internal.ServerLocks.getServerLock(ServerLocks.java:58)
        at weblogic.management.internal.DomainDirectoryService.start(DomainDirectoryService.java:74)
        at weblogic.t3.srvr.ServerServicesManager.startService(ServerServicesManager.java:461)
        at weblogic.t3.srvr.ServerServicesManager.startInStandbyState(ServerServicesManager.java:166)
        at weblogic.t3.srvr.T3Srvr.initializeStandby(T3Srvr.java:802)
        at weblogic.t3.srvr.T3Srvr.startup(T3Srvr.java:489)
        at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:446)
        at weblogic.Server.main(Server.java:67)

>
<Dec 3, 2010 8:57:32 AM EST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FAILED>
<Dec 3, 2010 8:57:32 AM EST> <Error> <WebLogicServer> <BEA-000383> <A critical service failed. The server will shut itself down>
<Dec 3, 2010 8:57:32 AM EST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN>
Solution:

1. Shutdown the AdminServer gracefully as follows:
export MW_HOME=/u01/app/oracle/middleware
export DOMAIN_HOME=$MW_HOME/user_projects/domains/soa_domain
$DOMAIN_HOME/bin/stopWebLogic.sh
2. Remove the lock file:
rm /u01/app/oracle/middleware/user_projects/domains/soa_domain/servers/AdminServer/tmp/AdminServer.lok
3. Restart the AdminServer as follows, and you should be okay:
export MW_HOME=/u01/app/oracle/middlware
export DOMAIN_HOME=$MW_HOME/user_projects/domains/soa_domain
cd $DOMAIN_HOME/bin
nohup $DOMAIN_HOME/bin/startWebLogic.sh &
Applicable Versions:
  • Oracle WebLogic 11g (11.1.1.x)

19 comments:

  1. hi .....

    i got same issue but i didnot find any .lok gile in the folder admin server please help me on this...............

    ReplyDelete
  2. Hi
    i tried the same but getting the same error, even after removing the lock file from the adminserver temp directory.

    Regards,
    Giribabu L

    ReplyDelete
  3. I am also getting the same error. Removed all the mentioned .loc files but did not work.

    ReplyDelete
  4. This content creates a new hope and inspiration with in me. Thanks for sharing article like this. The way you have stated everything above is quite awesome. Keep blogging like this. Thanks.
    SMO Services Chennai

    ReplyDelete

  5. Wow it is really wonderful and awesome thus it is very much useful for me to understand many concepts and helped me a lot. thus it is very well good and really nice and informative.

    Online Reputation Management

    ReplyDelete
  6. Venta las nueva camiseta futbol barata 2016-2017,camiseta seleccional, comprar Real Madrid,Barcelona,Chelsea,Manchester City ,mujer,nino con la buena calidad y mejor precio en la
    Camisetas de futbol baratascamisetas AC Milan
    camisetas As Roma baratas
    camisetas Inter Milan

    ReplyDelete
  7. This Arizona Cardinals Double Sided House Flag measures 28x40 inches and provides a 2.5 inch top sleeve for insertion of a flagpole or banner pole. Our Arizona Cardinals Double Sided House Flag hangs vertically, is made of 100% thick polyester, features permanent Screen Printed NFL team logos, and is Viewable and Readable Correctly on Both Sides with each side having a different design (Helmet Logo and Team Logo).
    Detroit Lions flags
    Green Bay Packers flags
    Houston Oilers flags wholesale flags

    ReplyDelete
  8. La maglia Chelsea 2016-17 introduce un design audace per il club di Londra, che unisce toni scuri con accenti di colore giallo brillante. Il Chelsea 16-17 lontano maglie è stato rilasciato questa mattina.calcio shop italia,nuove maglia calcio serie a Maglia Barcelona vendita
    Maglia Deportivo shop

    ReplyDelete
  9. Il logo Nike è ancora una volta arancione, così come la maggior parte della scollatura della camicia 16-17 Roma.I corti del maglia Roma 2016-17 sono della stessa, rosso scuro come il rivestimento, mentre le calze sono di colore arancione.calcio italia online shop,calcio shop italia,maglitte calcio serie a, Maglia Barcelona vendita
    Maglia Deportivo shop

    ReplyDelete
  10. Superb. I really enjoyed very much with this article here. Really it is an amazing article I had ever read. I hope it will help a lot for all. Thank you so much for this amazing posts and please keep update like this excellent article.thank you for sharing such a great blog with us. expecting for your.

    seo company in india

    ReplyDelete
  11. It’s amazing in support of me to have a site, which is useful in support of my know-how. thanks admin|, you surely come with remarkable articles. Cheers for sharing your website page.Excellent blog here...


    MSBI Training in Chennai

    Informatica Training in Chennai

    ReplyDelete
  12. Great post! I am actually getting ready to across this information, is very helpful my friend. Also great blog here with all of the valuable information you have Keep up the good work you are doing here.Well, got a good knowledge.

    SEO Company in India|Digital Marketing Company in Chennai

    ReplyDelete
  13. Thanks for the informative article. This is one of the best resources I have found in quite some time. Nicely written and great info. I really cannot thank you enough for sharing.

    Digital Marketing Company in India

    ReplyDelete
  14. we have almost all country students as our subscribers for online course.We have 10+ years of experience
    we can serve various ascent people. oracle fusion Cloud HCM online training at erptree.com is worlds best
    online training center. we have excelent knowledge sharing Platform we have user friendly website where you
    will be provided with all the required details and Self-paced DEMO videos. we have our branches in pune,
    gurgaon, noida, india, usa, uk, uae, oracle fusion hcm training, fusion Procurement training, fusion hcm,
    scm training


    Oracle Fusion Cloud HCM Training

    ReplyDelete

  15. Learning new technolgy would help oneself at hard part of their career. And staying updated is the only way to survive in current position. Your content tells the same. Thanks for sharing this information in here. Keep blogging like this.

    Mobile App Development Company in India

    ReplyDelete