HCW ERROR: Timeout 504 when try to migrate Exchange Server 2019 to Online

Indalecio Trujillo 0 Reputation points
2024-01-22T21:24:52.4+00:00

Our company is trying to migrate from OnPrime to OnLine our email services. We are using Hybrid migration wizard, when i clicked over Finish button i got the error, see image bellow. User's image

Reviewing the log I found the following:

                                       {ErrorDetail=Microsoft.Exchange.Migration.MigrationServerConnectionFailedException: The connection to the server 'ceb7d730-8fec-40b6-ac37-f7840d8349e5.resource.mailboxmigration.his.msappproxy.net' could not be completed. ---> Microsoft.Exchange.MailboxReplicationService.MRSRemoteTransientException: The call to 'https://ceb7d730-8fec-40b6-ac37-f7840d8349e5.resource.mailboxmigration.his.msappproxy.net/EWS/mrsproxy.svc' timed out. Error details: The request channel timed out while waiting for a reply after 00:00:09.9994290. Increase the timeout value passed to the call to Request or increase the SendTimeout value on the Binding. The time allotted to this operation may have been a portion of a longer timeout. --> The remote server returned an error: (504) Gateway Timeout. --> The remote server returned an error: (504) Gateway Timeout. ---> Microsoft.Exchange.MailboxReplicationService.MRSRemotePer
                                      manentException: The request channel timed out while waiting for a reply after 00:00:09.9994290. Increase the timeout value passed to the call to Request or increase the SendTimeout value on the Binding. The time allotted to this operation may have been a portion of a longer timeout. ---> Microsoft.Exchange.MailboxReplicationService.MRSRemotePermanentException: The remote server returned an error: (504) Gateway Timeout. ---> Microsoft.Exchange.MailboxReplicationService.MRSRemotePermanentException: The remote server returned an error: (504) Gateway Timeout.    --- End of inner exception stack trace ---    --- End of inner exception stack trace ---    --- End of inner exception stack trace ---    at Microsoft.Exchange.MailboxReplicationService.MailboxReplicationServiceFault.ReconstructAndThrow(String serverName, VersionInformation serverVersion)    at Microsoft.Exchange.Connections.Common.WcfCli
                                      entWithFaultHandling`2.<>c__DisplayClass4_0.<CallService>b__0()    at Microsoft.Exchange.Net.WcfClientBase`1.CallService(Action serviceCall, String context)    at Microsoft.Exchange.Connections.Common.WcfClientWithFaultHandling`2.CallService(Action serviceCall, String context)    at Microsoft.Exchange.MailboxReplicationService.WcfClientWithVersion`2.CallService(Action serviceCall, String context)    at Microsoft.Exchange.Migration.MigrationExchangeProxyRpcClient.CanConnectToMrsProxy(Fqdn serverName, Guid mbxGuid, NetworkCredential credentials, LocalizedException& error)    --- End of inner exception stack trace ---    at Microsoft.Exchange.Migration.MigrationEndpointVerifier.VerifyConnectivity(MigrationEndpointBase endpoint)    at Microsoft.Exchange.Management.Migration.MigrationService.Endpoint.TestMigrationServerAvailability.InternalProcessEndpoint(Boolean fromAutoDiscover) IsValid=True Mess
                                      age=The connection to the server 'ceb7d730-8fec-40b6-ac37-f7840d8349e5.resource.mailboxmigration.his.msappproxy.net' could not be completed. Result=Failed SupportsCutover=False}

Mrsproxy is enable in our local exchange server, i can reach our mrsproxy remotely and i can auntheticated too, i disabled and renable the mrsproxy and try again and all the time i got the same error. someone has been the same error and maybe could share the solution please. Regards Indalecio Trujillo

Exchange Server
Exchange Server
A family of Microsoft client/server messaging and collaboration software.
1,197 questions
Microsoft Exchange Hybrid Management
Microsoft Exchange Hybrid Management
Microsoft Exchange: Microsoft messaging and collaboration software.Hybrid Management: Organizing, handling, directing or controlling hybrid deployments.
1,999 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Yuki Sun-MSFT 41,016 Reputation points
    2024-01-23T02:12:25.2266667+00:00

    Hi @Indalecio Trujillo

    From the error logs, it looks like an issue which might be related to network configuration.

    Just wondering is there any firewall running on your on-prem Exchange servers? If so, it's suggested to temporarily disabling them and rerun HCW to check how it goes.

    You can also follow the instructions in the link below to verify the connectivity between Exchange 2019 and Exchange Online by downloading the sample script and running Test-HybridConnectivity -TestO365Endpoints.
    Verify connectivity

    Moreover, noted in the thread below that a "(504) Gateway Timeout" error in HCW was finally resolved by disabling IPV6, so I assume you can have a go on your end as well and see if it can help.
    HCW Error 8078


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  2. Amit Singh 4,956 Reputation points
    2024-01-23T07:10:46.59+00:00

    To resolve this issue, consider adjusting the timeout values in the relevant migration configuration settings by increasing the timeout value in the Request call or changing the Binding's SendTimeout. Additionally, checking network conditions and server responsiveness may aid in resolving the timeout issue.

    0 comments No comments