Error: Health Status Unknown in vCenter Server Management Interface (VAMI)
search cancel

Error: Health Status Unknown in vCenter Server Management Interface (VAMI)

book

Article ID: 430166

calendar_today

Updated On:

Products

VMware vCenter Server VMware vSphere ESXi VMware Telco Cloud Platform

Issue/Introduction

  • Summary page of VAMI is shown as below :



  • vCenter GUI will be inaccessible.
  • Logs on vCenter server located at /var/log/vmware/applmgmt/applmgmt.log shows entries similar to:

    • NOTE : Do not execute this KB if you do not see the below messages in the logs, "Unknown" status is commonly seen when logging in with [email protected] while services are down. If we do not find any of the below log events then the issue would be mostly with expired certificates. Use the KB : 385107 to replace the expired certificates if found.


    YYYY-MM-DDThh:mm:ss [19271]ERROR:vmware.appliance.monitoring.statsMonitor:Failed to initialize stats retrieval module. Error: no such table: request_mapping
    YYYY-MM-DDThh:mm:ss [19271]ERROR:vmware.vapi.provider.local:Error in invoking com.vmware.appliance.health in messages - 'Failed to initialize stats retrieval module. Error: no such table: request_mapping'
    Traceback (most recent call last):
      File "/usr/lib/applmgmt/monitoring/py/vmware/appliance/monitoring/statsMonitor.py", line 201, in constructStatTableMap
        cur.execute(CMD_GET_STAT_TABLE_OBSERVABILITY)
    sqlite3.OperationalError: no such table: request_mapping

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "/usr/lib/applmgmt/vapi/lib/vapi_runtime-2.100.0-py2.py3-none-any.whl/vmware/vapi/provider/local.py", line 277, in invoke
        method_result = self._invoke_int(
      File "/usr/lib/applmgmt/vapi/lib/vapi_runtime-2.100.0-py2.py3-none-any.whl/vmware/vapi/provider/local.py", line 249, in _invoke_int
        method_result = iface.invoke(ctx, method_id, input_value)
      File "/usr/lib/applmgmt/vapi/lib/vapi_runtime-2.100.0-py2.py3-none-any.whl/vmware/vapi/bindings/skeleton.py", line 371, in invoke
        meth_output = method(**meth_args)
      File "/usr/lib/applmgmt/health/py/vmware/appliance/health/healthmsg_impl.py", line 58, in messages
        resourceHealth.fetchHealth()
      File "/usr/lib/applmgmt/health/py/vmware/appliance/health/healthUtil.py", line 132, in fetchHealth
        self.contents = self._stats_calculator.calculate()
      File "/usr/lib/applmgmt/monitoring/py/vmware/appliance/monitoring/stats.py", line 905, in calculate
        reader = StatsReader(None)
      File "/usr/lib/applmgmt/monitoring/py/vmware/appliance/monitoring/statsMonitor.py", line 323, in __init__
        super(StatsReader, self).__init__(dbPath)
      File "/usr/lib/applmgmt/monitoring/py/vmware/appliance/monitoring/statsMonitor.py", line 159, in __init__
        self.statsmap = self.constructStatTableMap()
      File "/usr/lib/applmgmt/monitoring/py/vmware/appliance/monitoring/statsMonitor.py", line 210, in constructStatTableMap
        raise FailedToInitialize("Failed to initialize stats retrieval"
    vmware.appliance.monitoring.statsMonitor.FailedToInitialize: 'Failed to initialize stats retrieval module. Error: no such table: request_mapping

Environment

vCenter Server 8.x

Cause

This issue occurs due to corruption in one of the database instances within the VMware vCenter Server appliance.

Resolution

If you encounter the symptoms outlined above, open a support ticket by following the steps outlined in the KB: Creating and managing Broadcom support cases for further assistance, as the resolution involves modifying vCenter server database instance, which should be performed with caution.

NOTE : The unknown status is seen even if the user has logged in using [email protected]  to VAMI and the services are down. If we do not find any of the above log events in the symptoms then the issue would be mostly with expired certificates. Use the KB : 385107 to replace the expired certificates if found.