When performing a one-time virtual export or configuring a continuous virtual standby to a VMware ESXi host, the job fails shortly after starting. The job log in the Rapid Recovery Core Console displays the following error:
Job 'Export of volumes [...] to [...] for '...' (VMware ESXi export)' failed
System.AggregateException depth 0: One or more errors occurred. (0x80131500)
---> (Inner Exception #0 depth 0) Replay.Core.Contracts.Export.ExportException depth 1: Cannot perform an export task (0x80131500)
---> System.InvalidOperationException depth 2: Sequence contains no matching element (0x80131509)
at System.Linq.Enumerable.First[TSource](IEnumerable`1 source, Func`2 predicate)
at Replay.Common.Implementation.Virtualization.ESXi.ESXiVirtualMachine.AddNewDisk(...)
at Replay.Core.Implementation.Export.ExportJob.ExportTask()
The key error message is System.InvalidOperationException: Sequence contains no matching element
.
This error indicates that the Rapid Recovery Core was unable to find a required resource on the target ESXi host to create the new virtual machine's disks. There are two primary causes for this issue:
Cause 1: No Datastores Available
The ESXi host selected for the export has no datastores presented to it. The error occurs because Rapid Recovery queries the host for a list of available datastores to create the VMDK files and the sequence it receives is empty.
Cause 2: Network Connectivity Block
There is a network communication failure between the Rapid Recovery Core server and the target ESXi host. Rapid Recovery requires access to the host over specific TCP ports to orchestrate the export. If these ports are blocked by a firewall, incorrect VLAN/port group assignment, or a routing issue, the Core cannot get the necessary information (like datastore lists), leading to the failure.
The required ports for communication are:
Follow these steps to diagnose and resolve the issue.
If datastores are correctly configured on the host, test the network path from the Rapid Recovery Core server to the ESXi host.
<ESXi_Host_IP_or_FQDN>
with the IP address or fully qualified domain name of the target ESXi host.
Test-NetConnection <ESXi_Host_IP_or_FQDN> -Port 443
Test-NetConnection <ESXi_Host_IP_or_FQDN> -Port 902
TcpTestSucceeded : True
. If the result is False
or the command times out, there is a network block.[Placeholder: Insert a screenshot of a successful PowerShell Test-NetConnection output here]
Once network connectivity is confirmed and both Test-NetConnection
commands succeed, cancel the failed job in the Rapid Recovery Console and run the virtual export again.
If the error occurs on a pre-existing, continuous virtual standby job, the stored configuration for that job may be pointing to an invalid resource (e.g., a datastore that was renamed or a host that was moved). You can resolve this by editing the job to re-select the correct resources.