Check Updates in VAMI with a configured proxy fails with error "Check the URL and try again"
search cancel

Check Updates in VAMI with a configured proxy fails with error "Check the URL and try again"

book

Article ID: 316559

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

Symptoms:
  • When accessing the vCSA VAMI's page and checking for updates under the Updates tab, a "Check the URL and try again" error message is displayed.

applmgmt.log

https://vapp-updates.vmware.com/vai-catalog/valm/vmw/8d167796-34d5-4899-be0a-6daade4005a3/6.7.0.20000.latest/manifest/manifest-latest.xml\\nResolving vapp-updates.vmware.com... [IPv4], [IPv6], \\nConnecting to vapp-updates.vmware.com|[IPv4]|:443... failed: Connection timed out.\\nConnecting to vapp-updates.vmware.com|[IPv6]|:443... failed: Network is unreachable.\\nConnecting to vapp-updates.vmware.com|[IPv6]|:443... failed: Network is unreachable.\\n\')\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n  File "/usr/lib/applmgmt/update/py/vmware/appliance/update/update_b2b.py", line 1207, in processURLUpdates\n    header = _discoverUpdateAtUrl(url,\'latest\')\n  File "/usr/lib/applmgmt/update/py/vmware/appliance/update/update_b2b.py", line 1144, in _discoverUpdateAtUrl\n    versionFolder)\n  File "/usr/lib/applmgmt/update/py/vmware/appliance/update/update_b2b.py", line 995, in _discoverUpdateAt\n    vapiNotFound(messageInvalidUrl(\'\'))\n  File "/usr/lib/applmgmt/update/py/vmware/appliance/update/update_functions.py", line 162, in vapiNotFound\n    raise ErrorFactory.new_not_found(messages=messages)\ncom.vmware.vapi.std.errors_provider.NotFound: {data : None, messages : [{\'args\': [\'\'], \'default_message\': \'Check the URL and try again.\', \'id\': \'com.vmware.appliance.update.invalid_url\'}]}\n'
YYYY-MM-DDTHH:MM:SS.Z [11504]ERROR:vmware.appliance.update.update_b2b:Got Exception during discoverUpdates {data : None, messages : [{'args': [''], 'default_message': 'Check the URL and try again.', 'id': 'com.vmware.appliance.update.in
valid_url'}]}
[11504]DEBUG:vmware.appliance.update.update_pending:Got exception during listing updates {data : None, messages : [{'args': [''], 'default_message': 'Check the URL and try again.', 'id': 'com.vmware.appliance.updat
e.invalid_url'}]}


Environment

VMware vCenter Server 7.0.x
VMware vCenter Server Appliance 6.5.x

Resolution

  1. Make sure the proxy settings are properly set in the VAMI page.
  2. Make sure that the settings are proper by checking the proxy file under /etc/sysconfig
  3. Validate the settings as per KB 316490
  4. If you are still getting the same error, edit the file /etc/wgetrc and update the following details with the proxy settings. Remove the leading # from https_proxy, http_proxy, and use_proxy.
[BEFORE]
# You can set the default proxies for Wget to use for http, https, and ftp.
# They will override the value in the environment.
#https_proxy = http://proxy.example.com:18023/
#http_proxy = http://proxy.example.com:18023/
#ftp_proxy = http://proxy.example.com:18023/


# If you do not want to use proxy at all, set this to off.
#use_proxy = on


[AFTER]
# You can set the default proxies for Wget to use for http, https, and ftp.
# They will override the value in the environment.
https_proxy = http://proxy.example.com:18023/
http_proxy = http://proxy.example.com:18023/
#ftp_proxy = http://proxy.example.com:18023/


# If you do not want to use proxy at all, set this to off.
use_proxy = on
  1. Save the changes and restart the applmgmt service. 
service-control --restart applmgmt

​​​​

  1. Check for updates.