Failed to reset machine account
/var/log/vmware/applmgmt/pnid_change.log
there are entries similar to the below:
YYYY-MM-DDTHH:MM:SS - pnid_utils-run_command():81 - INFO - Running command: /usr/bin/service-control --start vmafdd vmdird vmca
YYYY-MM-DDTHH:MM:SS - pnid_utils-run_command():99 - INFO - Command exited with exitcode : 0
YYYY-MM-DDTHH:MM:SS - pnid_utils-run_command():109 - INFO - Done running command
YYYY-MM-DDTHH:MM:SS - pnid_utils-run_command():81 - INFO - Running command: /usr/lib/vmware-vmdir/bin/vdcresetMachineActCred -u administrator
YYYY-MM-DDTHH:MM:SS - pnid_utils-run_command():99 - INFO - Command exited with exitcode : 53
YYYY-MM-DDTHH:MM:SS - pnid_utils-run_command():101 - WARNING - Command failed with following error:
YYYY-MM-DDTHH:MM:SS - pnid_utils-run_command():102 - WARNING - b'password: \n'
YYYY-MM-DDTHH:MM:SS - pnid_utils-run_command():109 - INFO - Done running command
YYYY-MM-DDTHH:MM:SS - pnid_utils-restart_services():1598 - ERROR - password:
YYYY-MM-DDTHH:MM:SS - pnid_utils-update_task_status():1444 - INFO - Task : Failed to reset machine account.
pnid_change.log
we can see that the vmdird service start issued:
YYYY-MM-DDT03:00:17 - pnid_utils-run_command():81 - INFO - Running command: /usr/bin/service-control --start vmafdd vmdird vmca
/var/log/vmware/vmdird/vmdird-syslog.log
we can see the vmdird state turned to NORMAL at 03:00:28:
YYYY-MM-DDTHH:MM:SS info vmdird t@140075752752960: Lotus Vmdird: starting..
YYYY-MM-DDTHH:MM:SS info vmdird t@140053825177344: Taking snapshot, setting backend state to MDB_RDONLY
YYYY-MM-DDTHH:MM:SS info vmdird t@140053825177344: _VmDirCpMdbFile: making database snapshot with file size 2072Mb; will take approximate 41 seconds; 0 updates occurred since last snapshot.
YYYY-MM-DDT03:00:28 info vmdird t@140053825177344: Backend state set to NORMAL
YYYY-MM-DDT03:00:23 - pnid_utils-update_task_status():1444 - INFO - Task : Failed to reset machine account.
Once this have been confirmed, apply the following steps to work around the issue, by temporarily disabling database snapshots during the vmdird service startup
/opt/likewise/bin/lwregshell set_value '[HKEY_THIS_MACHINE\Services\vmdir\Parameters]' "CopyDbIntervalInSec" "0"
service-control --restart vmdird
/opt/likewise/bin/lwregshell set_value '[HKEY_THIS_MACHINE\Services\vmdir\Parameters]' "CopyDbIntervalInSec" "60"
service-control --restart vmdird
If you receive a similar error during the PNID change, but vmdird is confirmed to have been in normal mode during the failure, please refer PNID Change failing with " Failed to reset machine account " for other causes of this issue.