Facing Socket connection error while copying data from SFTP to Azure Blob Storage , linked service for SFTP is working, file names are also read from SFTP folder but while copying the files from SFTP to Azure Blob, it is throwing error.

Rekha Rani 0 Reputation points
2023-08-11T20:21:01.12+00:00

Azure Data Factory Copy activity to copy files from SFTP to Azure Blob Storage is throwing below error.

ErrorCode=SftpNetworkIssue,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=Meet network issue when connect to Sftp server '**********.com', SocketErrorCode: 'TimedOut'.,Source=Microsoft.DataTransfer.ClientLibrary.SftpConnector,''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=Renci.SshNet,'

These pipelines were running successfully from last 1.5 years, but from last couple of days, i am getting this error.

Connection is properly established via Linked service with SFTP , process is also able to succesfully fetch the file names from SFTP folder, but while copying the file, it is throwing error.

I tried to set concurrent connection to 1 for SFTP source, but there is no success.

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
3,192 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,624 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Bhargava-MSFT 31,261 Reputation points Microsoft Employee Moderator
    2023-08-16T20:29:05.8233333+00:00

    Hello Rekha Rani,

    Welcome to the Microsoft Q&A forum.

    Per the error message " Meet network issue when connect to Sftp server '**********.com'"

    the issue is with the network when connecting to the SFTP server from the ADF(could be a firewall issue or max concurrent connections issue)

    Can you please try the below and see if it resolves the issue?

    1. whitelist the ADF URL
    2. Open port 443 and SHIR VM Ip in the SFTP server
    3. set your sink Max concurrent connection less than the SFTP concurrent connection limit set by SFTP admin

    If this doesn't help, please work with your network admin to open a network trace and see if the SHIR requests reach the SFTP server.

    A similar thread has been discussed here with a detailed solution.

    I hope this helps. Please let me know if you have any further questions.

    If this answers your question, please consider accepting the answer by hitting the Accept answer and up-vote as it helps the community look for answers to similar questions.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.