/var/log/vmware/applmgmt/PatchRunner.log, you see errors similar to:vmafd-patch:Patch ERROR vmafd-patch.utils Failed to restart service lwsmd ERROR __main__ Patch vCSA failed
/var/log/vmware/applmgmt/upgrade_hook_PatchHook, the failing component is similar to:"componentKey": "vmafd-patch:Patch", "status": "error", "error": "Internal error occurs during execution of update process."
/var/log/messages, the Likewise Service Control Manager stop times out, similar to:systemd: lwsmd.service: Stopping timed out. Terminating. systemd: lwsmd.service: Unit process ##### (lwregd) remains running after unit stopped. systemd: Failed to start Likewise Service Control Manager Service. systemd: vmafdd.service: Job vmafdd.service/start failed with result 'dependency'.
/var/log/vmware/likewise/likewise.log, the registry fails to start and directory lookups time out, similar to:lwsm: Starting service: lwreg ERROR lwreg: REG Process exiting due to error [Code:5] ERROR lwsm: Could not start bootstrap service: LW_ERROR_SERVICE_UNRESPONSIVE ERROR netlogon: CLDAP timed out: <domain-controller-fqdn>
During the update, the vmafd patch step restarts the Likewise service stack (the lwsmd service), which hosts the appliance's local directory, authentication, and certificate services. The systemd unit for lwsmd allows 60 seconds for that stop to complete (TimeoutStopSec=60) and, on timeout, signals only the main process (KillMode=process).
When the appliance is joined to Active Directory and is configured to reach AD domains or trusted forests whose domain controllers are no longer reachable, the Likewise shutdown blocks while the netlogon and lsass subsystems wait on Connectionless LDAP (CLDAP) lookups to those unreachable domain controllers. Each lookup must time out in turn, and the cumulative delay can push the stop past the 60-second limit.
When the stop exceeds 60 seconds, systemd terminates only the parent process and leaves the registry child process (lwregd) running. That orphaned process keeps the Likewise registry database locked. When systemd then starts a new lwsmd, the new registry process cannot open the locked database and exits with REG Process exiting due to error [Code:5]. The lwsmd service fails to start, the dependent vmafdd service fails, and the update aborts at approximately 93%.
This condition is timing-sensitive. An earlier update on the same appliance can succeed when the shutdown happens to finish just under 60 seconds, and a later update can fail when the same shutdown runs slightly longer.
This procedure increases the time systemd allows for the lwsmd stop, so the Likewise shutdown can finish draining the blocked directory lookups instead of being force-terminated.
root.lwsmd service unit for editing:systemctl edit --full lwsmd.service
[Service] section, change the stop timeout from 60 to 240 seconds, and leave all other directives unchanged:TimeoutStopSec=240
TimeoutStopUSec=240:systemctl show lwsmd.service -p TimeoutStopUSec
lwsmd restart completes within the extended timeout.systemctl revert lwsmd.service
Increasing the timeout allows the update to complete, but the appliance still attempts to reach the unreachable Active Directory domains. Address the underlying dependency:
root, then reboot:/opt/likewise/bin/domainjoin-cli leave
lwsmd stop timeout is a workaround that lets the update finish. It does not remove the underlying dependency on the unreachable Active Directory domains. Resolve the domain controller reachability or migrate away from Integrated Windows Authentication to prevent recurrence.