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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
Knud
Frequent Visitor

Failed to update gateway details. Please try again

We are trying to install the on-premise data gateway.

 

Installing went OK, but when registering the gateway we got an error:

 

Failed to update gateway details. Please try again.
This request operation sent to net.pipe://localhost/powerbi/gatewayconfiguration/service did not receive a reply within the configured timeout (00:01:00).  The time allotted to this operation may have been a portion of a longer timeout.  This may be because the service is still processing the operation or because the service was unable to send a reply message.  Please consider increasing the operation timeout (by casting the channel/proxy to IContextChannel and setting the OperationTimeout property) and ensure that the service is able to connect to the client.

Server stack trace:
   at System.ServiceModel.Dispatcher.DuplexChannelBinder.Request(Message message, TimeSpan timeout)
   at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
   at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
   at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]:
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   at Microsoft.PowerBI.DataMovement.Pipeline.InternalContracts.IGatewayConfigurationService.UpdateGatewayConfiguration(UpdateGatewayConfigurationRequest request)
   at Microsoft.PowerBI.DataMovement.Pipeline.GatewayClient.GatewayConfigurationClient.UpdateGatewayConfiguration(UpdateGatewayConfigurationRequest request)

 

 

The gateway was created, I can see it in Power BI Services but with the message "The gateway is either offline or could not be reached"


Because our proxy only allows ports 80 and 443 traffic we forced the gateway using HTTPS instead of direct TCP by modifing the Microsoft.PowerBI.DataMovement.Pipeline.GatewayCore.dll.config file from AutoDetect to Https.

1 ACCEPTED SOLUTION
v-yuezhe-msft
Employee
Employee

Hi @Knud,

Based on the above log, the issue is related to Proxy. Please follow the steps to troubleshoot this issue.

1. Make sure that you follow the instructions in this article to configure proxy settings for the On-premises Data Gateway. Please note that the default proxy configuration works with windows authentication. If your proxy uses another form of authentication, you will need to change the settings. You can check out proxy configuration instructions in this article: https://msdn.microsoft.com/library/kd3cf2ex.aspx .

2. Test that if your firewall or proxy blocks connections to the Azure Service Bus following the instructions in this article: Troubleshooting the On-Premises Data Gateway.

3. If the issue still occurs, please use fiddler to monitors HTTP traffic and you can share us detailed trace information from fiddler.


Thanks,
Lydia Zhang

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-yuezhe-msft
Employee
Employee

Hi @Knud,

Based on the above log, the issue is related to Proxy. Please follow the steps to troubleshoot this issue.

1. Make sure that you follow the instructions in this article to configure proxy settings for the On-premises Data Gateway. Please note that the default proxy configuration works with windows authentication. If your proxy uses another form of authentication, you will need to change the settings. You can check out proxy configuration instructions in this article: https://msdn.microsoft.com/library/kd3cf2ex.aspx .

2. Test that if your firewall or proxy blocks connections to the Azure Service Bus following the instructions in this article: Troubleshooting the On-Premises Data Gateway.

3. If the issue still occurs, please use fiddler to monitors HTTP traffic and you can share us detailed trace information from fiddler.


Thanks,
Lydia Zhang

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks for your suggestions. It worked for us.

 

We solved the problem bij changing the proxy settings in C:\Program Files\On-premises data gateway\enterprisegatewayconfigurator.exe.config and C:\Program Files\On-premises data gateway\Microsoft.PowerBI.EnterpriseGateway.exe.config:

 

  <system.net>
    <defaultProxy>
      <proxy
        usesystemdefault="true"
        proxyaddress="http://10.142.140.141:8080"
        bypassonlocal="true"
      />
    </defaultProxy>
  </system.net>

 

https://powerbi.microsoft.com/en-us/documentation/powerbi-gateway-proxy/#changing-the-gateway-servic...

 

Hi, can you help me fixing this problem.

Even though I change the proxy settings in C:\Program Files\On-premises data gateway\enterprisegatewayconfigurator.exe.config and C:\Program Files\On-premises data gateway\Microsoft.PowerBI.EnterpriseGateway.exe.config: 

  <system.net>
    <defaultProxy>
      <proxy
        usesystemdefault="true"
        proxyaddress="http://172.16.1.10:8080"  
        bypassonlocal="true"
      />
    </defaultProxy>
  </system.net>

 

The error still occurred:

Network request returned unexpected error.
The remote server returned an error: (407) Proxy Authentication Required.
at System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult, TransportContext& context)
at System.Net.Http.HttpClientHandler.GetRequestStreamCallback(IAsyncResult ar)

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

Check out the February 2024 Power BI update to learn about new features.

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors
Top Kudoed Authors