Could not get directory listing Error trying to browse directory

Advertisement

RaulSoni
Joined:
Posts:
1
Location:
MEXICO

Could not get directory listing Error trying to browse directory

Hi
Install WinSCP on a PC with Windos 10
1- Configure the Firewall to allow WinSCP applications to pass through the Firewall.

2- Also add a new inbound rule for port 21 for TCP protocol.

3- Also add an exclusion for the WinSCP application in Virus & Threat protection.

But when trying to connect to the server by FTP I get this error:
Disconnected from server
Could not get directory listing
Error trying to browse directory

The solution I found was to turn off the Private Network Firewall and the Public Network Firewall is on.

How can I solve this Error when trying to browse the directory without having to turn off the Private Network firewall ???

Reply with quote E-mail

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
34,943
Location:
Prague, Czechia

Re: Could not get directory listing Error trying to browse directory

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

Guest

Re: Could not get directory listing Error trying to browse directory

I attach the Log you are requesting.
. 2020-11-15 14:27:47.019 --------------------------------------------------------------------------
. 2020-11-15 14:27:47.020 WinSCP Versión 5.17.8 (Compilación 10803) (OS 10.0.18363 - Windows 10 Enterprise)
. 2020-11-15 14:27:47.020 Configuration: nul
. 2020-11-15 14:27:47.021 Log level: Normal
. 2020-11-15 14:27:47.021 Local account: GEMSAPC1\GEMSA
. 2020-11-15 14:27:47.021 Working directory: C:\Respaldo
. 2020-11-15 14:27:47.021 Process ID: 6404
. 2020-11-15 14:27:47.022 Command-line: "C:\Program Files (x86)\WinSCP\WinSCP.exe" /console=5.17.8 /consoleinstance=_7740_261 "/ini=nul" "/log=logftp.txt" "/script=C:\RESPALDO\Script_FTP.txt" 
. 2020-11-15 14:27:47.022 Time zone: Current: GMT-6, Standard: GMT-6 (Hora estándar central (México)), DST: GMT-5 (Hora de verano central (México)), DST Start: 05/04/2020, DST End: 25/10/2020
. 2020-11-15 14:27:47.023 Login time: domingo, 15 de noviembre de 2020 02:27:47 p. m.
. 2020-11-15 14:27:47.023 --------------------------------------------------------------------------
. 2020-11-15 14:27:47.023 Script: Retrospectively logging previous script records:
> 2020-11-15 14:27:47.023 Script: Open FTP://Raul:***@****PCDell.ddns.***/
. 2020-11-15 14:27:47.023 --------------------------------------------------------------------------
. 2020-11-15 14:27:47.023 Session name: Raul@****PCDell.ddns.*** (Ad-Hoc site)
. 2020-11-15 14:27:47.023 Host name: ****PCDell.ddns.*** (Port: 21)
. 2020-11-15 14:27:47.024 User name: Raul (Password: Yes, Key file: No, Passphrase: No)
. 2020-11-15 14:27:47.024 Transfer Protocol: FTP
. 2020-11-15 14:27:47.024 Ping type: Dummy, Ping interval: 30 sec; Timeout: 15 sec
. 2020-11-15 14:27:47.024 Disable Nagle: No
. 2020-11-15 14:27:47.024 Proxy: None
. 2020-11-15 14:27:47.024 Send buffer: 262144
. 2020-11-15 14:27:47.024 UTF: Auto
. 2020-11-15 14:27:47.024 FTPS: None [Client certificate: No]
. 2020-11-15 14:27:47.024 FTP: Passive: Yes [Force IP: Auto]; MLSD: Auto [List all: Auto]; HOST: Auto
. 2020-11-15 14:27:47.024 Local directory: default, Remote directory: home, Update: Yes, Cache: Yes
. 2020-11-15 14:27:47.024 Cache directory changes: Yes, Permanent: Yes
. 2020-11-15 14:27:47.024 Recycle bin: Delete to: No, Overwritten to: No, Bin path: 
. 2020-11-15 14:27:47.024 Timezone offset: 0h 0m
. 2020-11-15 14:27:47.024 --------------------------------------------------------------------------
. 2020-11-15 14:27:47.058 Conectando con ****PCDell.ddns.***...
. 2020-11-15 14:27:47.229 Conectado con ****PCDell.ddns.***. Esperando bienvenida...
< 2020-11-15 14:27:47.243 220-FileZilla Server 0.9.60 beta
< 2020-11-15 14:27:47.243 220-written by Tim Kosse (tim.kosse@filezilla-project.org)
< 2020-11-15 14:27:47.243 220 Please visit https://filezilla-project.org/
> 2020-11-15 14:27:47.243 USER Raul
< 2020-11-15 14:27:47.253 331 Password required for raul
> 2020-11-15 14:27:47.253 PASS ********
< 2020-11-15 14:27:47.382 230 Logged on
> 2020-11-15 14:27:47.382 SYST
< 2020-11-15 14:27:47.390 215 UNIX emulated by FileZilla
> 2020-11-15 14:27:47.390 FEAT
< 2020-11-15 14:27:47.398 211-Features:
< 2020-11-15 14:27:47.398  MDTM
< 2020-11-15 14:27:47.398  REST STREAM
< 2020-11-15 14:27:47.399  SIZE
< 2020-11-15 14:27:47.399  MLST type*;size*;modify*;
< 2020-11-15 14:27:47.399  MLSD
< 2020-11-15 14:27:47.399  UTF8
< 2020-11-15 14:27:47.399  CLNT
< 2020-11-15 14:27:47.399  MFMT
< 2020-11-15 14:27:47.399  EPSV
< 2020-11-15 14:27:47.399  EPRT
< 2020-11-15 14:27:47.399 211 End
> 2020-11-15 14:27:47.399 CLNT WinSCP-release-5.17.8
< 2020-11-15 14:27:47.407 200 Don't care
> 2020-11-15 14:27:47.407 OPTS UTF8 ON
< 2020-11-15 14:27:47.418 202 UTF8 mode is always enabled. No need to send this command.
. 2020-11-15 14:27:47.419 Conectado
. 2020-11-15 14:27:47.419 --------------------------------------------------------------------------
. 2020-11-15 14:27:47.436 Using FTP protocol.
. 2020-11-15 14:27:47.445 Doing startup conversation with host.
> 2020-11-15 14:27:47.447 PWD
< 2020-11-15 14:27:47.456 257 "/" is current directory.
. 2020-11-15 14:27:47.457 Getting current directory name.
. 2020-11-15 14:27:47.457 Startup conversation with host finished.
< 2020-11-15 14:27:47.458 Script: Sesión activa: [1] Raul@****PCDell.ddns.***
> 2020-11-15 14:27:47.460 Script: Put C:\Respaldo\*.* /GEMSA_Server1/*.* 
. 2020-11-15 14:27:47.487 Copying 6 files/directories to remote directory "/GEMSA_Server1/"
. 2020-11-15 14:27:47.488   PrTime: Yes; PrRO: No; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 0100; Resume: S (102400); CalcS: No; Mask: *.*
. 2020-11-15 14:27:47.488   TM: B; ClAr: No; RemEOF: No; RemBOM: No; CPS: 0; NewerOnly: No; EncryptNewFiles: Yes; ExcludeHiddenFiles: No; ExcludeEmptyDirectories: No; InclM: ; ResumeL: 0
. 2020-11-15 14:27:47.488   AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; *.js; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
. 2020-11-15 14:27:47.490 File: 'C:\Respaldo\FTP_Gemsa_PCDell.bat' [2020-11-15T20:26:16.510Z] [102]
. 2020-11-15 14:27:47.492 Copying "C:\Respaldo\FTP_Gemsa_PCDell.bat" to remote directory started.
. 2020-11-15 14:27:47.492 Binary transfer mode selected.
. 2020-11-15 14:27:47.493 Iniciando la subida de C:\Respaldo\FTP_GEMSA_PCDell.bat
> 2020-11-15 14:27:47.493 CWD /GEMSA_Server1
< 2020-11-15 14:27:47.520 250 CWD successful. "/GEMSA_Server1" is current directory.
> 2020-11-15 14:27:47.520 PWD
< 2020-11-15 14:27:47.528 257 "/GEMSA_Server1" is current directory.
> 2020-11-15 14:27:47.535 TYPE I
< 2020-11-15 14:27:47.547 200 Type set to I
> 2020-11-15 14:27:47.547 PASV
. 2020-11-15 14:27:47.555 Desconectado del servidor
. 2020-11-15 14:27:47.555 Ha ocurrido un error al intentar copiar los archivos a la ubicación remota.
. 2020-11-15 14:27:47.574 Connection was lost, asking what to do.
. 2020-11-15 14:27:47.574 Asking user:
. 2020-11-15 14:27:47.574 **La conexión se ha perdido.** ("Desconectado del servidor","Ha ocurrido un error al intentar copiar los archivos a la ubicación remota.")
< 2020-11-15 14:27:47.574 Script: La conexión se ha perdido.
< 2020-11-15 14:27:47.575 Script: Desconectado del servidor

< 2020-11-15 14:27:47.575 Ha ocurrido un error al intentar copiar los archivos a la ubicación remota.
< 2020-11-15 14:27:52.729 Script: Conectando con ****PCDell.ddns.***...
. 2020-11-15 14:27:52.730 Conectando con ****PCDell.ddns.***...
. 2020-11-15 14:27:52.745 Conectado con ****PCDell.ddns.***. Esperando bienvenida...
< 2020-11-15 14:27:52.755 220-FileZilla Server 0.9.60 beta
< 2020-11-15 14:27:52.756 220-written by Tim Kosse (tim.kosse@filezilla-project.org)
< 2020-11-15 14:27:52.756 220 Please visit https://filezilla-project.org/
> 2020-11-15 14:27:52.756 USER Raul
< 2020-11-15 14:27:52.769 331 Password required for raul
> 2020-11-15 14:27:52.769 PASS ********
< 2020-11-15 14:27:52.774 230 Logged on
> 2020-11-15 14:27:52.774 SYST
< 2020-11-15 14:27:52.791 215 UNIX emulated by FileZilla
> 2020-11-15 14:27:52.791 FEAT
< 2020-11-15 14:27:52.800 211-Features:
< 2020-11-15 14:27:52.800  MDTM
< 2020-11-15 14:27:52.800  REST STREAM
< 2020-11-15 14:27:52.800  SIZE
< 2020-11-15 14:27:52.800  MLST type*;size*;modify*;
< 2020-11-15 14:27:52.800  MLSD
< 2020-11-15 14:27:52.800  UTF8
< 2020-11-15 14:27:52.801  CLNT
< 2020-11-15 14:27:52.801  MFMT
< 2020-11-15 14:27:52.801  EPSV
< 2020-11-15 14:27:52.801  EPRT
< 2020-11-15 14:27:52.801 211 End
> 2020-11-15 14:27:52.801 CLNT WinSCP-release-5.17.8
< 2020-11-15 14:27:52.809 200 Don't care
> 2020-11-15 14:27:52.810 OPTS UTF8 ON
< 2020-11-15 14:27:52.815 202 UTF8 mode is always enabled. No need to send this command.
< 2020-11-15 14:27:52.815 Script: Conectado
. 2020-11-15 14:27:52.816 Conectado
. 2020-11-15 14:27:52.816 Doing startup conversation with host.
< 2020-11-15 14:27:52.816 Script: Iniciando la sesión...
> 2020-11-15 14:27:52.817 PWD
< 2020-11-15 14:27:52.825 257 "/" is current directory.
. 2020-11-15 14:27:52.826 Changing directory to "/".
> 2020-11-15 14:27:52.826 CWD /
< 2020-11-15 14:27:52.837 250 CWD successful. "/" is current directory.
. 2020-11-15 14:27:52.838 Getting current directory name.
> 2020-11-15 14:27:52.838 PWD
< 2020-11-15 14:27:52.847 257 "/" is current directory.
. 2020-11-15 14:27:52.847 Startup conversation with host finished.
< 2020-11-15 14:27:52.847 Script: Sesión iniciada.
. 2020-11-15 14:27:52.848 File: 'C:\Respaldo\FTP_Gemsa_PCDell.bat' [2020-11-15T20:26:16.510Z] [102]
. 2020-11-15 14:27:52.849 Copying "C:\Respaldo\FTP_Gemsa_PCDell.bat" to remote directory started.
. 2020-11-15 14:27:52.849 Binary transfer mode selected.
. 2020-11-15 14:27:52.849 Iniciando la subida de C:\Respaldo\FTP_Gemsa_PCDell.bat
> 2020-11-15 14:27:52.850 CWD /GEMSA_Server1
< 2020-11-15 14:27:52.859 250 CWD successful. "/GEMSA_Server1" is current directory.
> 2020-11-15 14:27:52.859 PWD
< 2020-11-15 14:27:52.868 257 "/GEMSA_Server1" is current directory.
> 2020-11-15 14:27:52.868 TYPE A
< 2020-11-15 14:27:52.879 200 Type set to A
> 2020-11-15 14:27:52.879 PASV
. 2020-11-15 14:27:52.890 Desconectado del servidor
. 2020-11-15 14:27:52.890 Ha ocurrido un error al intentar copiar los archivos a la ubicación remota.
. 2020-11-15 14:27:52.891 Connection was lost, asking what to do.
. 2020-11-15 14:27:52.891 Asking user:
. 2020-11-15 14:27:52.891 **La conexión se ha perdido.** ("Desconectado del servidor","Ha ocurrido un error al intentar copiar los archivos a la ubicación remota.")
< 2020-11-15 14:27:52.891 Script: La conexión se ha perdido.
< 2020-11-15 14:27:52.892 Script: Desconectado del servidor

< 2020-11-15 14:27:52.892 Ha ocurrido un error al intentar copiar los archivos a la ubicación remota.

Reply with quote

martin
Site Admin
martin avatar

Re: Could not get directory listing Error trying to browse directory

WinSCP does not even get a response to the PASV command. This does not look like a local machine problem. It's either server-side problem or a network problem. Can you transfer the files to/from the machine using any other FTP client or to/from any other machine or even any other network?

Reply with quote

Advertisement

You can post new topics in this forum