EM Hangs on Startup with OSGI Message

Document ID : KB000071620
Last Modified Date : 22/02/2018
Show Technical Document Details
Question:
  On startup, the Enterprise Manager hangs for an hour or more. The last messages in the log look like this:

org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor timeout
WARNING: Timeout occurred before finding service dependencies for [OsgiBundleXmlApplicationContext(bundle=com.wily.apm.em.monitor.entity.dependency, config=osgibundle:/META-INF/spring/*.xml)]

The EM was working just fine previously.
Environment:
  Enterprise Manager (Collector, Stand Alone, or MOM) for all supported releases.
Answer:
  This problem can be caused by corruption of the Traces Database - which stores Transaction Trace data.
To fix this:
  1. Stop the EM
  2. Locate the traces DB folder.  By default, it is in the <EM_HOME>\traces folder, To check look in the IntroscopeEnterpriseManager.properties file for the introscope.enterprisemanager.transactionevents.storage.dir setting - this stores where the traces folder is located.
  3. Rename the traces folder
  4. Restart the EM. It will automatically recreate the traces DB at the same location