Sync Timeout for replication 'C4 ID' error when synchronizing a replication to a cloud site in VMware Cloud Director Availability 4.x.x
search cancel

Sync Timeout for replication 'C4 ID' error when synchronizing a replication to a cloud site in VMware Cloud Director Availability 4.x.x

book

Article ID: 314990

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

Symptoms:

  • Replications to a cloud site are unable to synchronize and in the Replication Tasks view the synchronize task fails with the error:
Sync Timeout for replication C4-#################################'.
  • In /opt/vmware/h4/cloud/log/cloud.log on the vApp Replication Manager, you see similar entries:
WARN - [UI__#########################################] [c4-scheduler-1] com.vmware.h4.cloud.job.VmSyncJob        : Replication C4-x####################################'. can't be synchronized.
ERROR - [UI__################################################] [c4-scheduler-1] com.vmware.h4.jobengine.JobExecution     : Task ###################################### (WorkflowInfo{type='sync', resourceType='vmReplication', resourceId='C4-x###################################'. can't be synchronized'.', isPrivate=false, resourceName='####################'}) has failed
    
com.vmware.h4.manager.api.exceptions.SyncTimeoutException: Sync timeout for replication ' C4-###############################'. can't be synchronized'.
    at com.vmware.h4.cloud.job.VmSyncJob.syncFailed(VmSyncJob.java:110)
    at com.vmware.h4.cloud.job.VmSyncJob.lambda$execute$0(VmSyncJob.java:62)
    at com.vmware.h4.common.monitoring.ReplicationListener.onComplete(ReplicationListener.java:53)
    at com.vmware.task.rest.client.TaskMonitor.lambda$workImpl$0(TaskMonitor.java:189)
    at com.vmware.task.rest.client.TaskMonitor.notifyListener(TaskMonitor.java:211)
    at com.vmware.task.rest.client.TaskMonitor.workImpl(TaskMonitor.java:188)
    at com.vmware.task.rest.client.TaskMonitor.work(TaskMonitor.java:120)
    at com.vmware.h4.cloud.service.ManagerTaskMonitorService.lambda$taskMonitor$0(ManagerTaskMonitorService.java:102)
    at com.vmware.h4.common.mdc.MDCRunnableWrapper.run(MDCRunnableWrapper.java:30)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)


Note: The preceding log excerpts are only examples. Date, time, and environmental variables may vary depending on your environment.

Environment

VMware Cloud Director Availability 4.x.x

Cause

This issue occurs when the source  VMware Cloud Director Availability On-Premises appliance or Cloud Director  Availability Tunnel appliance, depending on the type of source site, is unable to communicate with the Cloud Director Availability Tunnel appliance in the destination cloud site.

Resolution

To resolve this issue: 

  • Ensure that the source Cloud Director Availability appliance is able to communicate with the public API endpoint in the destination cloud site directly over port 8048/TCP or 443/TCP if DNAT is configured for the public endpoint.

  • Ensure that we check and allow all the necessary ports required for communication for the VCDA appliance as per the Network requirements and prerequisites. 
  • Use the curl command to verify the connectivity between the appliances.

  • Example: For the network Communication to complete we need the ESXi host and the VMware Cloud Director Availability On-Premises Appliance to communicate over the port 44046/TCP. Port 44046/TCP is used for transferring replication data traffic from the ESXi hosts to the VMware Cloud Director Availability On-Premises Appliance. We can use the curl command from the esxi host to on prem: curl -kv https://ON-PREM_FQDN_or IP:44046

Additional Information

For more information on port requirements in cloud deployments, please refer to the "Network requirements and prerequisites in the Cloud Director site" section and ensure that the necessary ports are enabled in VMware Cloud Director  Availability.

For detailed information on VMware ports and protocols for VMware Cloud Director Availability and on-premises appliances  in cloud environments, please consult the following document: VMware Ports and Protocols for vCDA Cloud.