Network failure. Check the network settings and try again. when trying to update vCenter from VAMI
search cancel

Network failure. Check the network settings and try again. when trying to update vCenter from VAMI

book

Article ID: 426119

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

  • vCenter Server patching via VAMI fails to download the updates from Broadcom public repositories.

Environment

VMware vCenter Server 8.x

Cause

If a proxy is enabled vCenter must be added to the no proxy list

Resolution

If the proxy is configured to use the same TCP port for both HTTP and HTTPS traffic, 

  • open an SSH connection to the vCenter Server Appliance
  • create a backup of the proxy configuration:
    # cp /etc/sysconfig/proxy /storage/core/proxy.bak
  • edit the file:
    # vi /etc/sysconfig/proxy
  • find the line starting with HTTPS_PROXY="https://..." and change this to HTTPS_PROXY="http://..."
  • find the line starting with NO_PROXY
  • edit this line and add both the fully-qualified domain name and the IP address of the vCenter Server to this line


NOTE: Please be aware that the entries in NO_PROXY need to be separated by a comma followed by a single space. Only using a comma as separator is not enough. Also, should when considering to exclude a whole domain from the proxy settings, be aware that NO_PROXY requires a specific syntax, meaning instead of using "*.domain.tld" or just "domain.tld", ".*.domain.tld" needs to be used.

Example: given the vCenter is vc.domain.tld, has the IP address ###.###.#.##, the proxy is proxy is called "proxy.domain.com" and the port it's using is TCP 8080 for both HTTP and HTTPS traffic, this is how the /etc/sysconfig/proxy should be looking:

# 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="http:/proxy.domain.tld:8080"

# Example: HTTPS_PROXY="https://proxy.provider.de:3128/"
HTTPS_PROXY="http://proxy.domain.tld:8080"

# 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, vc.domain.com, ###.###.#.##"


Or, if required to exclude the traffic to the complete domain from being routed through the proxy:

...
# Example: NO_PROXY="www.me.de, do.main, localhost"
NO_PROXY="localhost, 127.0.0.1, .*.domain.com, ###.###.#.##"