When upgrading the vCenter Server Appliance (VCSA) to a newer version, the upgrade fails with the following error message:
In the /var/log/firstboot/vmidentity-firstboot.py_stderr.log file, you may see log entries similar to:
YYYY-MM-DD HH:MM:SS Failure setting accounting for vmware-sts-idmd. Err Failed to set unit properties on vmware-sts-idmd.service: Unit vmware-sts-idmd.service is not loaded.
YYYY-MM-DD HH:MM:SS Failure setting accounting for vmware-stsd. Err Failed to set unit properties on vmware-stsd.service: Unit vmware-stsd.service is not loaded.
YYYY-MM-DD HH:MM:SS Invoked command: ['/sbin/service', 'vmware-stsd', 'start']
YYYY-MM-DD HH:MM:SS RC = 1 Stdout = Stderr = Job for vmware-stsd.service failed because a timeout was exceeded. See "systemctl status vmware-stsd.service" and "journalctl -xe" for details.
YYYY-MM-DD HH:MM:SS {
"resolution": null,
"detail": [
{
"args": [
"Command: ['/sbin/service', 'vmware-stsd', 'start']\nStderr: Job for vmware-stsd.service failed because a timeout was exceeded. See \"systemctl status vmware-stsd.service\" and \"journalctl -xe\" for details.\n"
],
"id": "install.ciscommon.command.errinvoke",
"localized": "An error occurred while invoking external command : 'Command: ['/sbin/service', 'vmware-stsd', 'start']\nStderr: Job for vmware-stsd.service failed because a timeout was exceeded. See \"systemctl status vmware-stsd.service\" and \"journalctl -xe\" for details.\n'",
"translatable": "An error occurred while invoking external command : '%(0)s'"
}
],
"componentKey": null,
"problemId": null
}
Additionally, running the cat /etc/resolv.conf command may return DNS entries that are no longer valid or not in use.
VMware vCenter Server Appliance 6.5.x
VMware vCenter Server Appliance 7.0.
This issue can occur if the vCenter Server Appliance is configured to use an incorrect or outdated DNS server. The misconfiguration prevents required services, such as vmware-stsd, from starting successfully during the upgrade process.
To resolve this issue:
Revert to the original (source) Appliance if the upgrade has failed and is unrecoverable.
Correct the DNS settings via the vSphere Client:
Log in to the vSphere Client.
Navigate to the Networking settings of the source Appliance.
Update the DNS entries to reflect the correct, reachable DNS servers.
Retry the upgrade process.
Note: If the issue persists after correcting DNS and retrying the upgrade, collect a support bundle and open a Support Request with VMware by Broadcom for further assistance.
DNS resolution is critical during firstboot, especially for services that require service token signing (STS).