Cannot add or reconnect host to vCenter server

Few days ago, after restart one of my ESX servers I wasn’t able connect it back to vCenter server. Connection process bar hangs on 80% and after few minutes error message says:

Reconnect host Cannot install the vCenter agent service. Agent not running

 

I checked if vpxa demon was running – service vmware-vpxa status – service was dead, I wasn’t able to start it – service vmware-vpxa start . Messages log shows problem with starting vpxa demon cat /var/log/messages

watchdog-vpxa: Executing ‘/opt/vmware/vpxa/sbin/vpxa’
watchdog-vpxa: ‘/opt/vmware/vpxa/sbin/vpxa’ exited after 0 seconds (quick failure 1)
watchdog-vpxa: Executing ‘/opt/vmware/vpxa/sbin/vpxa’
watchdog-vpxa: ‘/opt/vmware/vpxa/sbin/vpxa’ exited after 0 seconds (quick failure 2)
watchdog-vpxa: Executing ‘/opt/vmware/vpxa/sbin/vpxa’
watchdog-vpxa: ‘/opt/vmware/vpxa/sbin/vpxa’ exited after 0 seconds (quick failure 3)
watchdog-vpxa: Executing ‘/opt/vmware/vpxa/sbin/vpxa’
watchdog-vpxa: ‘/opt/vmware/vpxa/sbin/vpxa’ exited after 0 seconds (quick failure 4)
watchdog-vpxa: Executing ‘/opt/vmware/vpxa/sbin/vpxa’
watchdog-vpxa: ‘/opt/vmware/vpxa/sbin/vpxa’ exited after 1 seconds (quick failure 5)
watchdog-vpxa: Executing ‘/opt/vmware/vpxa/sbin/vpxa’
watchdog-vpxa: ‘/opt/vmware/vpxa/sbin/vpxa’ exited after 0 seconds (quick failure 6)
watchdog-vpxa: End ‘/opt/vmware/vpxa/sbin/vpxa’, failure limit reached

In a vpxa log cat /var/log/vmware/vpx/vpxa.log I found error message indicated problem with certificate.

[  error ‘App’] [VpxdCertificate] Failed: unrecognized file format: /etc/vmware/ssl/rui.crt

Follow below KB article which explains how to fix problem with incorrect certificate.

[box type=”info”] http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1004875[/box]

Artur Krzywdzinski

Artur is Consulting Architect at Nutanix. He has been using, designing and deploying VMware based solutions since 2005 and Microsoft since 2012. He specialize in designing and implementing private and hybrid cloud solution based on VMware and Microsoft software stacks, datacenter migrations and transformation, disaster avoidance. Artur holds VMware Certified Design Expert certification (VCDX #077).