Failed to enter namespaces maintenance mode due to Error: com.vmware.vapi.std.errors.unauthenticated Messages: vapi.security.authentication.invalid<Unable to authenticate user>. Retry XX
[YYYY-MM-DDTHH:MM:SS] error vpxd[57646] [Originator@6876 sub=MoHost opID=abcabcabcd-861-auto-ny-h5:70000172-1e] [Delete] Failed to delete vAPI session. Error:--> Error:--> com.vmware.vapi.std.errors.unauthenticated--> Messages:--> vapi.security.authentication.invalid<Unable to authenticate user>[YYYY-MM-DDTHH:MM:SS] warning vpxd[57646] [Originator@6876 sub=MoHost opID=abcabcabcd-861-auto-ny-h5:70000172-1e] [Close] Host 'localhost' Failed to delete Session: N3Vim5Fault12InvalidLogin9ExceptionE(Fault cause: vim.fault.InvalidLogin[YYYY-MM-DDTHH:MM:SS] warning vpxd[57646] [Originator@6876 sub=MoHost opID=abcabcabcd-861-auto-ny-h5:70000172-1e] [Invoke] Host 'localhost' Failed to acquire Session: N3Vim5Fault12InvalidLogin9ExceptionE(Fault cause: vim.fault.InvalidLogin[YYYY-MM-DDTHH:MM:SS] info vpxd[57646] [Originator@6876 sub=MoHost opID=abcabcabcd-861-auto-ny-h5:70000172-1e] WCP enterMaintenanceMode vAPI returns error: Error:--> com.vmware.vapi.std.errors.unauthenticated--> Messages:--> vapi.security.authentication.invalid<Unable to authenticate user>[YYYY-MM-DDTHH:MM:SS] info vpxd[57646] [Originator@6876 sub=MoHost opID=abcabcabcd-861-auto-ny-h5:70000172-1e] Waiting 60 secs then invoke WCP enterMaintenanceMode vAPI
$ /usr/lib/vmware-lookupsvc/tools/lstool.py list --url http://localhost:7090/lookupservice/sdk --no-check-cert >> /tmp/service.txtcat /tmp/service.txt |grep -i "service type: tokenservice" -A10 |egrep -i "Service Type|Service ID|URL"$ cat /tmp/service.txt |grep -i "service type: tokenservice" -A10 |egrep -i "Service Type|Service ID|URL"Service Type: tokenservice Service ID: b5bfaaff-9b9e-464b-b64f-a2a3b4c5d6e7 URL: https://vcsa1.example.com:443/tokenservice/vapiService Type: tokenservice Service ID: 1ca9e6a4-1e26-4466-bcfd-f0a7b1c1e7a4 URL: https://vcsa2.example.com:443/tokenservice/vapiIf the service is missing, use the lsdoctor tool to register in a new 'tokenservice' registration.
5. Restart all vCenter Services $ service-control --stop --all && service-control --start --all