'ERROR: BackupManager encountered an exception: 'PluginError' object has no attribute 'errorcode' ' when taking VAMI backup for vCenter using NFS protocol
search cancel

'ERROR: BackupManager encountered an exception: 'PluginError' object has no attribute 'errorcode' ' when taking VAMI backup for vCenter using NFS protocol

book

Article ID: 398600

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

  • vCenter VAMI backup using NFS protocol fails with error "BackupManager encountered an exception".

  • In /var/log/vmware/applmgmt/backup.log:

    YYYY-MM-DDTHH:MM:SS [20250522-151006-243#####] [MainProcess:PID-3458###] [MountedFSStorageIOLib::_run_timed_cmd:MountedFSStorageIOLib.py:118] ERROR: Cmd ['/usr/bin/mount', '-t', 'nfs', '<backup directory>', '/storage/remote/backup/nfs/<backup server>/AxCcg###/iX4Ga###', '-o', 'hard,intr'] timed out with timeout 120 seconds.

    YYYY-MM-DDTHH:MM:SS [20250522-151006-243#####] [MainProcess:PID-3458###] [BackupManager::main:BackupManager.py:591] ERROR: BackupManager encountered an exception: 'PluginError' object has no attribute 'errorcode'

Environment

VMware vCenter Server 7.x
VMware vCenter Server 8.x

Cause

  • The file /usr/lib/applmgmt/backup_restore/py/vmware/appliance/backup_restore/plugins/MountedFSStorageIOLib.py has an invalid parameter.

Resolution

To workaround the issue, please fix the invalid parameter by following the steps below:

  • Take a backup copy of the file MountedFSStorageIOLib.py:
    cp /usr/lib/applmgmt/backup_restore/py/vmware/appliance/backup_restore/plugins/MountedFSStorageIOLib.py /storage/core/MountedFSStorageIOLib.py.backup

  • Replace line 200 in the file:
    BEFORE 
    except PluginError as e:
                    # Both mount and timeout might happen simultaneously
                    if e.errcode == ErrorCodes.timeout:
                       logger.error("Mount command failed with timeout exception")

    AFTER
    except PluginError as e:
                  # Both mount and timeout might happen simultaneously
                  if e.errcode == ErrCodes.timeout:
                     logger.error("Mount command failed with timeout exception")
        
  • Restart the applmgmt service:
    service-control --restart applmgmt