vmonapi service start operation on vcsa 6.5 reports "Exception : "
search cancel

vmonapi service start operation on vcsa 6.5 reports "Exception : "

book

Article ID: 320025

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

Symptoms:
You have an external PSC node configured with load balancer for the PSC communication. If the vCenter has a proxy server added for the update downloads, you experience symptoms similar to:
  • The node information is not available on the web client and it is returning that the applmgmt is not running.
  • The vmonapi service is failing to start and is returning the below:
  • In the vmon-syslog.log file, you see entries similar to:

<YYYY:MM:DDTHH:MM:SS> notice vmon Constructed command: /usr/bin/python /usr/lib/vmware-vmon/vapi/vmon-vapi-provider-prestart.py
<YYYY:MM:DDTHH:MM:SS> warning vmon Service vmonapi pre-start command's stderr: urlopen() failed! Trying force_refresh=True...
<YYYY:MM:DDTHH:MM:SS> warning vmon
<YYYY:MM:DDTHH:MM:SS> warning vmon Service vmonapi pre-start command's stderr: Failed to start vmonapi service. Exception : <urlopen error Tunnel connection failed: 407 Proxy Authentication Required>
<YYYY:MM:DDTHH:MM:SS> err vmon Service vmonapi pre-start command failed with exit code 255.

  • When you try to download the updates using the below, you see an error similar to:
root@vcsa [ / ]# wget http://<PSC</a> FQDN>:7080/idm/tenant/vsphere.local/certificates?scope=TENANT

2017-08-17 18:12:03-- http://<PSC</a> FQDN>:7080/idm/tenant/vsphere.local/certificates?scope=TENANT
Resolving <proxy server>... <proxy IP>
Connecting to <proxy server>|<proxy IP>|:8080... connected.
Proxy request sent, awaiting response... 503 Service Unavailable
2017-08-17 18:12:04 ERROR 503: Service Unavailable.


Cause

This issue occurs when proxy authentication for communication fails.

Resolution

To resolve the issue, update the proxy file /etc/sysconfig/proxy contents with the following:

# 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="yes"

# Some programs (e.g. wget) support proxies, if set in
# the environment.
# Example: HTTP_PROXY="http://proxy.provider.de:3128/"
HTTP_PROXY="http://<proxy server FQDN>:8080"

# Example: HTTPS_PROXY="https://proxy.provider.de:3128/"
HTTPS_PROXY="http://<proxy server FQDN>:8080"

# Example: FTP_PROXY="http://proxy.provider.de:3128/"
FTP_PROXY="<proxy server FQDN>:8080"

# 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, <PSC FQDN>"