This article applies to:
Product edition: Phoenix
Problem description
App aware backup completing successfully with “Could not create directory” error.
Cause
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.
Traceback
Follow the instructions provided in the article to obtain job logs.
Agent Version 6.x.x:
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'
Agent Version 7.x.x:
Extract the logs and go to EnterpriseWorkloads-backup-<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\EnterpriseWorkloads\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\EnterpriseWorkloads\VMWare'
Resolution
Agent Version 6.x.x:
Ensure that the account assigned to this virtual machine has the necessary permissions propagated from the credential store, allowing it to create files or folders in the
C:/ProgramData/Phoenix/
directory.
Agent Version 7.x.x:
Ensure that the account assigned to this virtual machine has the necessary permissions propagated from the credential store, enabling it to create files or folders in the
C:/ProgramData/EnterpriseWorkloads/
directory.
Verification
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.
Agent Version 6.x.x:
Open the Command Prompt and navigate to the
C:/ProgramData/Phoenix/
directory by executing the following command:
cd C:/ProgramData/Phoenix/
Agent Version 7.x.x:
Open the Command Prompt and navigate to the
C:/ProgramData/EnterpriseWorkloads/
directory by executing the following command:
cd C:/ProgramData/EnterpriseWorkloads/
Create a folder in that location using the command
mkdir abc
You should be able to create a folder in the directory without encountering any "Access Denied" errors. After testing, you can delete theabc
folder to clean up.After verifying step 3, trigger a backup job for this VM, and it should complete successfully.