vCenter Appliance Management Interface (VAMI) https://<vCenter_URL>:5480 fails to load with the following error.
This site can’t be reached
<vCenter_URL> refused to connect.
Try:
Checking the connectionChecking the proxy and the firewallERR_CONNECTION_REFUSED
Connectivity test from client to the vCenter Server using cURL fails to establish connection on port 5480.
Example:
PS C:\> curl -v telnet://<vCenter_URL>:5480* Trying <vCenter_IP_Address>:5480...* connect
to <vCenter_IP_Address> port 5480 failed: Connection refused* Failed
to connect to <vCenter_URL> port 5480 after 2060 ms: Connection refused* Closing
connection 0
vCenter 8.x
The error on the browser 'ERR_CONNECTION_REFUSED' indicates that the client is unable to establish connection on VAMI port 5480. The cause of the connection failing on port 5480 can be either of the following:
Investigate with the network/firewall team if the connection is getting dropped on the network. Check the firewall between the client and vCenter and ensure port 5480 is open.
Once the port 5480 is allowed, the output of the connectivity test, from the client system, using cURL should be as below. Verify VAMI is accessible.
Example:
PS C:\> curl -v telnet://<vCenter_URL>:5480* Trying <vCenter_IP_Address>:5480...* Connected to <vCenter_URL> (vCenter_IP_Address) port 5480 (#0)
If the port 5480 is allowed on the network firewall, but VAMI is still inaccessible with error 'ERR_CONNECTION_REFUSED',confirm port 5480 status on the vCenter Server using netstat -anp | grep 5480
If no output is received from the above command, port 5480 is not listening on the vCenter, and the issue could be with CAP Lighttpd Web Server (cap-lighttpd.service). The service can be in failed or inactive state.
Verify the cap-lighttpd.service is inactive or failed using command: systemctl status cap-lighttpd.service
root@<vCenter_hostname> [ ~ ]# systemctl status cap-lighttpd.service
cap-lighttpd.service - CAP Lighttpd Web Server Loaded: loaded (/usr/lib/systemd/system/cap-lighttpd.service; enabled; vendor preset: enabled) Active: inactive (dead) since Day YYYY-MM-DD HH:MM:SS UTC; # ago Main PID: 2346 (code=exited, status=0/SUCCESS)
Follow the below steps to restart cap-lighttpd.service:
systemctl start cap-lighttpd.serviceroot@<vCenter_hostname> [ ~ ]# systemctl status cap-lighttpd.service cap-lighttpd.service - CAP Lighttpd Web Server Loaded: loaded (/usr/lib/systemd/system/cap-lighttpd.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Day YYYY-MM-DD HH:MM:SS UTC; # ago Process: 3745795 ExecStart=/opt/vmware/share/lighttpd/lighttpd-pre-start.sh (code=exited, status=255/EXCEPTION) Month DD HH:MM:SS #####-##### vami-light [49049] Month DD HH:MM:SS # vami-light [49049] Duplicate config variable in conditional 0 global:#############-##### Month DD HH:MM:SS # vami-light [49049] {FAILED}####-#####
Follow the below steps to fix the issue due to duplicate entries in lighttpd.conf, which will be indicated in place of ######### in the above output:
cd /var/lib/vmware/cap-lighttpd/lighttpd.conf using the command cp lighttpd.conf /var/core/lighttpdBAK.conf.BAKlighttpd.conf using the this command, replace ######### with actual variable from the above output: cat /var/lib/vmware/cap-lighttpd/lighttpd.conf | grep #########/var/lib/vmware/cap-lighttpd/lighttpd.conf and delete or comment out the duplicate entry in the file using '#'.systemctl start cap-lighttpd
To check cap-lighttpd.service failure issue refer: VAMI page for vCenter is inaccessible
To test connectivity from client to the vCenter Server on port 5480, refer: Unable to access vCenter VAMI on port 5480