service-control --start --all the following errors are seen:
} service-control --status --all shows lookupsvc stuck in Start Pending status, while other critical services like vmafdd are Stopped.# service-control --status --allRunning: observability vmware-envoy vmware-envoy-hgw vmware-envoy-sidecar vmware-postgres-archiver vmware-rhttpproxy vmware-vdtc vmware-vmon vmware-vpostgres vtsdbStartPending: lookupsvcStopped: applmgmt lwsmd observability-vapi pschealth vc-ws1a-broker vlcm vmafdd vmcad vmcam vmdird vmonapi vmware-analytics vmware-certificateauthority vmware-certificatemanagement vmware-cis-license vmware-content-library vmware-eam vmware-hvc vmware-imagebuilder vmware-infraprofile vmware-netdumper vmware-perfcharts vmware-pod vmware-rbd-watchdog vmware-sca vmware-sps vmware-stsd vmware-topologysvc vmware-trustmanagement vmware-updatemgr vmware-vapi-endpoint vmware-vcha vmware-vpxd vmware-vpxd-svcs vmware-vsan-health vmware-vsm vsphere-ui vstats wcp
/var/log/vmware/lookupsvc/lookupsvc.log reveals connectivity failures to the Authentication Framework Daemon[YYYY-MM-DDTHH:MM:SS] WARNING Endpoint /lookupservice/sdk responded unexpectedly to GET with http status 404[YYYY-MM-DDTHH:MM:SS] ERROR Failed to execute command '['/usr/lib/vmware-vmafd/bin/vmafd-cli', 'get-dc-name', '--server-name', 'localhost']'[YYYY-MM-DDTHH:MM:SS] ERROR[YYYY-MM-DDTHH:MM:SS] ERROR Error 1021: Could not connect to the local service VMware AFD.Verify VMware AFD is running.[YYYY-MM-DDTHH:MM:SS] ERROR [['/usr/lib/vmware-vmafd/bin/vmafd-cli', 'get-dc-name', '--server-name', 'localhost']] exited with return code [20][YYYY-MM-DDTHH:MM:SS] ERROR stderr: [Error 1021: Could not connect to the local service VMware AFD.Verify VMware AFD is running.
systemctl status vmafdd.service shows unit vmafdd.service is masked# systemctl status vmafdd.serviceWarning: The unit file, source configuration file or drop-ins of vmafdd.service changed on disk. Run 'systemctl daemon-reload' to reload units. vmafdd.service Loaded: masked (Reason: Unit vmafdd.service is masked.) Drop-In: /etc/systemd/system.control/vmafdd.service.d └─50-BlockIOAccounting.conf, 50-CPUAccounting.conf, 50-MemoryAccounting.conf /etc/systemd/system/vmafdd.service.d └─dependency.conf Active: inactive (dead) since Day [YYYY-MM-DDTHH:MM:SS] UTC; #min ago CPU: 43ms
[YYYY-MM-DDTHH:MM:SS] vcsa.domain.local systemd[1]: Starting LSB: Authentication Framework Daemon...[YYYY-MM-DDTHH:MM:SS] vcsa.domain.local vmafdd[2283]: Starting VMware afd Servicedone[YYYY-MM-DDTHH:MM:SS] vcsa.domain.local systemd[1]: Started LSB: Authentication Framework Daemon.[YYYY-MM-DDTHH:MM:SS] vcsa.domain.local systemd[1]: vmafdd.service: Succeeded.[YYYY-MM-DDTHH:MM:SS] vcsa.domain.local systemd[1]: Stopped vmafdd.service.
This is due to several vCenter services being in a masked state.
A masked service is a systemd unit that has been completely disabled to prevent it from starting, either manually or automatically at boot, by symlinking its unit file to /dev/null.
Identify and unmask the affected services through the VCSA command line.
root and run the following command to list the masked servicessystemctl list-unit-files | grep maskedsystemctl list-unit-files | grep masked | awk '{print $1}' | xargs -n1 systemctl unmask service-control --stop --all && service-control --start --allservice-control --status--all