All Collections
Knowledge Base
Enterprise Workloads
Troubleshooting - Enterprise Workloads
App aware backups complete with required field username not provided (not @optional) error
App aware backups complete with required field username not provided (not @optional) error
Updated over a week ago

This article applies to:

  • Product edition: Phoenix

Problem description

App aware backups complete successfully with “Required field "username" not provided (not @optional)” errors.

Cause

This issue occurs if app aware backup is triggered for a Virtual Machine which does not have credentials assigned to it from the credential store.

Traceback

  1. Follow the instructions provided in the link below to obtain job logs.
    Download the job logs

  2. Extract the logs and go to Phoenix<YYYYMMDD>_<timestamp>.log file to see the below traceback in the logs

    [2019-10-29 15:54:52,543] [ERROR] Error <type 'exceptions.TypeError'>:Required field "username" not provided (not @optional). Traceback -Traceback (most recent call last):
          File "agents/vmware/vmwareAgent.py", line 2418, in init_backup
          File "agents/vmware/guest_os_utils.py", line 44, in __init__
          File "pyVmomi/VmomiSupport.py", line 513, in __init__
          File "pyVmomi/VmomiSupport.py", line 532, in __setattr__
          File "pyVmomi/VmomiSupport.py", line 901, in CheckField
        TypeError: Required field "username" not provided (not @optional

Resolution

Assign credentials to the Virtual Machine for app aware backups to run successfully. Make sure credentials are mapped to this VM from the credential store.

References:

Verification

Once the changes are done, again trigger the backup job and it should complete successfully.

See also

Did this answer your question?