Error while configuring vCenter server proxy setting in the VAMI interface: Error in method invocation list index out of range
search cancel

Error while configuring vCenter server proxy setting in the VAMI interface: Error in method invocation list index out of range

book

Article ID: 344901

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

Symptoms:
  • When configuring the vCenter Server proxy settings in the vCenter Appliance Management Interface (VAMI), you receive an error:
<Protocol> Error in method invocation list index out of range
  • You may see similar messages in the applmgmt.log file, located under /var/log/vmware/applmgmt/ 
19:35:53.569 [2137]DEBUG:vmware.vherd.transport.vapi:State 'UP_TO_DATE'
19:35:53.584 [2137]DEBUG:vmware.appliance.networking.proxy.proxy_impl:method=set, protocol=http, config=Config(username=None, enabled=True, port=80, password=None, server='x.x.x.x')
19:35:53.585 [2137]ERROR:vmware.appliance.networking.proxy.proxy_impl:Proxy server is not a valid URL: x.x.x.x
19:35:53.613 [2137]ERROR:vmware.vapi.provider.local:Error in invoking com.vmware.appliance.networking.proxy in set - list index out of range
Traceback (most recent call last):
  File "/usr/lib/vmware-vapi/lib/python/vapi_runtime-2.100.0-py2.py3-none-any.whl/vmware/vapi/provider/local.py", line 282, in invoke
    service_id, operation_id, input_value, ctx)
  File "/usr/lib/vmware-vapi/lib/python/vapi_runtime-2.100.0-py2.py3-none-any.whl/vmware/vapi/provider/local.py", line 250, in _invoke_int
    method_result = iface.invoke(ctx, method_id, input_value)
  File "/usr/lib/vmware-vapi/lib/python/vapi_runtime-2.100.0-py2.py3-none-any.whl/vmware/vapi/bindings/skeleton.py", line 347, in invoke
    meth_output = method(**meth_args)
  File "/usr/lib/applmgmt/base/py/vmware/vherd/base/thread_utils.py", line 43, in wrapper
    return sync_call_from_thread(func, *args, **kw)
  File "/usr/lib/applmgmt/base/py/vmware/vherd/base/thread_utils.py", line 13, in sync_call_from_thread
    return threads.blockingCallFromThread(reactor, func, *args, **kw)
  File "/usr/lib/python3.5/site-packages/twisted/internet/threads.py", line 122, in blockingCallFromThread
    result.raiseException()
  File "/usr/lib/python3.5/site-packages/twisted/python/failure.py", line 372, in raiseException
    raise self.value.with_traceback(self.tb)
IndexError: list index out of range


Environment

VMware vCenter Server Appliance 6.7.x

Cause

This issue occurs when the IP address or Fully Qualified Domain Name (FQDN) being specified is not prefixed with the protocol.

Resolution

To resolve this issue, enter the FQDN/IP address in one of the following formats as below: