Remediate vSAN file service"Cannot complete the operation. See the event log for details. Unable to enable the vSAN file service."fsvmsockrelay service, it fails with the below error:/etc/init.d/fsvmsockrelay restartsockrelay is not runningNo fsvm-sockrelay resource pool foundvSAN File Service Node cannot be found on this host
sockrelay is not running
Unable to access agent OVF package file'var/log/vmware/eam/eam.log" file in vCenter, the following observations were noted2024-07-15T09:59:50.564Z | WARN | vlsi | Workflow.java | 156 | [OvfValidator->Validate:http://localhost:1080/external-tp/httpl/hostname.domain.com/443/e6714aaec7d3ffef1e34cd0c8e2621fe67410cff/vsanHealth/fileService/ovf/7.0.3.1000-20036589/VMware-vSAN-File-Services-Appliance-7.0.3.1000-20036589_OVF10.ovf:d6568d69a9a44e0b] NEXT WORK ITEM : Failed to instantiatecom.vmware.eam.exception.CannotAccessOVF: Cannot access OVF at http://localhost:1080/external-tp/http1/hostname.domain.com/443/e6714aaec7d3ffef1e34cd0c8e2621fe67410cff/vsanHealth/fileService/ovf/7.0.3.1000-20036589/VMware-vSAN-File-Services-Appliance-7.0.3.1000-20036589_OVF10.ovf at com.vmware.eam.agency.impl.OvfDownloader.downloadInternal(OvfDownloader.java:88) ~[eam-server.jar:?] at com.vmware.eam.agency.impl.OvfDownloader.download(OvfDownloader.java:65) ~[eam-server.jar:?] at com.vmware.eam.agency.impl.OVFs.toOvfInfo(OVFs.java:122) ~[eam-server.jar:?] at com.vmware.eam.agency.impl.OVFs.getInternal(OVFs.java:77) ~[eam-server.jar:?] at com.vmware.eam.agency.impl.OVFs.get(OVFs.java:66) ~[eam-server.jar:?] at com.vmware.eam.agency.impl.OvfValidator.lambda$validate$0(OvfValidator.java:81) ~[eam-server.jar:?] at com.vmware.eam.async.workflow.impl.CancellableWorkItemProvider.provide(CancellableWorkItemProvider.java:101) ~[eam-server.jar:?]
var/log/vmware/vsan-health/vmware-vsan-health-service.log", it appears that the directory where the OVF files were previously located no longer exists2024-07-15T09:59:50.548Z ERROR vsan-mgmt[12761] [VsanHttpProvider::doGet opID=noOpId] Looking for non-existing path /storage/vsan-health/../updatemgr/vsan/fileService/ovf-7.0.3.1000-20036589/VMware-vSAN-File-Services-Appliance-7.0.3.1000-20036589_OVF10.ovf, return 404
2024-07-15T09:59:50.549Z INFO vsan-mgmt[12761] [VsanMgmtServer::log_message opID=noOpId] ('127.0.0.1', 52490) - - "GET /vsanHealth/fileService/ovf/7.0.3.1000-20036589/VMware-vSAN-File-Services-Appliance-7.0.3.1000-20036589_OVF10.ovf HTTP/1.1" 404 -2024-07-15T09:59:50.556Z INFO vsan-mgmt[12761] [VsanMgmtServer::log_message opID=noOpId] ('127.0.0.1', 52490) - - "HEAD /vsanHealth/fileService/ovf/7.0.3.1000-20036589/VMware-vSAN-File-Services-Appliance-7.0.3.1000-20036589_OVF10.ovf HTTP/1.1" 200 -2024-07-15T09:59:50.563Z ERROR vsan-mgmt[12761] [VsanHttpProvider::doGet opID=noOpId] Looking for non-existing path /storage/vsan-health/../updatemgr/vsan/fileService/ovf-7.0.3.1000-20036589/VMware-vSAN-File-Services-Appliance-7.0.3.1000-20036589_OVF10.ovf, return 4042024-07-15T09:59:50.563Z INFO vsan-mgmt[12761] [VsanMgmtServer::log_message opID=noOpId] ('127.0.0.1', 52490) - - "GET /vsanHealth/fileService/ovf/7.0.3.1000-20036589/VMware-vSAN-File-Services-Appliance-7.0.3.1000-20036589_OVF10.ovf HTTP/1.1" 404 -2024-07-15T09:59:50.572Z ERROR vsan-mgmt[09194] [VsanClusterFileServiceSystemImpl::_RemediateClusterFileServiceTask opID=77504a72-W3314] Exception happened in deploying OVF in cluster 'vim.ClusterComputeResource:domain-c8'
VMware vSAN 7.x
VMware vSAN 8.x
VMware vSAN 9.x
vCenter has missing OVF and related files for vSAN File Services VMs in the designated path.
Note: This is usually seen where there is a major vCenter upgrade (say from vCenter 7.x to 8.x) where OVF files are not retained from older version.
/storage/updatemgr/vsan/fileService/ovf-x.y.z.aaaa-bbbbbbb
(where ovf-x.y.z.aaaa-bbbbbbb is the version found from /var/log/vmware/vsan-health/vmware-vsan-health-service.log )
Alternatively, you can find the version in vSphere Client from vSAN Cluster > Configure > Services > File Service
/storage/updatemgr/vsan and modify the User and Group owner for the directory 'fileService' and directories under it:chown -R vsan-health:users fileServicechmod 755 /storage/updatemgr/vsan/fileService
chmod 644 /storage/updatemgr/vsan/fileService/ovf-x.y.z.aaaa-bbbbbbb
Found that we had to change permissions of sub directory to 755 also
chmod 755 /storage/updatemgr/vsan/fileService/ovf-x.y.z.aaaa-bbbbbbb