Could not retrieve directory listing

Advertisement

boccara
Joined:
Posts:
5
Location:
France

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

Reply with quote

Advertisement

boccara
Joined:
Posts:
5
Location:
France

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

Reply with quote

boccara
Joined:
Posts:
5
Location:
France

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.
  • winscp LOG.zip (8.35 KB, Private file)
Description: LOG files

Reply with quote

Advertisement

boccara
Joined:
Posts:
5
Location:
France

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

Reply with quote

martin
Site Admin
martin avatar

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?

Reply with quote

boccara
Joined:
Posts:
5
Location:
France

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 !

Reply with quote

Advertisement

You can post new topics in this forum