The validation check fails and the VAMI UI reports the error “HTTPS cannot connect to proxy server”, even if the proxy configuration is valid.
This is seen in the VAMI UI:
vCenter 8.x
The proxy configuration file may contain extra characters, or bad formatting, such as misplaced commas.
If the proxy was removed at any point, a comma is added before localhost in the final line of the /etc/sysconfig/proxy file.
The bypass configuration requires a comma-separated list of domain names, IP addresses, or FQDNs.
When there is no proxy configured by default the proxy file should look like this:
/etc/sysconfig/proxy
# Enable a generation of the proxy settings to the profile.
# This setting allows to turn the proxy on and off while
# preserving the particular proxy setup.
#
PROXY_ENABLED="no"
# Some programs (e.g. wget) support proxies, if set in
# the environment.
# Example: HTTP_PROXY="http://proxy.provider.de:3128/"
HTTP_PROXY=""
# Example: HTTPS_PROXY="https://proxy.provider.de:3128/"
HTTPS_PROXY=""
# Example: FTP_PROXY="http://proxy.provider.de:3128/"
FTP_PROXY=""
# Example: GOPHER_PROXY="http://proxy.provider.de:3128/"
GOPHER_PROXY=""
# Example: SOCKS_PROXY="socks://proxy.example.com:8080"
SOCKS_PROXY=""
# Example: SOCKS5_SERVER="office-proxy.example.com:8881"
SOCKS5_SERVER=""
# Example: NO_PROXY="www.me.de, do.main, localhost"
NO_PROXY="localhost, 127.0.0.1"
If an extra comma appears before localhost in the NO_PROXY entry, it must be removed manually from the proxy configuration file. It may look like this :
# Example: NO_PROXY="www.me.de, do.main, localhost"
NO_PROXY=", localhost, 127.0.0.1"
Access the Appliance Log in to the vCenter Server Appliance using SSH as the root user.
Open the Configuration File Run the following command to open the proxy settings:
vi /etc/sysconfig/proxy
Enter Edit Mode Press i to enter Insert mode in the vi editor.
Locate and Fix the NO_PROXY Entry Navigate to the line containing the NO_PROXY entry. Remove any extra commas (,) or leading whitespace immediately following the opening quote.
Verify the Syntax Ensure the line follows this standard format:
NO_PROXY="localhost, 127.0.0.1"
Save and Exit *Press Esc to exit insert mode.
Type :wq and press Enter to save changes and exit the editor.
Restart Management Services Apply the changes by restarting the configuration management service:
service-control --restart applmgmt