Hi,
We are trying to move data from Postgres DB running on On-Prem using Azure data factory copy data activity. We have installed Self hosted IR (SHIR) on one of our On-Prem machines. We are able to run lookup activity which connects to this On-Prem database table using SHIR successfully. But the copy activity with source as this On-Prem Postgres database table and Sink as Azure PostgreSQL database fails with following error:
Type=System.Net.Sockets.SocketException,Message=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,Source=Npgsql,'
Below error is seen in the event logs of windows host where SHIR is installed:
TraceComponentId: TransferTask
TraceMessageId: TransferRunFailed
@logId: Error
FunctionName: Execute
jobId: f97a6d67-5642-d27b-e551-bf16968da87a
activityId: 6802a759-6a04-426f-8ee8-77ad485e54eb
eventId: TransferRunFailed
message: Copy failed with error: 'Type=System.Net.Sockets.SocketException,Message=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,Source=Npgsql,StackTrace= at Npgsql.NpgsqlConnector.Connect(NpgsqlTimeout timeout)
at Npgsql.NpgsqlConnector.<RawOpen>d__153.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 System.Runtime.CompilerServices.TaskAwaiter.GetResult()
at Npgsql.NpgsqlConnector.<Open>d__149.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 System.Runtime.CompilerServices.TaskAwaiter.GetResult()
at Npgsql.ConnectorPool.<AllocateLong>d__20.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 System.Threading.Tasks.ValueTask`1.get_Result()
at Npgsql.NpgsqlConnection.<>c__DisplayClass32_0.<<Open>g__OpenLong|0>d.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 System.Runtime.CompilerServices.TaskAwaiter.GetResult()
at Npgsql.NpgsqlConnection.Open()
at Microsoft.DataTransfer.Runtime.ConnectionContextExtension.ExecuteWithConnectionContext(IConnection connection, Action action, ConnectionContext context, Boolean needDisposeConnection)
at Microsoft.DataTransfer.Runtime.PipelineItemProfilerTelemetry.PreProcessSink()
at Microsoft.DataTransfer.Runtime.PipelineItemProfilerTelemetry.PreProcess()
at Microsoft.DataTransfer.TransferTask.CopyTask.PrepareCopyPipeline()
at Microsoft.DataTransfer.TransferTask.CopyTask.DoCopy()
at Microsoft.DataTransfer.TransferTask.CopyTaskBase.Execute(),'
Please let us know how to get resolve this?
Thanks,
-Manjusha