winscp Could not retrieve directory listing
Hi,
we have this error using WINSCP 4.3.7 Build 1679.
we use WINSCP to transfer files from remote site to our network.
The client run on OS server WINDOWS 2012. Suddenly, but not always WINSCP report this error message:
winscp Could not retrieve directory listing
We noticed that the error occurs when the remote direcotry is empty.
Here the complete log of the ftp session:
. 2017-07-12 16:11:23.234 --------------------------------------------------------------------------
. 2017-07-12 16:11:23.234 WinSCP Version 4.3.7 (Build 1679) (OS 6.2.9200) . 2017-07-12 16:11:23.234 Configuration: C:\NCINVIOFLUSSI_FTP\winscp.ini . 2017-07-12 16:11:23.234 Local account: DO000000010001\APPNCBAT . 2017-07-12 16:11:23.234 Login time: Wednesday, July 12, 2017 4:11:23 PM . 2017-07-12 16:11:23.234 --------------------------------------------------------------------------
. 2017-07-12 16:11:23.234 Session name: MPSWDIBAUser@83.221.124.187 (Ad-Hoc session) . 2017-07-12 16:11:23.234 Host name: 83.221.124.187 (Port: 990) . 2017-07-12 16:11:23.234 User name: MPSWDIBAUser (Password: Yes, Key file: No) . 2017-07-12 16:11:23.234 Tunnel: No . 2017-07-12 16:11:23.234 Transfer Protocol: FTP . 2017-07-12 16:11:23.234 Ping type: C, Ping interval: 30 sec; Timeout: 15 sec . 2017-07-12 16:11:23.234 Proxy: none . 2017-07-12 16:11:23.234 FTP: FTPS: Implicit SSL/TLS; Passive: Yes [Force IP: No] . 2017-07-12 16:11:23.234 Local directory: default, Remote directory: home, Update: No, Cache: Yes . 2017-07-12 16:11:23.234 Cache directory changes: Yes, Permanent: Yes . 2017-07-12 16:11:23.234 DST mode: 1 . 2017-07-12 16:11:23.234 --------------------------------------------------------------------------
. 2017-07-12 16:11:23.312 Connecting to 83.221.124.187:990 ...
. 2017-07-12 16:11:23.328 Connected with 83.221.124.187:990, negotiating SSL connection...
. 2017-07-12 16:11:23.828 SSL connection established. Waiting for welcome message...
< 2017-07-12 16:11:23.828 220-FileZilla Server 0.9.53 beta < 2017-07-12 16:11:23.828 220-written by Tim Kosse (Tim.Kosse@gmx.de) < 2017-07-12 16:11:23.828 220 Please visit http://sourceforge.net/projects/filezilla/
> 2017-07-12 16:11:23.828 USER MPSWDIBAUser
< 2017-07-12 16:11:23.859 331 Password required for mpswdibauser
> 2017-07-12 16:11:23.859 PASS ***********
< 2017-07-12 16:11:23.875 230 Logged on
> 2017-07-12 16:11:23.875 SYST
< 2017-07-12 16:11:23.907 215 UNIX emulated by FileZilla
> 2017-07-12 16:11:23.907 FEAT
< 2017-07-12 16:11:23.937 211-Features:
< 2017-07-12 16:11:23.937 MDTM
< 2017-07-12 16:11:23.937 REST STREAM
< 2017-07-12 16:11:23.937 SIZE
< 2017-07-12 16:11:23.937 MLST type*;size*;modify*; < 2017-07-12 16:11:23.937 MLSD < 2017-07-12 16:11:23.937 AUTH SSL < 2017-07-12 16:11:23.937 AUTH TLS < 2017-07-12 16:11:23.937 PROT < 2017-07-12 16:11:23.937 PBSZ < 2017-07-12 16:11:23.937 UTF8 < 2017-07-12 16:11:23.937 CLNT < 2017-07-12 16:11:23.937 MFMT < 2017-07-12 16:11:23.937 EPSV < 2017-07-12 16:11:23.937 EPRT < 2017-07-12 16:11:23.937 211 End
> 2017-07-12 16:11:23.937 PBSZ 0
< 2017-07-12 16:11:23.953 200 PBSZ=0
> 2017-07-12 16:11:23.953 PROT P
< 2017-07-12 16:11:23.969 200 Protection level set to P . 2017-07-12 16:11:23.969 Connected . 2017-07-12 16:11:23.969 --------------------------------------------------------------------------
. 2017-07-12 16:11:23.969 Using FTP protocol.
. 2017-07-12 16:11:23.969 Doing startup conversation with host.
> 2017-07-12 16:11:23.969 PWD
< 2017-07-12 16:11:23.985 257 "/" is current directory.
. 2017-07-12 16:11:23.985 Getting current directory name.
. 2017-07-12 16:11:23.985 Startup conversation with host finished.
< 2017-07-12 16:11:23.985 Script: Active session: [1] MPSWDIBAUser@83.221.124.187
> 2017-07-12 16:11:23.985 Script: lcd
> \\onassi1.sum.local\nc\Fatture_PA\03442\in
< 2017-07-12 16:11:24.407 Script: \\onassi1.sum.local\nc\Fatture_PA\03442\in
> 2017-07-12 16:11:24.407 Script: synchronize local
> \\onassi1.sum.local\nc\Fatture_PA\03442\in /OUT
< 2017-07-12 16:11:24.407 Script: Comparing...
. 2017-07-12 16:11:24.407 Collecting synchronization list for local directory '\\onassi1.sum.local\nc\Fatture_PA\03442\in' and remote directory '/OUT', mode = 1, params = 2 . 2017-07-12 16:11:24.407 Retrieving directory listing...
> 2017-07-12 16:11:24.407 CWD /OUT/
< 2017-07-12 16:11:24.437 250 CWD successful. "/OUT" is current directory.
> 2017-07-12 16:11:24.437 PWD
< 2017-07-12 16:11:24.453 257 "/OUT" is current directory.
> 2017-07-12 16:11:24.453 TYPE A
< 2017-07-12 16:11:24.469 200 Type set to A
> 2017-07-12 16:11:24.469 PASV
< 2017-07-12 16:11:24.485 227 Entering Passive Mode (83,221,124,187,41,41)
> 2017-07-12 16:11:24.485 LIST -a
< 2017-07-12 16:11:24.516 150 Opening data channel for directory listing of "/OUT"
< 2017-07-12 16:11:24.984 226 Successfully transferred "/OUT"
. 2017-07-12 16:11:24.984 SSL connection established . 2017-07-12 16:11:24.984 Could not retrieve directory listing . 2017-07-12 16:11:24.984 Retrieving directory listing...
> 2017-07-12 16:11:24.984 TYPE A
< 2017-07-12 16:11:25.000 200 Type set to A
> 2017-07-12 16:11:25.000 PASV
< 2017-07-12 16:11:25.031 227 Entering Passive Mode (83,221,124,187,42,242)
> 2017-07-12 16:11:25.031 LIST
< 2017-07-12 16:11:25.141 150 Opening data channel for directory listing of "/OUT"
< 2017-07-12 16:11:25.531 226 Successfully transferred "/OUT"
. 2017-07-12 16:11:25.531 Directory listing successful < 2017-07-12 16:11:25.531 Script: Synchronizing...
. 2017-07-12 16:11:25.531 Synchronizing local directory '\\onassi1.sum.local\nc\Fatture_PA\03442\in\' with remote directory '/OUT/', params = 2
> 2017-07-12 16:11:25.531 Script: cd /OUT
. 2017-07-12 16:11:25.531 Cached directory change via "/OUT" to "/OUT".
. 2017-07-12 16:11:25.531 Getting current directory name.
< 2017-07-12 16:11:25.531 Script: /OUT
> 2017-07-12 16:11:25.531 Script: rm *.rdy *.zip
. 2017-07-12 16:11:25.531 Retrieving directory listing...
> 2017-07-12 16:11:25.531 TYPE A
< 2017-07-12 16:11:25.547 200 Type set to A
> 2017-07-12 16:11:25.547 PASV
< 2017-07-12 16:11:25.563 227 Entering Passive Mode (83,221,124,187,41,213)
> 2017-07-12 16:11:25.563 LIST
< 2017-07-12 16:11:26.000 150 Opening data channel for directory listing of "/OUT"
. 2017-07-12 16:11:26.078 SSL connection established < 2017-07-12 16:11:26.078 226 Successfully transferred "/OUT"
. 2017-07-12 16:11:26.078 Could not retrieve directory listing . 2017-07-12 16:11:26.078 Asking user:
. 2017-07-12 16:11:26.078 Error listing directory '/OUT'. ("Could not retrieve directory listing","Successfully transferred ""/OUT""") . 2017-07-12 16:11:26.078 Script: Failed
> 2017-07-12 16:11:26.078 Script: exit
. 2017-07-12 16:11:26.078 Disconnected from server
winscp Could not retrieve directory listing
Best regards
Stefano
we have this error using WINSCP 4.3.7 Build 1679.
we use WINSCP to transfer files from remote site to our network.
The client run on OS server WINDOWS 2012. Suddenly, but not always WINSCP report this error message:
winscp Could not retrieve directory listing
We noticed that the error occurs when the remote direcotry is empty.
Here the complete log of the ftp session:
. 2017-07-12 16:11:23.234 --------------------------------------------------------------------------
. 2017-07-12 16:11:23.234 WinSCP Version 4.3.7 (Build 1679) (OS 6.2.9200) . 2017-07-12 16:11:23.234 Configuration: C:\NCINVIOFLUSSI_FTP\winscp.ini . 2017-07-12 16:11:23.234 Local account: DO000000010001\APPNCBAT . 2017-07-12 16:11:23.234 Login time: Wednesday, July 12, 2017 4:11:23 PM . 2017-07-12 16:11:23.234 --------------------------------------------------------------------------
. 2017-07-12 16:11:23.234 Session name: MPSWDIBAUser@83.221.124.187 (Ad-Hoc session) . 2017-07-12 16:11:23.234 Host name: 83.221.124.187 (Port: 990) . 2017-07-12 16:11:23.234 User name: MPSWDIBAUser (Password: Yes, Key file: No) . 2017-07-12 16:11:23.234 Tunnel: No . 2017-07-12 16:11:23.234 Transfer Protocol: FTP . 2017-07-12 16:11:23.234 Ping type: C, Ping interval: 30 sec; Timeout: 15 sec . 2017-07-12 16:11:23.234 Proxy: none . 2017-07-12 16:11:23.234 FTP: FTPS: Implicit SSL/TLS; Passive: Yes [Force IP: No] . 2017-07-12 16:11:23.234 Local directory: default, Remote directory: home, Update: No, Cache: Yes . 2017-07-12 16:11:23.234 Cache directory changes: Yes, Permanent: Yes . 2017-07-12 16:11:23.234 DST mode: 1 . 2017-07-12 16:11:23.234 --------------------------------------------------------------------------
. 2017-07-12 16:11:23.312 Connecting to 83.221.124.187:990 ...
. 2017-07-12 16:11:23.328 Connected with 83.221.124.187:990, negotiating SSL connection...
. 2017-07-12 16:11:23.828 SSL connection established. Waiting for welcome message...
< 2017-07-12 16:11:23.828 220-FileZilla Server 0.9.53 beta < 2017-07-12 16:11:23.828 220-written by Tim Kosse (Tim.Kosse@gmx.de) < 2017-07-12 16:11:23.828 220 Please visit http://sourceforge.net/projects/filezilla/
> 2017-07-12 16:11:23.828 USER MPSWDIBAUser
< 2017-07-12 16:11:23.859 331 Password required for mpswdibauser
> 2017-07-12 16:11:23.859 PASS ***********
< 2017-07-12 16:11:23.875 230 Logged on
> 2017-07-12 16:11:23.875 SYST
< 2017-07-12 16:11:23.907 215 UNIX emulated by FileZilla
> 2017-07-12 16:11:23.907 FEAT
< 2017-07-12 16:11:23.937 211-Features:
< 2017-07-12 16:11:23.937 MDTM
< 2017-07-12 16:11:23.937 REST STREAM
< 2017-07-12 16:11:23.937 SIZE
< 2017-07-12 16:11:23.937 MLST type*;size*;modify*; < 2017-07-12 16:11:23.937 MLSD < 2017-07-12 16:11:23.937 AUTH SSL < 2017-07-12 16:11:23.937 AUTH TLS < 2017-07-12 16:11:23.937 PROT < 2017-07-12 16:11:23.937 PBSZ < 2017-07-12 16:11:23.937 UTF8 < 2017-07-12 16:11:23.937 CLNT < 2017-07-12 16:11:23.937 MFMT < 2017-07-12 16:11:23.937 EPSV < 2017-07-12 16:11:23.937 EPRT < 2017-07-12 16:11:23.937 211 End
> 2017-07-12 16:11:23.937 PBSZ 0
< 2017-07-12 16:11:23.953 200 PBSZ=0
> 2017-07-12 16:11:23.953 PROT P
< 2017-07-12 16:11:23.969 200 Protection level set to P . 2017-07-12 16:11:23.969 Connected . 2017-07-12 16:11:23.969 --------------------------------------------------------------------------
. 2017-07-12 16:11:23.969 Using FTP protocol.
. 2017-07-12 16:11:23.969 Doing startup conversation with host.
> 2017-07-12 16:11:23.969 PWD
< 2017-07-12 16:11:23.985 257 "/" is current directory.
. 2017-07-12 16:11:23.985 Getting current directory name.
. 2017-07-12 16:11:23.985 Startup conversation with host finished.
< 2017-07-12 16:11:23.985 Script: Active session: [1] MPSWDIBAUser@83.221.124.187
> 2017-07-12 16:11:23.985 Script: lcd
> \\onassi1.sum.local\nc\Fatture_PA\03442\in
< 2017-07-12 16:11:24.407 Script: \\onassi1.sum.local\nc\Fatture_PA\03442\in
> 2017-07-12 16:11:24.407 Script: synchronize local
> \\onassi1.sum.local\nc\Fatture_PA\03442\in /OUT
< 2017-07-12 16:11:24.407 Script: Comparing...
. 2017-07-12 16:11:24.407 Collecting synchronization list for local directory '\\onassi1.sum.local\nc\Fatture_PA\03442\in' and remote directory '/OUT', mode = 1, params = 2 . 2017-07-12 16:11:24.407 Retrieving directory listing...
> 2017-07-12 16:11:24.407 CWD /OUT/
< 2017-07-12 16:11:24.437 250 CWD successful. "/OUT" is current directory.
> 2017-07-12 16:11:24.437 PWD
< 2017-07-12 16:11:24.453 257 "/OUT" is current directory.
> 2017-07-12 16:11:24.453 TYPE A
< 2017-07-12 16:11:24.469 200 Type set to A
> 2017-07-12 16:11:24.469 PASV
< 2017-07-12 16:11:24.485 227 Entering Passive Mode (83,221,124,187,41,41)
> 2017-07-12 16:11:24.485 LIST -a
< 2017-07-12 16:11:24.516 150 Opening data channel for directory listing of "/OUT"
< 2017-07-12 16:11:24.984 226 Successfully transferred "/OUT"
. 2017-07-12 16:11:24.984 SSL connection established . 2017-07-12 16:11:24.984 Could not retrieve directory listing . 2017-07-12 16:11:24.984 Retrieving directory listing...
> 2017-07-12 16:11:24.984 TYPE A
< 2017-07-12 16:11:25.000 200 Type set to A
> 2017-07-12 16:11:25.000 PASV
< 2017-07-12 16:11:25.031 227 Entering Passive Mode (83,221,124,187,42,242)
> 2017-07-12 16:11:25.031 LIST
< 2017-07-12 16:11:25.141 150 Opening data channel for directory listing of "/OUT"
< 2017-07-12 16:11:25.531 226 Successfully transferred "/OUT"
. 2017-07-12 16:11:25.531 Directory listing successful < 2017-07-12 16:11:25.531 Script: Synchronizing...
. 2017-07-12 16:11:25.531 Synchronizing local directory '\\onassi1.sum.local\nc\Fatture_PA\03442\in\' with remote directory '/OUT/', params = 2
> 2017-07-12 16:11:25.531 Script: cd /OUT
. 2017-07-12 16:11:25.531 Cached directory change via "/OUT" to "/OUT".
. 2017-07-12 16:11:25.531 Getting current directory name.
< 2017-07-12 16:11:25.531 Script: /OUT
> 2017-07-12 16:11:25.531 Script: rm *.rdy *.zip
. 2017-07-12 16:11:25.531 Retrieving directory listing...
> 2017-07-12 16:11:25.531 TYPE A
< 2017-07-12 16:11:25.547 200 Type set to A
> 2017-07-12 16:11:25.547 PASV
< 2017-07-12 16:11:25.563 227 Entering Passive Mode (83,221,124,187,41,213)
> 2017-07-12 16:11:25.563 LIST
< 2017-07-12 16:11:26.000 150 Opening data channel for directory listing of "/OUT"
. 2017-07-12 16:11:26.078 SSL connection established < 2017-07-12 16:11:26.078 226 Successfully transferred "/OUT"
. 2017-07-12 16:11:26.078 Could not retrieve directory listing . 2017-07-12 16:11:26.078 Asking user:
. 2017-07-12 16:11:26.078 Error listing directory '/OUT'. ("Could not retrieve directory listing","Successfully transferred ""/OUT""") . 2017-07-12 16:11:26.078 Script: Failed
> 2017-07-12 16:11:26.078 Script: exit
. 2017-07-12 16:11:26.078 Disconnected from server
winscp Could not retrieve directory listing
Best regards
Stefano