SFTP: Connection timed out

I am downloading a 600 mb zip file which based on the connection speed could take 3-4 hours. After around 48 minutes it fails saying "Could not download files: Connection timed out (error code is 10060)".

What/Where can I do to increase this timeout?

Thanks

Or is there a way to resume broken/incomplete downloads? When I try to transfer it again it starts from 0 bytes.

Hi

Which build of Automise are you using? A fix to address this issue was added late last year and is included in the latest official release.

Regards,
Steve

Hi Steve,

I am using 3.0.0.911.

When you say “fix”, was it a fix for the timeout issue or the resume broken download issue?

After I posted this I did more tests using other SFTP programs and they all seem to time out somewhere between 30min - 3 hours so, I think I need to use the “Resume” feature of SFTP. I tried that and it resumes the download if I run it again manually but the “Reconnect if Disconneded” checkbox does not reconnect. Is the purpose of “Reconnect if Disconnected” only at the beginning of the download and not if it gets interupted in between?

Should I put a for or while loop and resume download if it gets disconnected/timed out? I am just trying to figure out what my best option is here.

Thanks for you help!

The fix was to allow the action to respond to requests be the SFTP server to re-authenticate during the operation. Some users were seeing issues where once a certain amount of data had been transferred the server was requesting re-authentication, which we were not responding to.

The ‘Reconnect if Disconnected’ option is only evaluated at the start of the action, so if the connection has been closed since the last SFTP operation, using this option will tell the action to attempt to re-establish the connection before performing the operation. It will not check the state of the connection once the operation is underway.

The ‘Resume’ transfer mode works in the same way (i.e. you will need to run the action again to resume from the point of failure).

You may want to put this action inside a loop so that the action continues to run while the download is incomplete. I would create a Automise Variable (called "DownloadResult’ or something similar) and then in the AfterAction script event set the DownloadResult to the value of the Action Result. Continue to loop while the download result is false. I would also use a second variable that increments a counter for each attempt and abort the loop after a specified number of retries. This way if the server goes down, your Automise project will not run forever.

Let me know if you need an example.

If you have access to the SFTP server, I would recommend looking at the logs to see if you can determine what is causing the disconnections.

Regards,
Steve

Thanks for the information. No I do not think I need an example, I was just looking for the best way to handle it. I will put a loop and I am pretty sure that will solve the issue.

Unfortunately, I do not have access to the SFTP server so, it would be hard to determine whats causing it. I can download small files without an issue, its just the 600mb file thats causing issues.

Thanks for your help!

No problems, let me know if you need anything else.

Regards,
Steve