App aware backup completes with could not create directory error
This article applies to:
- Product edition: Phoenix
App aware backup completing successfully with “Could not create directory” error.
This error occurs when we are not able to create the directory VMWare in the location C:/ProgramData/Phoenix/ using the credentials which are assigned to this virtual machine from the credential store.
Follow the instructions provided in the article to obtain job logs.
- Extract the logs and go to Phoenix<YYYYMMDD>_<timestamp>.log file to see the below traceback in the logs.
[2019-10-29 14:02:19,555] [ERROR] Error <type 'exceptions.Exception'>:('Could not create directory: %s in guest os.', 'C:/ProgramData/Phoenix/VMWare'). Traceback -Traceback (most recent call last):
File "agents/vmware/vmwareAgent.py", line 2428, in init_backup
File "agents/vmware/guest_os_utils.py", line 194, in inject_binaries_and_files
File "agents/vmware/guest_os_utils.py", line 217, in check_and_create_directories_in_guest_os
Exception: ('Could not create directory: %s in guest os.', 'C:/ProgramData/Phoenix/VMWare'
Propagate the rights to the account which is assigned to this virtual machine from the credential store so that it is able to create file/folder in C:/ProgramData/Phoenix/ directory.
- Once the changes are done, login to the virtual machine with the same set of credentials that were assigned to this virtual machine from the credential store.
- Open the command prompt and change directory to C:/ProgramData/Phoenix/ using the below command.
- Create a folder in that location using the command
You should be able to create the folder and you should not see any Access denied errors.
Note: Once testing is done you can delete abc folder.
- Once step 3 is verified, trigger a backup job for this VM and it should complete successfully.