When I login into vSphere web client I have a warning displayed. It says:
"Could not connect to one or more vCenter Server systems:
https://vcenter.ius.local:443/sdk"
Symptoms are similar to this: Suddenly getting "Could not connect to one or more vCenter Server systems" error message in vSphere Web Client
But vCenter Server was displayed as running in vCSA in my case. So I decided to restart it.
I stopped the server, then started it. On first start it failed to load. I pressed "start" again, server had started.
I tried to restart vCenter server one more time. Again it loaded only from 2nd try. That was some odd behavior, so I decided run the server from console and see some output. And that's what i got:
vcenter:~ # service vmware-vpxd stop
Stopping VMware vSphere Profile-Driven Storage Service...
Stopped VMware vSphere Profile-Driven Storage Service.
Stopping tomcat: success
Stopping vmware-vpxd: success
Shutting down ldap-server..done
vcenter:~ # service vmware-vpxd status
vmware-vpxd is stopped
tomcat is stopped
vcenter:~ # service vmware-vpxd start
Waiting for the embedded database to start up: success
Verifying EULA acceptance: success
Executing pre-startup scripts...
Updating the vCenter endpoint in the Lookup Service.
Intializing registration provider...
Getting SSL certificates for https://vcenter.ius.local:7444/lookupservice/sdk
Service with name 'vpxd-vcenter.ius.local-XXX' and ID 'local:XXX' was updated.
Return code is: Success
Starting ldap-server..failed
Starting vmware-vpxd: success
Waiting for vpxd to initialize: ............................................................failed
vcenter:~ # service vmware-vpxd status
vmware-vpxd is running
tomcat is stopped
vcenter:~ # service vmware-vpxd start
Starting vmware-vpxd: (vmware-vpxd is already running)
Starting tomcat: success
Executing startup scripts...
Autodeploy service is disabled, skipping registration.
[Error] Failed to connect to vpxd.
Starting VMware vSphere Profile-Driven Storage Service...Waiting for VMware vSphere Profile-Driven Storage Service......
VMware vSphere Profile-Driven Storage Service started.
vcenter:~ # service vmware-vpxd status
vmware-vpxd is running
tomcat is running
So, looks like that I have problems with LDAP server. So I checked the /var/log/vmware/vpx/vpxd.log (you can see it in the attachements)
LDAP server is not starting.
What should I do to bring the vCenter back in the working state?