Monday, June 25, 2012

Connection to the repository failed. Verify that the repository connection information provided is correct

Unable to start Oracle Enterprise Manager and getting the following messages:


./Oracle/Middleware/oms11g/bin/emctl start oms
Oracle Enterprise Manager 11g Release 1 Grid Control
Copyright (c) 1996, 2010 Oracle Corporation.  All rights reserved.
Starting WebTier...
WebTier Successfully Started
Starting Oracle Management Server...
Oracle Management Server is not functioning because of the following reason:
Connection to the repository failed. Verify that the repository connection information provided is correct.


[Thread-1] INFO  wls.OMSController run.1094 - <OUT>Successfully started server EMGC_OMS1 ...
[Thread-1] INFO  wls.OMSController run.1094 - <OUT>new status of EMGC_OMS1:
[Thread-1] INFO  wls.OMSController run.1094 - <OUT>
[Thread-1] INFO  wls.OMSController run.1094 - <OUT>RUNNING
[Thread-1] INFO  wls.OMSController run.1094 - <OUT>
[Thread-1] INFO  wls.OMSController run.1094 - <OUT>wait until EMGC_OMS1 becomes RUNNING
[Thread-1] INFO  wls.OMSController run.1094 - <OUT>
[Thread-1] INFO  wls.OMSController run.1094 - <OUT>RUNNING
[Thread-1] INFO  wls.OMSController run.1094 - <OUT>
[Thread-1] INFO  wls.OMSController run.1094 - <OUT>status of node manager:
[Thread-1] INFO  wls.OMSController run.1094 - <OUT>Currently connected to Node Manager to monitor the domain GCDomain.
[Thread-1] INFO  wls.OMSController run.1094 - <OUT>1
[Thread-1] INFO  wls.OMSController run.1094 - <OUT>Successfully disconnected from Node Manager.
[Thread-1] INFO  wls.OMSController run.1094 - <OUT>_END_
[Thread-2] INFO  wls.OMSController run.1094 - <ERR>_END_
[Main Thread] INFO  wls.OMSController processCmd.988 - wlst process is finished
[Main Thread] INFO  wls.OMSController processCmd.990 - wlst process exited with code 0
[Main Thread] INFO  wls.OMSController processCmd.992 - wlst outstream joined
[Main Thread] INFO  wls.OMSController processCmd.994 - wlst errstream joined
[Main Thread] DEBUG oms.StatusOMSCmd processStatusOMS.138 - HTTP port in emgc property file: <PORT>
[Main Thread] DEBUG oms.StatusOMSCmd processStatusOMS.139 - HTTPS port in emgc property file: <PORT>
[Main Thread] DEBUG oms.StatusOMSCmd processStatusOMS.155 - Using http port.
[Main Thread] DEBUG oms.StatusOMSCmd processStatusOMS.195 - Attempting to connect to http://hostname.domain.com:<PORT>/em/console/logon/logon
[Main Thread] DEBUG oms.StatusOMSCmd processStatusOMS.200 - page status code is 503
[Main Thread] DEBUG oms.StatusOMSCmd processStatusOMS.202 - header is 3
[Main Thread] INFO  wls.OMSController statusOMS.950 - statusOMS finished with result: 3
[Main Thread] INFO  wls.OMSController startOMS.603 - startOMS finished with result: 0
[Main Thread] DEBUG oms.StatusOMSCmd processStatusOMS.138 - HTTP port in emgc property file: <PORT>
[Main Thread] DEBUG oms.StatusOMSCmd processStatusOMS.139 - HTTPS port in emgc property file: <PORT>
[Main Thread] DEBUG oms.StatusOMSCmd processStatusOMS.155 - Using http port.
[Main Thread] DEBUG oms.StatusOMSCmd processStatusOMS.195 - Attempting to connect to http://hostname.domain.com:<PORT>/em/console/logon/logon
[Main Thread] DEBUG oms.StatusOMSCmd processStatusOMS.200 - page status code is 503
[Main Thread] DEBUG oms.StatusOMSCmd processStatusOMS.202 - header is 3
[Main Thread] INFO  wls.OMSController statusOMS.950 - statusOMS finished with result: 3
[Main Thread] DEBUG wls.OMSController main.167 - Log location is /home/oracle/Oracle/gc_inst/em/EMGC_OMS1/sysman/log/emctl.log
[Main Thread] INFO  wls.OMSController stopOMS.664 - istopAll is false
[Main Thread] INFO  wls.OMSController stopOMS.665 - isForce is false
[Main Thread] INFO  wls.OMSController stopOMS.666 - is service is false
[Main Thread] INFO  wls.OMSController getEnvProps.348 - Setting trust store system properties: -Dweblogic.security.TrustKeyStore=DemoTrust -Dweblogic.security.SSL.ignoreHostnameVerification=true -Djava.security.egd=file:///dev/urandom
[Main Thread] INFO  wls.OMSController stopOMS.682 - Stopping WebTier...
[Main Thread] INFO  util.WebTierUtil execCmd.134 - Running the command: /home/oracle/Oracle/gc_inst/WebTierIH1/bin/opmnctl stopall
[Main Thread] INFO  util.WebTierUtil getProcessResult.196 - opmnctl cmd output: opmnctl stopall: stopping opmn and all managed processes...

[Main Thread] INFO  util.WebTierUtil getProcessResult.204 - opmnctl cmd error: 
[Main Thread] INFO  util.WebTierUtil getProcessResult.208 - opmnctl cmd exited with code 0


Fix of this is very simple:

You are encountering this issue because EM is not able to connect to repository and in my case the listener was not running. Once the listener is started the Enterprise Manager was up.

 ./Oracle/Middleware/oms11g/bin/emctl start oms
Oracle Enterprise Manager 11g Release 1 Grid Control  
Copyright (c) 1996, 2010 Oracle Corporation.  All rights reserved.
Starting WebTier...
WebTier Successfully Started
Starting Oracle Management Server...
Oracle Management Server Successfully Started
Oracle Management Server is Up

1 comment:

Jae Markham said...

I am receiving the following error....
Starting WebTier...
WebTier Successfully Started
Starting Oracle Management Server...
Oracle Management Server Could Not Be Started
Oracle Management Server is not functioning because of the following reason:
Connection to the repository failed. Verify that the repository connection information provided is correct.
Please check /oracle/product/oms11g/em/EMGC_OMS1/sysman/log/emctl.log for error details

The Database is started...
The Listener is started...

Here is the log file info....
2013-05-01 20:19:59,194 [Thread-1] INFO wls.OMSController run.1094 - timed out waiting for EMGC_OMS1 to be RUNNING
2013-05-01 20:19:59,194 [Thread-1] INFO wls.OMSController run.1094 - status of node manager:
2013-05-01 20:19:59,194 [Thread-1] INFO wls.OMSController run.1094 - Currently connected to Node Manager to monitor the domain GCDomain.
2013-05-01 20:19:59,194 [Thread-1] INFO wls.OMSController run.1094 - 1
2013-05-01 20:19:59,201 [Thread-1] INFO wls.OMSController run.1094 - Successfully disconnected from Node Manager.
2013-05-01 20:19:59,203 [Thread-1] INFO wls.OMSController run.1094 - _END_
2013-05-01 20:19:59,203 [Thread-2] INFO wls.OMSController run.1094 - _END_
2013-05-01 20:19:59,219 [Main Thread] INFO wls.OMSController processCmd.988 - wlst process is finished
2013-05-01 20:19:59,220 [Main Thread] INFO wls.OMSController processCmd.990 - wlst process exited with code 1
2013-05-01 20:19:59,224 [Main Thread] INFO wls.OMSController processCmd.992 - wlst outstream joined
2013-05-01 20:19:59,224 [Main Thread] INFO wls.OMSController processCmd.994 - wlst errstream joined
2013-05-01 20:19:59,236 [Main Thread] DEBUG oms.StatusOMSCmd processStatusOMS.138 - HTTP port in emgc property file: 7202
2013-05-01 20:19:59,237 [Main Thread] DEBUG oms.StatusOMSCmd processStatusOMS.139 - HTTPS port in emgc property file: 7301
2013-05-01 20:19:59,237 [Main Thread] DEBUG oms.StatusOMSCmd processStatusOMS.155 - Using http port.
2013-05-01 20:19:59,393 [Main Thread] DEBUG oms.StatusOMSCmd processStatusOMS.195 - Attempting to connect to http://gridcontrol.compsv.cos.pri:7202/em/console/logon/logon
2013-05-01 20:19:59,612 [Main Thread] DEBUG oms.StatusOMSCmd processStatusOMS.200 - page status code is 503
2013-05-01 20:19:59,613 [Main Thread] DEBUG oms.StatusOMSCmd processStatusOMS.202 - header is 3
2013-05-01 20:19:59,613 [Main Thread] INFO wls.OMSController statusOMS.950 - statusOMS finished with result: 3
2013-05-01 20:19:59,613 [Main Thread] INFO wls.OMSController startOMS.603 - startOMS finished with result: 1
2013-05-01 20:19:59,613 [Main Thread] DEBUG oms.StatusOMSCmd processStatusOMS.138 - HTTP port in emgc property file: 7202
2013-05-01 20:19:59,614 [Main Thread] DEBUG oms.StatusOMSCmd processStatusOMS.139 - HTTPS port in emgc property file: 7301
2013-05-01 20:19:59,614 [Main Thread] DEBUG oms.StatusOMSCmd processStatusOMS.155 - Using http port.
2013-05-01 20:19:59,614 [Main Thread] DEBUG oms.StatusOMSCmd processStatusOMS.195 - Attempting to connect to http://gridcontrol.compsv.cos.pri:7202/em/console/logon/logon
2013-05-01 20:19:59,643 [Main Thread] DEBUG oms.StatusOMSCmd processStatusOMS.200 - page status code is 503
2013-05-01 20:19:59,643 [Main Thread] DEBUG oms.StatusOMSCmd processStatusOMS.202 - header is 3
2013-05-01 20:19:59,644 [Main Thread] INFO wls.OMSController statusOMS.950 - statusOMS finished with result: 3



Any thoughts would be greatly appreciated....