Unable to query vSphere health information. Check vSphere Client logs for details. vmware-analytics failed to start
search cancel

Unable to query vSphere health information. Check vSphere Client logs for details. vmware-analytics failed to start

book

Article ID: 336087

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction





Service-control failed. Error: Failed to start services in profile ALL. RC=2, stderr=Failed to start analytics services. Error: Service crashed while starting

analytics log:
-----------------
2021-05-18T12:19:46.520-07:00 main  INFO  vmware.ph.phservice.service.Main Starting service
2021-05-18T12:19:46.557-07:00 main  INFO  org.springframework.context.support.ClassPathXmlApplicationContext Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@21a06946: startup date [Tue May 18 12:19:46 PDT 2021]; root of context hierarchy
2021-05-18T12:19:46.713-07:00 main  FATAL vmware.ph.phservice.service.Main Error starting service:
org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to import bean definitions from relative location [ph-common.xml]
Offending resource: class path resource [phservice.xml]; nested exception is org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 4 in XML document from class path resource [ph-common.xml] is invalid; nested exception is org.xml.sax./; lineNumber: 4; columnNumber: 8; Attribute name "c" associated with an element type "beans" must be followed by the ' = ' character.
        at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:70)
        at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:118)
        at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:103)
*Error complain about entries in ph-common.xml file inside /etc/vmware-analytics folder

Environment

VMware vCenter Server 7.0.x

Cause

ph-common.xml file inside /etc/vmware-analytics folder is corrupted with missing entries

Resolution

  1. Replace the file , by taking the same file from a working vCenter of same version or restoring the file from a file-level backup

  2. Start the service

    service-control --start vmware-analytics

Additional Information

Impact/Risks:
vmware-analytics fails to start and skyline health will not work.