Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

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

boccara

Resolved

You're right, we just resolved the issue a few hours ago.
It's a firewall issue.
On the FTP client side, they opened the port for the passive mode and it worked
(On the server side it was already opened).

Thank you !
martin

Re: Is this a firewall issue ?

It looks like a firewall issue. More probably server-side issue than a local-side issue. The passive mode does not usually have local-side problems. Strange is that there's a different certificate fingerprint in each log. Or did you tamper with that too?
boccara

Is this a firewall issue ?

Hello,
according to the logs, what do you thing ?
is the problem on the FTP server side or at FTP client side ?
We move the FTP server from DMZ to public internet connection, and the problem is still existing....
boccara

LOG

Hello attached the file.
didn't know that I could make it private before so I changed some sensitive data.
But the two clients are connecting to the same FTP server with the same user account.

Regards.
boccara

LOG with script

Hello,
thanks for your answer.
Could you explain me what to add in the commandline and where are the logs ?

I added /loglevel=1 to my batch file but I don't see any log ....
@echo off
winscp.com /ini=nul /script=winscpgetD2B.txt /loglevel=1
martin

Re: Could not retrieve directory listing

Please post log files from both machines. Though most likely this is a firewall issue.
See https://winscp.net/eng/docs/ftp_modes
boccara

Could not retrieve directory listing

Hello,
we have a very strange problem.
We are using the same version of WinSCP (the last one, 5.17.8 build 10803) on two different windows machin.
The two PC are on different location.
They try to download via FTP the same files on the same ftp server with the same winscp script.

The connection is FTP with Explicit SSL server.
in one this is working perfectly,
in the second one, we have the following problem.
We are getting crazy. we made a lot of changes to try to find the solution, but nothing....
winscp> open ftps://user:password@ftp.zzz.com/ -certificate="zzzzzzzzzzzzzzzzzzzzzzz" -rawsettings MaxTlsVersion=13 -passive=on -explicit

Connecting to ftp.zzz.com ...
TLS connection established. Waiting for welcome message...
Connected
Starting the session...
Session started.
Active session: [1] zzzzz2xxxxxx@ftp.zzz.com
winscp> cd EDI_zzzzz
/EDI_zzzzz
winscp> dir
Lost connection.
Timeout detected. (data connection)
Could not retrieve directory listing
(A)bort, (R)econnect (0 s): Reconnect
Connecting to ftp.zzz.com ...
TLS connection established. Waiting for welcome message...
Connected
Starting the session...