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

Author Message
dotps1
[View user's profile]
Contributor
Joined: 2015-03-23
Posts: 15
Location: United States
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?

Code:

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.
_________________
https://github.com/dotps1
SessionLog.txt (20.48 KB) Private file

Description: I will enabled debugging log as well if need be.

Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
I've never seen this error before.

Did you read this?
http://serverfault.com/q/599081/168875
dotps1
[View user's profile]
Contributor
Joined: 2015-03-23
Posts: 15
Location: United States
prikryl wrote:
I've never seem this error before.

Did you read this?
http://serverfault.com/q/599081/168875


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
[View user's profile]
Contributor
Joined: 2015-03-23
Posts: 15
Location: United States
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.

Code:

$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
[View user's profile]
Contributor
Joined: 2015-03-23
Posts: 15
Location: United States
Martin,
Is it possible to incorporate this from the client side?

http://trylinux.org/2007/12/14/vsftpd-426-failure-writing-network-stream/

or would this be something that has to happen on the server side?
_________________
https://github.com/dotps1
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
dotps1 wrote:
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.

Code:

$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.

WinSCP retries only if the connection is lost while transferring. What is probably not this case.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
dotps1 wrote:
Is it possible to incorporate this from the client side?

http://trylinux.org/2007/12/14/vsftpd-426-failure-writing-network-stream/

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

Yes, that's a server-side setting.
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License