Topic "Can't open data connection after a while"

Author Message
kimr-dk
[View user's profile]

Joined: 2014-05-28
Posts: 2
Hi

Both with the commands "synchronize local -delete -mirror" and "get * -resume" after it have downloaded many files, I've suddenly got:

Code:
2006092                   |            0 B |   51,2 KiB/s | binary |   0%
1.jpg                     |         39 KiB |   54,8 KiB/s | binary | 100%
2.jpg                     |         37 KiB |   56,4 KiB/s | binary | 100%
2006093                   |            0 B |   56,4 KiB/s | binary |   0%
1.jpg                     |         39 KiB |   54,1 KiB/s | binary | 100%
2.jpg                     |         37 KiB |   55,6 KiB/s | binary | 100%
2006094                   |            0 B |   55,6 KiB/s | binary |   0%
1.jpg                     |         39 KiB |   56,8 KiB/s | binary | 100%
2.jpg                     |         37 KiB |   50,1 KiB/s | binary | 100%
2006095                   |            0 B |   50,1 KiB/s | binary |   0%
Error listing directory '/Product/2006095'.
Could not retrieve directory listing
Can't open data connection for transfer of "/Product/2006095"
(A)bort, (R)etry, (S)kip, Ski(p) all: Abort
2006095                   |            0 B |   33,7 KiB/s | binary |   0%


It's random when the error appear.

I try to download/update local files from the server, so it won't have to download all files every time.

It seems to be a server error, but I can't figure out why.

Any ideas?

/Kim
Thanks
kimr-dk
[View user's profile]

Joined: 2014-05-28
Posts: 2
Think I found it... passive FTP 101 Smile

As the FTP server is FileZilla, I found on https://wiki.filezilla-project.org/Network_Configuration#Passive_mode_2
"Due to the nature of TCP (the underlying transport protocol), a port cannot be reused immediately after each connection. Hence the range of ports should not be too small or transfers of multiple small files can fail. A range of 50 ports should be sufficient in most cases."

I've opened a lot more ports and now it seems to work.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24991
Location: Prague, Czechia
Thanks for sharing the solution.
_________________
Martin Prikryl
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