Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: re download with while loop?

WinSCP retries only if the connection is lost while transferring. What is probably not this case.

And, yes, that's a server-side setting.
dotps1

use_sendfile=no

Martin,
Is it possible to incorporate this from the client side?

<invalid hyperlink removed by admin>

or would this be something that has to happen on the server side?
dotps1

re download with while loop?

Martin,
While I'm waiting on the vendor, is there a way to make the script retry the download on this error? I was thinking of doing like a while loop.

$result = $null
while ($result.Failures.Count -ne 0){
    $result = # Download file here.
}


but I was wondering if there is a built in way to handle this.

thanks.
dotps1

Re: Copying files from remote side failed. Failure writing network stream.

huh, ill reach out to the vendor and see if they have any AV on there system, the server I am using to run the task has not AV on it.

Thanks for the info, I will let you know what I find out.
dotps1

Copying files from remote side failed. Failure writing network stream.

I have a scheduled task that runs during the night and downloads a very large database bak file (around 10GB). And many nights if fails. But when I run the scheduled task (not just run the script) it works fine everytime. Does this error look more like an issue with the remote side FTP server?
WinSCP.SessionRemoteException: Error transferring file '/DatabaseBackupFile.BAK'. ---> WinSCP.SessionRemoteException: Copying files from remote side failed.

                    Failure writing network stream.

I really don't understand why it works manually everytime, that leads me to believe either a network hiccup or something with the remote side FTP server.