vCenter service vmware-vapi-endpoint failed to start with "Connect to localhost:1080 ... ... Connection refused"
search cancel

vCenter service vmware-vapi-endpoint failed to start with "Connect to localhost:1080 ... ... Connection refused"

book

Article ID: 392608

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

  • Unable to access the vCenter UI and stuck at vmware-vapi-endpoint and then services stopped
  • From /var/log/vmware/vapi/endpoint/endpoint.log, we see below mentioned exception
    • Caused by: com.vmare.vim.vmomi.client.exception.ConnectionException: http://localhost1080/sso-adminserver/system-sdk invocation failed with "org.apache.http.conn.HttpHostConnectException: Connect to localhost:1080 [localhost/127.0.0.1] failed: Connection refused (Connection refused)"
  • From /var/log/vmware/vmon/vmon.log
    • Adding service rhttpproxy.
      Startup type of service content-library is AUTOMATIC while startup type of dependent service rhttpproxy is MANUAL.
      ... ...
      Startup type of service vsphere-ui is AUTOMATIC while startup type of dependent service rhttpproxy is MANUAL.
  •       Command "vmon-cli -s rhttpproxy" shows Starttype: MANUAL

Environment

VMware vCenter Server

Cause

The start type of rhttproxy is MANUAL, it can not startup automatically. Then the other vCenter services including  vmware-vapi-endpoint failed to startup.

Resolution

Command to set start type of rhttpproxy to AUTOMATIC:

vmon-cli -S AUTOMATIC -U rhttpproxy

Then restart all the vCenter services:

 service-control --stop --all && service-control --start --all

Additional Information

https://knowledge.broadcom.com/external/article/390401/setting-vcenter-server-services-start-up.html