VAMI scheduled backup on vCenter Server failing with error: "Error in method invocation 'NoneType' object has no attribute 'split'"
search cancel

VAMI scheduled backup on vCenter Server failing with error: "Error in method invocation 'NoneType' object has no attribute 'split'"

book

Article ID: 404882

calendar_today

Updated On:

Products

VMware vCenter Server 8.0

Issue/Introduction

  • SFTP backup configuration failed with error "Error in method invocation 'NoneType' object has no attribute 'split'"
  • /var/log/vmware/applmgmt/applmgmt.log

    YYYY-MM-DDTHH:MM:SSZ PM UTC [8169]ERROR:vmware.vapi.provider.local:Error in invoking com.vmware.appliance.recovery.backup.schedules in create - 'NoneType' object has no attribute 'split'
    Traceback (most recent call last):
    File "/usr/lib/applmgmt/vapi/lib/vapi_runtime-2.100.0-py2.py3-none-any.whl/vmware/vapi/provider/local.py", line 277, in invoke
    method_result = self._invoke_int(
    File "/usr/lib/applmgmt/vapi/lib/vapi_runtime-2.100.0-py2.py3-none-any.whl/vmware/vapi/provider/local.py", line 249, in _invoke_int
    method_result = iface.invoke(ctx, method_id, input_value)
    File "/usr/lib/applmgmt/vapi/lib/vapi_runtime-2.100.0-py2.py3-none-any.whl/vmware/vapi/bindings/skeleton.py", line 371, 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.10/site-packages/twisted/internet/threads.py", line 120, in blockingCallFromThread
    result.raiseException()
    File "/usr/lib/python3.10/site-packages/twisted/python/failure.py", line 504, in raiseException
    raise self.value.with_traceback(self.tb)

Environment

VMware vCenter Server 8.x

Cause

The issue is due to an unexpected value in the vCenter Server’s proxy configuration file

Resolution

    • Take an SSH session to the vCenter with root user. 
    • Take a backup of the proxy

cp /etc/sysconfig/proxy /etc/sysconfig/proxy.bak

    • Edit the proxy file

vi /etc/sysconfig/proxy 

    • Check the entries in proxy file in location /etc/sysconfig on the vCenter.
    • Compare the proxy file with a working vCenter (if available).
    • Verify the entries in PROXY_ENABLED, the entries should be similar to the entry in working Vcenter
    • Example:

PROXY_ENABLED = "no"

    • Restart all the services on the vCenter - 


service-control -- stop --all && service-control --start --all 

    • Once the proxy file is configured correctly, the scheduled VAMI backups should succeed.

Additional Information