Fixing the VAMI backup which is failing due to the VCHA service
Symptoms:
The vCenter Server VAMI Backup fails with error:
Manually starting VCHA fails with the following error
Getting the following logs in /var/log/vmware/applmgmt/backupScheduler.log
YYYY-MM-DDTHH:MM:SS [0] [MainProcess:PID-37026] [Scheduler::ExecScheduleRun:Scheduler.py:138] ERROR: Failed to issue the Schedules.run request. Exception: {messages : [LocalizableMessage(id='com.vmware.applmgmt.err_invalid_vc_status', default_message="Invalid vCenter Server Status: All required services are not up! Stopped services: 'vcha'.", args=['vcha'], params=None, localized=None)], data : None, error_type : None}Traceback (most recent call last): File "/usr/lib/applmgmt/backup_restore/py/vmware/appliance/backup_restore/Scheduler.py", line 133, in ExecScheduleRun status = svc_handle.run(scheduleId, comment='SCHEDULED') File "/usr/lib/applmgmt/pyclient/applmgmt_client-1.0-py2.7.egg/com/vmware/appliance/recovery/backup_client.py", line 1171, in run 'comment': comment, File "/usr/lib/applmgmt/vapi/lib/vapi_runtime-2.100.0-py2.py3-none-any.whl/vmware/vapi/bindings/stub.py", line 345, in _invoke return self._api_interface.native_invoke(ctx, _method_name, kwargs) File "/usr/lib/applmgmt/vapi/lib/vapi_runtime-2.100.0-py2.py3-none-any.whl/vmware/vapi/bindings/stub.py", line 298, in native_invoke self._rest_converter_mode)com.vmware.vapi.std.errors_client.Error: {messages : [LocalizableMessage(id='com.vmware.applmgmt.err_invalid_vc_status', default_message="Invalid vCenter Server Status: All required services are not up! Stopped services: 'vcha'.", args=['vcha'], params=None, localized=None)], data : None, error_type : None} YYYY-MM-DDTHH:MM:SS [0] [MainProcess:PID-38330] [Scheduler::ExecArchiveList:Scheduler.py:120] ERROR: Failed to issue the Archive.list request. Exception: {messages : [LocalizableMessage(id='vapi.method.invoke.exception', default_message="Error in method invocation 'NoneType' object is not subscriptable", args=["'NoneType' object is not subscriptable"], params=None, localized=None)], data : None, error_type : INTERNAL_SERVER_ERROR}Traceback (most recent call last): File "/usr/lib/applmgmt/backup_restore/py/vmware/appliance/backup_restore/Scheduler.py", line 116, in ExecArchiveList backupList = svc_handle.list(locationSpec, systemName, filterSpec) File "/usr/lib/applmgmt/pyclient/applmgmt_client-1.0-py2.7.egg/com/vmware/appliance/recovery/backup/system_name_client.py", line 289, in list 'filter_spec': filter_spec, File "/usr/lib/applmgmt/vapi/lib/vapi_runtime-2.100.0-py2.py3-none-any.whl/vmware/vapi/bindings/stub.py", line 345, in _invoke return self._api_interface.native_invoke(ctx, _method_name, kwargs) File "/usr/lib/applmgmt/vapi/lib/vapi_runtime-2.100.0-py2.py3-none-any.whl/vmware/vapi/bindings/stub.py", line 298, in native_invoke self._rest_converter_mode)com.vmware.vapi.std.errors_client.InternalServerError: {messages : [LocalizableMessage(id='vapi.method.invoke.exception', default_message="Error in method invocation 'NoneType' object is not subscriptable", args=["'NoneType' object is not subscriptable"], params=None, localized=None)], data : None, error_type : INTERNAL_SERVER_ERROR}
The vCenter Appliance is attempting to automatically start the vcha service, but vCenter High Availability (VCHA) is not configured in the environment. This causes the vcha service to fail and report an UNHEALTHY status, which consequently blocks dependent operations like VAMI backups from completing successfully.
Starttype as AUTOMATICName: vchaStarttype: AUTOMATICRunState: STOPPEDRunAsUser: rootCurrentRunStateDuration(ms): 67159080HealthState: UNHEALTHYFailStop: TRUEMainProcessId: N/A
Name: vchaStarttype: DISABLEDRunState: STOPPEDRunAsUser: rootCurrentRunStateDuration(ms): 67159074HealthState: UNHEALTHYFailStop: TRUEMainProcessId: N/A
/usr/lib/vmware-vmon/vmon-cli --status vcha to confirm the VCHA service startup type is still DISABLED