vCenter update from SDDC manager fails at vCenter upgrade set repo stage
lcm.log :
[YYYY-MM-DDTHH:MM:SS] ERROR [vcf_lcm,0000000000000000,0000,upgradeId=d7133072-30dc-4bf1-a958-85bfb87b269d,resourceType=VCENTER,resourceId=b9388bbb-cdfb-4a7a-b94a-210106ca963a,bundleElementId=63779c34-f139-4605-8b26-ef5924d2fd2b] [c.v.e.s.l.p.i.vcenter.VCenterCommon,Upgrade-1] Setting the repository for VCenter upgrade failed with exceptioncom.vmware.vapi.std.errors.NotFound: NotFound (com.vmware.vapi.std.errors.not_found) => { messages = [LocalizableMessage (com.vmware.vapi.std.localizable_message) => {
id = com.vmware.appliance.update.invalid_url, defaultMessage = Check the URL and try again.,
args = [], params = <null>, localized = <null>
}], data = <null>, errorType = NOT_FOUND
nginx log :
[YYYY-MM-DDTHH:MM:SS] [warn] 1698#0: *23369 a client request body is buffered to a temporary file /etc/nginx/client_body_temp/0000000020, client: 127.0.0.1, server: localhost, request: "PUT /inventory/nsxt/0ca8b85e-daf4-######-b8e3-#####HTTP/1.1", host: "localhost"
[YYYY-MM-DDTHH:MM:SS] [error] 1698#0: *23379 open() "/nfs/vmware/vcf/nfs-mount/bundle/0c753f38-#####-45ba-b63f-##########-apTool/update_repo/manifest/manifest-latest.xml" failed (13: Permission denied), client: X.X.X.X, server: , request: "GET /vmware/vcf/bundle/0c753f38-3649-#####-b63f-#########-apTool/update_repo/manifest/manifest-latest.xml HTTP/1.1", host: "SDDCFQDN"
[YYYY-MM-DDTHH:MM:SS] [info] 1698#0: *23379 client X.X.X.X closed keepalive connection
This issue is caused because of incorrect permissions set to bundle folders.
Running curl to /localhost/vmware/vcf/ fails with 403 error.
curl -k https://localhost/vmware/vcf/
<html>
<head><title>403 Forbidden</title></head>
<body>
<center><h1>403 Forbidden</h1></center>
<hr><center>nginx</center>
</body>
</html>
Accessing https://SDDCFQDN/vmware/vcf/bundle/BUNDLEID-apTool/update_repo/ from browser fails 403 Forbidden
To resolve the issue, follow the steps below.
SSH to SDDC manager and run the below commands:
chmod -R 775 /nfs/vmware/vcf/nfs-mount/bundle/
chmod 775 /nfs/vmware/vcf/nfs-mount
Restart nginx service : systemctl restart nginx.service
Try accessing the URL in browser or perform curl and it should succeed.
Retry the update from SDDC.