Skip to main content


 

 

How can we help you?

 

Druva Documentation

App aware backups complete with required field username not provided (not @optional) error

Heads up!

We've transitioned to a new documentation portal to serve you better. Access the latest content by clicking here.

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.

  • Was this article helpful?