Thursday, February 2, 2012

Backend WLS or EM application seems to be down

A few days ago, the server, where OMS and its DB reside, crushed.
After we restarted it, whenever we tried to access the grid console, we got error "Backend WLS or EM application seems to be down".
Agents failed to upload XML files to OMS and "emctl pingOMS" was giving an error "EMD pingOMS error: No response header from OMS".
We checked WebLogic and OMS .trc, .log and .out files, but there was no error recorded, neither before nor after the crush.

To correct this issue:

    1. Stop OMS
     emctl stop oms -all

    2. Kill -9 all WebLogic and OMS processes still running after the stop. You can find these processes, using ps.
     ps -ef | grep EMGC_ADMINSERVER
     ps -ef | grep EMGC_OMS1
     ps -ef | grep oms

    3. Delete every .lok file you find under WebLogic Domain
     find . -name "*.lok"

    These files were:

    4. Start OMS
     emctl start oms

The best matching Oracle Documents about this incident are:
  • ID 943790.1: What are the .lok Files Used For in a WebLogic Server (WLS) Domain? In general, these files are a mechanism to ensure file and server locks and to prevent a server from being booted twice.
  • ID 957377.1: Weblogic Fails To Start With Error "Unable To Obtain Lock"
  • ID 1235753.1: 11g Grid Control: OMS Startup Shows "AdminServer Could Not Be Started" but OMS is able to Startup
Another cause for this error could be incorrect entries in your /etc/hosts file.
Your entry should be exactly like:    localhost.localdomain    localhost

And you should remove any entry about IPv6, so delete or comment:
::1    localhost6.localdomain6    localhost6


  1. You have save my day. Thank you.

  2. what was the version of the grid control where you faced this issue, 11g or 12c?

  3. Thanks! You saved a ton of my Time Today! Thanks! BTW this solution works for 12c also!


  4. Am greatful!! this helped me today.

  5. Thanks man, this procedure saved my bacon today.

  6. Great!! Thanks!!

  7. Great & Thanks !!

    It helped me in resolving the issue.