Forum Discussion

nathanh's avatar
nathanh
Regular Visitor
8 years ago
Solved

Certificate issue when connecting a PostgreSQL database to an On-Premise Enterprise Gateway

Hi all, 

 

I've been having trouble connecting to PostgreSQL using the On-Premise Enterprise Gateway without ODBC. On the same machine as the gateway, I have installed Power BI and connected to the PostgreSQL database without any issues (thanks to the instructions here:https://community.powerbi.com/t5/Integrations-with-Files-and/Connecting-to-PostgresSQL-hosted-on-AWS-RDS/m-p/136301#M8605), but when setting up a new data source for the gateway I encounter the following error:   

 

Unable to connect: We encountered an error while trying to connect to data-warehouse-dev.csgxzpfrma4x.eu-west-1.rds.amazonaws.com. Details: "We could not register this data source for all gateway instances within this cluster. Please find more details below about specific errors for each gateway instance."Hide details

Activity ID:f570a8d6-a779-4331-8d0d-8d582d7e5521
Request ID:d2e75334-1418-8c11-8697-34952dd0543f
Cluster URI:https://wabi-north-europe-redirect.analysis.windows.net
Status code:400
Error Code:DMTS_PublishDatasourceToClusterErrorCode
Time:Mon Feb 05 2018 16:11:56 GMT+0000 (GMT Standard Time)
Version:13.0.4164.188
bboxx-ldn:Cannot connect to the mashup data source. See error details for more information.
Underlying error code:-2147467259
Underlying error message:An error happened while reading data from the provider: 'Npgsql.Tls.ClientAlertException: CertificateUnknown: Server certificate was not accepted. Chain status: A certificate chain processed, but terminated in a root certificate which is not trusted by the trust provider. . at Npgsql.Tls.TlsClientStream.ParseCertificateMessage(Byte[] buf, Int32& pos) at Npgsql.Tls.TlsClientStream.TraverseHandshakeMessages() at Npgsql.Tls.TlsClientStream.<GetInitialHandshakeMessages>d__43.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Npgsql.Tls.TlsClientStream.<PerformInitialHandshake>d__72.MoveNext()'
DM_ErrorDetailNameCode_UnderlyingHResult:-2147467259
Microsoft.Data.Mashup.ValueError.DataSourceKind:PostgreSQL
Microsoft.Data.Mashup.ValueError.DataSourcePath:****.rds.amazonaws.com;DataWarehouseDev
Microsoft.Data.Mashup.ValueError.Reason:DataSource.Error

 

Has anyone else successfully connected an On-Premise Enterprise Gateway to a PostgreSQL source without ODBC? Any suggestions for overcoming this error would be very welcome! 

4 Replies