Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Xenobiologist
Regular Visitor

Configuration of PowerBI Gateway fails

Hello,

I'm trying to configure a PBI-Gateway on a Windows 2022 Server VM.

I get some erros, which I do not know how to solve or adress internally.

EnterpriseGatewayConfigurator.exe Information: 0 : Sign in complete
EnterpriseGatewayConfigurator.exe Information: 0 : Generating asymmetric key
EnterpriseGatewayConfigurator.exe Information: 0 : Create gateway ETU, https://wabi-north-europe-redirect.analysis.windows.net/
EnterpriseGatewayConfigurator.exe Error: 0 : Exception: System.AggregateException: One or more errors occurred. ---> Microsoft.PowerBI.DataMovement.GatewayCommon.CreateGatewayRequestException: Failed to create gateway. Please try again.
   at Microsoft.PowerBI.DataMovement.GatewayCommon.DmtsGatewayCreation.CreateDmtsGateway(CreateGatewayAndAddAppPrinciaplsRequest request, Uri dmtsBackendUri)
   at Microsoft.PowerBI.DataMovement.GatewayCommon.DmtsGatewayCreation.CreateAndUpdateLocalService(String gatewayName, SecureString recoveryKey, String salt, Uri dmtsBackendUri, GatewayServiceBusDetails senderDetails, GatewayServiceBusDetails listenerDetails, String registrationTenantObjectId, String registrationUserObjectId, String clientScope)
   at Microsoft.PowerBI.DataMovement.EnterpriseGatewayConfigurator.WizardServiceConfigurationViewModel.<ValidateAndCreateGatewayAsync>d__93.MoveNext()
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   at Microsoft.PowerBI.DataMovement.EnterpriseGatewayConfigurator.WizardServiceConfigurationViewModel.DoOk(Object param)
   at Microsoft.PowerBI.DataMovement.GatewayUiCommon.WizardViewModelBase.DoOkWorker(Object param)
   at Microsoft.PowerBI.DataMovement.GatewayUiCommon.RelayCommand.<>c__DisplayClass19_0.<Execute>b__0()
---> (Inner Exception #0) Microsoft.PowerBI.DataMovement.GatewayCommon.CreateGatewayRequestException: Failed to create gateway. Please try again.
   at Microsoft.PowerBI.DataMovement.GatewayCommon.DmtsGatewayCreation.CreateDmtsGateway(CreateGatewayAndAddAppPrinciaplsRequest request, Uri dmtsBackendUri)
   at Microsoft.PowerBI.DataMovement.GatewayCommon.DmtsGatewayCreation.CreateAndUpdateLocalService(String gatewayName, SecureString recoveryKey, String salt, Uri dmtsBackendUri, GatewayServiceBusDetails senderDetails, GatewayServiceBusDetails listenerDetails, String registrationTenantObjectId, String registrationUserObjectId, String clientScope)
   at Microsoft.PowerBI.DataMovement.EnterpriseGatewayConfigurator.WizardServiceConfigurationViewModel.<ValidateAndCreateGatewayAsync>d__93.MoveNext()<---

EnterpriseGatewayConfigurator.exe Information: 0 : Update checks
EnterpriseGatewayConfigurator.exe Information: 0 : Create web request for Uri: http://www.msftncsi.com/ncsi.txt
EnterpriseGatewayConfigurator.exe Information: 0 : Response status: OK
EnterpriseGatewayConfigurator.exe Information: 0 : Create httpClient request for Uri: http://www.msftncsi.com/ncsi.txt
EnterpriseGatewayConfigurator.exe Information: 0 : Response status: OK
EnterpriseGatewayConfigurator.exe Information: 0 : Checking for PbiEgwService
EnterpriseGatewayConfigurator.exe Information: 0 : Fetch state for PbiEgwService
EnterpriseGatewayConfigurator.exe Information: 0 : Service state: Running
EnterpriseGatewayConfigurator.exe Error: 0 : Gateway service health check Timeout failed with error : Health check failed because it cannot finish in 2000 ms.
EnterpriseGatewayConfigurator.exe Information: 0 : Create httpclient request for Uri: http://www.msftncsi.com/ncsi.txt
EnterpriseGatewayConfigurator.exe Information: 0 : Response status: OK
EnterpriseGatewayConfigurator.exe Error: 0 : Failed to get build version from remote json file in URL https://go.microsoft.com/fwlink/?linkid=839413 with error System.AggregateException: One or more errors occurred. ---> System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure.
   at System.Net.TlsStream.EndWrite(IAsyncResult asyncResult)
   at System.Net.ConnectStream.WriteHeadersCallback(IAsyncResult ar)
   --- End of inner exception stack trace ---
   at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
   at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar)
   --- End of inner exception stack trace ---
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
   at Microsoft.PowerBI.DataMovement.GatewayCommon.ConfiguratorClientExtensions.<GetObjectAsync>d__9`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.PowerBI.DataMovement.GatewayCommon.SelfServiceTools.GatewayVersionCheckTool.<GetRemoteVersionAsync>d__13.MoveNext()
---> (Inner Exception #0) System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure.
   at System.Net.TlsStream.EndWrite(IAsyncResult asyncResult)
   at System.Net.ConnectStream.WriteHeadersCallback(IAsyncResult ar)
   --- End of inner exception stack trace ---
   at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
   at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar)
   --- End of inner exception stack trace ---<---
DM.EnterpriseGateway Error: 0 : 2025-07-04T00:09:03.2915455Z DM.EnterpriseGateway	00000000-0000-0000-0000-000000000000	00000000-0000-0000-0000-000000000000	0000	00000000-0000-0000-0000-000000000000	00000000-0000-0000-0000-000000000000	00000000-0000-0000-0000-000000000000	2D2816FE [DM.ServiceBusPortsTest] Error: Invalid relays parameter
DM.EnterpriseGateway Error: 0 : 2025-07-04T01:09:03.6302508Z DM.EnterpriseGateway	00000000-0000-0000-0000-000000000000	00000000-0000-0000-0000-000000000000	0000	00000000-0000-0000-0000-000000000000	00000000-0000-0000-0000-000000000000	00000000-0000-0000-0000-000000000000	2D2816FE [DM.ServiceBusPortsTest] Error: Invalid relays parameter
DM.EnterpriseGateway Error: 0 : 2025-07-04T02:09:03.9645871Z DM.EnterpriseGateway	00000000-0000-0000-0000-000000000000	00000000-0000-0000-0000-000000000000	0000	00000000-0000-0000-0000-000000000000	00000000-0000-0000-0000-000000000000	00000000-0000-0000-0000-000000000000	2D2816FE [DM.ServiceBusPortsTest] Error: Invalid relays parameter
DM.EnterpriseGateway Error: 0 : 2025-07-04T03:09:04.2902117Z DM.EnterpriseGateway	00000000-0000-0000-0000-000000000000	00000000-0000-0000-0000-000000000000	0000	00000000-0000-0000-0000-000000000000	00000000-0000-0000-0000-000000000000	00000000-0000-0000-0000-000000000000	2D2816FE [DM.ServiceBusPortsTest] Error: Invalid relays parameter
DM.EnterpriseGateway Error: 0 : 2025-07-04T04:09:04.5139620Z DM.EnterpriseGateway	00000000-0000-0000-0000-000000000000	00000000-0000-0000-0000-000000000000	0000	00000000-0000-0000-0000-000000000000	00000000-0000-0000-0000-000000000000	00000000-0000-0000-0000-000000000000	2D2816FE [DM.ServiceBusPortsTest] Error: Invalid relays parameter
DM.EnterpriseGateway Error: 0 : 2025-07-04T05:09:04.9646224Z DM.EnterpriseGateway	00000000-0000-0000-0000-000000000000	00000000-0000-0000-0000-000000000000	0000	00000000-0000-0000-0000-000000000000	00000000-0000-0000-0000-000000000000	00000000-0000-0000-0000-000000000000	2D2816FE [DM.ServiceBusPortsTest] Error: Invalid relays parameter
DM.EnterpriseGateway Error: 0 : 2025-07-04T06:09:05.2871628Z DM.EnterpriseGateway	00000000-0000-0000-0000-000000000000	00000000-0000-0000-0000-000000000000	0000	00000000-0000-0000-0000-000000000000	00000000-0000-0000-0000-000000000000	00000000-0000-0000-0000-000000000000	2D2816FE [DM.ServiceBusPortsTest] Error: Invalid relays parameter
DM.EnterpriseGateway Error: 0 : 2025-07-04T07:09:05.6120970Z DM.EnterpriseGateway	00000000-0000-0000-0000-000000000000	00000000-0000-0000-0000-000000000000	0000	00000000-0000-0000-0000-000000000000	00000000-0000-0000-0000-000000000000	00000000-0000-0000-0000-000000000000	2D2816FE [DM.ServiceBusPortsTest] Error: Invalid relays parameter
DM.EnterpriseGateway Error: 0 : 2025-07-04T08:09:05.9414577Z DM.EnterpriseGateway	00000000-0000-0000-0000-000000000000	00000000-0000-0000-0000-000000000000	0000	00000000-0000-0000-0000-000000000000	00000000-0000-0000-0000-000000000000	00000000-0000-0000-0000-000000000000	2D2816FE [DM.ServiceBusPortsTest] Error: Invalid relays parameter
DM.EnterpriseGateway Error: 0 : 2025-07-04T09:09:06.2674005Z DM.EnterpriseGateway	00000000-0000-0000-0000-000000000000	00000000-0000-0000-0000-000000000000	0000	00000000-0000-0000-0000-000000000000	00000000-0000-0000-0000-000000000000	00000000-0000-0000-0000-000000000000	2D2816FE [DM.ServiceBusPortsTest] Error: Invalid relays parameter
DM.EnterpriseGateway Error: 0 : 2025-07-04T10:09:06.4881538Z DM.EnterpriseGateway	00000000-0000-0000-0000-000000000000	00000000-0000-0000-0000-000000000000	0000	00000000-0000-0000-0000-000000000000	00000000-0000-0000-0000-000000000000	00000000-0000-0000-0000-000000000000	2D2816FE [DM.ServiceBusPortsTest] Error: Invalid relays parameter

 Any help would be great.

Thanks!

1 ACCEPTED SOLUTION

We solved it. It was a problem with the TLS/SSL communication. There were some important Azure certificates missing on the machine.

View solution in original post

8 REPLIES 8
v-pgoloju
Community Support
Community Support

Hi @Xenobiologist,

 

Thank you for reaching out to the Microsoft Fabric Forum Community. And Thanks to @GilbertQ for prompt and helpful suggestion to fix the issue.

 

just checking in were you able to check with your network administrator regarding the proxy or network configuration? If you're still facing the issue, let us know and we can help look into it further.

 

Thanks & Regards,

Prasanna Kumar

We solved it. It was a problem with the TLS/SSL communication. There were some important Azure certificates missing on the machine.

Xenobiologist
Regular Visitor

Hi, that doesn't change anything.

I tried to configure the proxy setting in those multiple config files.

 

I still got theses errors:

 

   at Microsoft.PowerBI.DataMovement.Pipeline.GatewayCore.HealthCheck.NetworkCheck.WebRequestCheck()
DM.EnterpriseGateway Error: 0 : 2025-07-09T13:09:47.6054780Z DM.EnterpriseGateway	00000000-0000-0000-0000-000000000000	00000000-0000-0000-0000-000000000000	0000	00000000-0000-0000-0000-000000000000	00000000-0000-0000-0000-000000000000	00000000-0000-0000-0000-000000000000	2D2816FE [DM.ServiceBusPortsTest] Error: Invalid relays parameter
DM.EnterpriseGateway Error: 0 : 2025-07-09T13:26:27.8825990Z DM.EnterpriseGateway	463ee6a3-2f78-4f8e-8279-907f4002ff3c	00000000-0000-0000-0000-000000000000	MFHC	00000000-0000-0000-0000-000000000000	3047befd-4806-49ad-92d9-3334df39a792	16d70dd0-be92-43fa-b0d4-b635f5057bdb	A71C5F64 [DM.GatewayCore] Failed to send http web request. Failed with System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 89.27.241.19:80
   at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
   at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)

Hi @Xenobiologist 

 

I would recommend working with your network administrator to see if there are any network configuration issues which might need to be updated for your gateway to communicate successfully.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

GilbertQ
Super User
Super User

Hi @Xenobiologist 

 

I have not had any issues in the past with regards to installing the gateway. Can you please confirm that you have downloaded the standard gateway version and that you are installing it with administrator privileges on the server?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Hi @GilbertQ ,

 

yes, I downloaded the on-prem gateway and I'm working with an admin account on that VM.2025-07-09 13_12_04-Eigenschaften von GatewayInstall(1).exe.png

What happens if you re-install, what happens?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

I reinstalled the Gateway already twice. No difference.
Do you have a script that checks all the webdomains and ports?

The one below doesn't do anything at all on my machine.

Retrieving server list ... and then nothing.

Xenobiologist_1-1752155334023.png

 

 

 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.