Hi Folks,
Am trying to troubleshoot an Power BI SaaS Enterprise Gateway data connection to a SQL Server 2014 instance hosted in a Windows Server 2012 R2 VM on Azure. The hope is to connect to this SQL Server instance using windows auth.
Unfortunately instead of this wokring I am getting the most unhelpful "Unknown error in Enterprise Gateway". Details of a the response in the UI are exemplified by the following:
Cluster URI: https://wabi-australia-southeast-redirect.analysis.windows.net Status code: 400 Error Code: DM_GWPipeline_UnknownError Time: Mon Jun 13 2016 01:46:23 GMT+1000 (AEST) Version: 13.0.1500.201
Digging further, I found the following information within the log file in the directory C:\Users\PBIEgwService\AppData\Local\Microsoft\Power BI Enterprise Gateway:
DM.EnterpriseGateway Information: 0 : 2016-06-12T15:39:36.7818409Z DM.EnterpriseGateway 00000000-0000-0000-0000-000000000000 00000000-0000-0000-0000-000000000000 0000 00000000-0000-0000-0000-000000000000 0E6D6CC9 [DM.GatewayCore] Successfully created and started service host for 'Transfer service' DM.EnterpriseGateway Information: 0 : 2016-06-12T15:40:55.8762142Z DM.EnterpriseGateway 8c66c682-8146-4701-8243-8bf272d00071 09fca51f-4f23-5385-be79-b2559ed99e7c MGPP 17b438d4-6d04-5f18-c615-507d9557ddde 7683252B [DM.GatewayCore] Deserialized EncryptCredentialsWithTestConnectionRequest, executing Starting trace on 6/12/2016 3:40:57 PM UTC Version: 13.0.1100.518 DM.EnterpriseGateway Information: 0 : 2016-06-12T15:40:57.6905124Z DM.EnterpriseGateway 00000000-0000-0000-0000-000000000000 00000000-0000-0000-0000-000000000000 0000 00000000-0000-0000-0000-000000000000 77C42AFE [DM.EnterpriseGateway] Starting Enterprise gateway service
Line #2 above has the description "Deserialized EncryptCredentialsWithTestConnectionRequest", and the next thing it looks like the Enterprise Gateway service is starting (Line #8 description "Starting Enterprise gateway service"). Sure enough, at the exact same time in the System Event Log I can find the following:
Log Name: System Source: Service Control Manager Date: 6/12/2016 3:40:57 PM Event ID: 7031 Task Category: None Level: Error Keywords: Classic User: N/A Computer: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX Description: The Power BI Gateway – Enterprise Service service terminated unexpectedly. It has done this 1 time(s). The following corrective action will be taken in 0 milliseconds: Restart the service.
Exploring further, I've found that if I try and connect as a windows identity which does not exist in the VM's domain then the Enterprise Gateway service does not crash and logs useful error messages (eg. "Error logging on user...", "Error impersonating a user", "The user name or password is incorrect" etc), and also returns useful error codes back to the Power BI UI for display.
Any assistance in resolving these crashes and getting Enterprise Gateway working with Windows auth will be greatly appreciated! Note that creating a dedicated SQL Server account and and connecting using these credentials via the "Basic" (SQL Server?) authentication method to the same Azure VM works fine... just so long as I open port 1433 to the internet - definately not something I plan to use as a long term solution!
Regards,
Rhys