Enabling Async patch tool fails with the ERROR - FAILED_VCF_PERMISSIONS_ON_SDDC_OUTPUT_DIRECTORY
When enabling the Async Patch Tool as a vcf user the ERROR is as shown below
Enter SDDC Manager Root User's Password:2024-10-24 09:47:33.164 [INFO ] Performing chmod 755 permissions to Output Directory /nfs/vmware/vcf/nfs-mount/apToolBundles2024-10-24 09:47:40.367 [ERROR] Performing 755 permissions to Output Directory /nfs/vmware/vcf/nfs-mount/apToolBundles failed with error.2024-10-24 09:47:40.390 [ERROR] Error while initiating required functionality: ENABLE_ASYNC_PATCH2024-10-24 09:47:40.402 [ERROR] FAILED_VCF_PERMISSIONS_ON_SDDC_OUTPUT_DIRECTORY-- Error Message: Failed executing vcf 755 permissions on SDDC Output directory.-- Remedy: Please ensure that output directory have permissions as a VCF user.Exception in thread "main" com.vmware.evo.sddc.lcm.model.error.LcmException: Failed executing vcf 755 permissions on SDDC Output directory. at com.vmware.evo.sddc.lcm.tools.asyncpatch.RootAccessUtil.setVCFReadExecutePermissionsOnOutputDirectory(RootAccessUtil.java:96) at com.vmware.evo.sddc.lcm.tools.asyncpatch.RootAccessUtil.generateRootSpec(RootAccessUtil.java:182) at com.vmware.evo.sddc.lcm.tools.asyncpatch.AsyncPatchToolMain.process(AsyncPatchToolMain.java:230) at com.vmware.evo.sddc.lcm.tools.asyncpatch.AsyncPatchToolConfig.main(AsyncPatchToolConfig.java:232)Caused by: com.vmware.evo.sddc.lcm.model.error.LcmException: Running the following command(s) as su user has failed : chown -R vcf:vcf /nfs/vmware/vcf/nfs-mount/apToolBundles && chmod -R 755 /nfs/vmware/vcf/nfs-mount/apToolBundles at com.vmware.evo.sddc.lcm.tools.common.CommandRunnerUtil.runLocalCommandWithSu(CommandRunnerUtil.java:117) at com.vmware.evo.sddc.lcm.tools.asyncpatch.RootAccessUtil.setVCFReadExecutePermissionsOnOutputDirectory(RootAccessUtil.java:87) ... 3 moreCaused by: java.lang.RuntimeException: Received non-empty output for command that expect empty output at com.vmware.evo.sddc.lcm.tools.common.FileUtils.runCommandAsRoot(FileUtils.java:143) at com.vmware.evo.sddc.lcm.tools.common.FileUtils.runCommandAsRoot(FileUtils.java:97) at com.vmware.evo.sddc.lcm.tools.common.CommandRunnerUtil.runLocalCommandWithSu(CommandRunnerUtil.java:114) ... 4 more
VMware Cloud Foundation
Setting the following permission Running the following command(s) as su user has failed : chown -R vcf:vcf /nfs/vmware/vcf/nfs-mount/apToolBundles && chmod -R 755 /nfs/vmware/vcf/nfs-mount/apToolBundles as a root user has failed . The output has to be empty but provides a value as mentioned - Received non-empty output for command that expect empty output
vcf user and followed by root user.root password to something newroot
lockouts -pam_tally2 -u root -r/usr/sbin/faillock --user root --resetpasswd rootIf there is a need to change the password back to old one, Follow the steps below
vi /etc/security/opasswdroot back to old one - passwd rootvcf user run the async patch tool enable command.