Transferring multiple files ERROR

Advertisement

Daniel.S
Guest

Transferring multiple files ERROR

In my example, I am transferring somewhere beetwend 30 to 1500 files.
Sometimes it returns an error :
"Transfer channel can't be opened. Reason: An attempt was made to access a socket in a way forbidden by its access permissions.
Copying files from remote side failed. "

This kind of error does not appear often, 30% of the time appears.
We have tested the application (WinSCP) with manual transfer over 30 files and it return the same error.

How to fix this kind of problem ?

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
31,766
Location:
Prague, Czechia

Re: Transferring multiple files ERROR

Two possible causes:
1) Your firewall/NAT is not configured correctly and does not allow the same FTP transfer connection port range as your FTP server is using. So once the server chooses to use a non-allowed random port, the transfer fails.
2) Your server runs out of free FTP transfers ports because it has a narrow range of ports allowed.

Or there yet another problem.

Please attach a full session log file showing the problem (using the latest version of WinSCP).

To generate the session log file, enable logging, log in to your server and do the operation and only the operation that causes the error. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.

Reply with quote

Daniel.S
Guest

Transferring multiple files ERROR

That is the reply from WinSCP.
The application is opening the connection and in a loop it retrieves files from that FTP.
Application closest the connection and after is opening again for other files from same FTP.
The application has 2 loops, before the second loop it opens the FTP connection and after the second loop it closest, this repeats until the main loop ends.

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
31,766
Location:
Prague, Czechia

Re: Transferring multiple files ERROR

I'm sorry, but I do not understand the point of your response.

Reply with quote

Daniel.S
Guest

Transferring multiple files ERROR

OK.
A manual test with WinSCP.

1. User opens WinSCP.
2. Connects to FTP.
3. Transfers 30 files to FTP.

Sometimes WinSCP is returning the same error, like in the first POST.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
31,766
Location:
Prague, Czechia

Re: Transferring multiple files ERROR

I understand the problem you have. And I've explained, what I believe is the cause of the problem already.

Reply with quote

Advertisement

You can post new topics in this forum