Topic "Could not retrieve directory listing error"

Author Message
sherrireid
[View user's profile]

Joined: 2013-10-01
Posts: 7
Location: Seattle, WA
I am using the GUI to connect with version 5.24. I am using FTP/TLS Explicit Encryption. I can connect to the ftp site, but WinSCP is having problems connecting to the correct directory. The error message I get is "Could not retrieve directory listing '/D:Securelink/Logins/hrbrvwmc/D:/Securelink/Logins/hrbrvwmc/": Not a directory or is not accessable.

I've tried going under Advanced -> Directories and unchceking 'Remember last used directory' and wiping out the Remote Directory but no matter what, I get the error message.

I've tried unchecking 'Cache visited remote directories' and 'Permanent Cache' as well, and I still get the same error message.

I know that there isn't anything wrong with the directory structure that I connect to because I can connect to it with no problems if I use FileZilla. (But I don't want to use FileZilla because eventually I want to turn this into a script and automate the FTP... which I can't do with FileZilla)
KeyBank.log (5.05 KB) [Download]

Description: WINSCP log

doc2.doc (373.5 KB) [Download]

Description: Print screens

Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
Thanks for your report. I'll investigate it.
_________________
Martin Prikryl
sherrireid
[View user's profile]

Joined: 2013-10-01
Posts: 7
Location: Seattle, WA
Hi:

I was wondering if you'd had a chance to look at this yet. This problem is holding our project up.

Thanks
Sherri Reid
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
I have sent you an email with a development version of WinSCP to address you have used to register on this forum.
Guest




Hi Martin:

Thanks for working on this. Unfortunately the fix did not resolve the problem. I am attaching the latest log file for your perusal.

Thanks
Sherri Reid
KeyBank.log (8.66 KB) [Download]

Description: Latest log file

martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
Quote:
Thanks for working on this. Unfortunately the fix did not resolve the problem. I am attaching the latest log file for your perusal.

It obviously did resolve the problem. You have a different one now. Possibly a firewall issue. Make sure you use passive FTP mode. Please attach a new log then (even if it works).
sherrireid
[View user's profile]

Joined: 2013-10-01
Posts: 7
Location: Seattle, WA
prikryl wrote:
Quote:
Thanks for working on this. Unfortunately the fix did not resolve the problem. I am attaching the latest log file for your perusal.

It obviously did resolve the problem. You have a different one now. Possibly a firewall issue. Make sure you use passive FTP mode. Please attach a new log then (even if it works).


Well, I am not sure that obvious is the word, since it doesn't appear to have fixed the problem to someone looking at it from this end. Very Happy Let me ask you this. On the new beta version you gave me, it wasn't an installable - so all I did was save the 2 files into the Winscp directory. Was this what I should have done? Maybe this is part of the problem.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
sherrireid wrote:
Well, I am not sure that obvious is the word, since it doesn't appear to have fixed the problem to someone looking at it from this end. Very Happy Let me ask you this. On the new beta version you gave me, it wasn't an installable - so all I did was save the 2 files into the Winscp directory. Was this what I should have done? Maybe this is part of the problem.

That's ok. WinSCP does not need any installation at all.
_________________
Martin Prikryl
Guest




I've attached the log file. I'd also like to remind you that I can connect to the site with FileZilla. So I still think there is a problem with WinSCP.
KeyBank.log (6.52 KB) [Download]

Description: (none)

martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
Again: Please, make sure you use passive FTP mode (btw, that's default for WinSCP, so just revert the changed configuration):
https://winscp.net/eng/docs/ui_login_connection
sherrireid
[View user's profile]

Joined: 2013-10-01
Posts: 7
Location: Seattle, WA
prikryl wrote:
Again: Please, make sure you use passive FTP mode (btw, that's default for WinSCP, so just revert the changed configuration):
https://winscp.net/eng/docs/ui_login_connection


Passive mode did the trick - the new version of WInSCP now connects to the FTP site. Thank you so much!

Sherri Reid
sherrireid
[View user's profile]

Joined: 2013-10-01
Posts: 7
Location: Seattle, WA
Oh Wait! In the previous version when you edited the sessions preferences, it gave you an option to save the session out to a winscp file. This file you would then use as part of your scripting so you could automate the FTP process. I can't find the option to save the session out to a file anymore.

Thanks
Sherri Reid
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
sherrireid wrote:
Oh Wait! In the previous version when you edited the sessions preferences, it gave you an option to save the session out to a winscp file. This file you would then use as part of your scripting so you could automate the FTP process. I can't find the option to save the session out to a file anymore.

There is no (and was no) way to save session settings to a file.
If you want to save session settings to a WinSCP configuration, just press the Save or Save As button.
Guest




prikryl wrote:
sherrireid wrote:
Oh Wait! In the previous version when you edited the sessions preferences, it gave you an option to save the session out to a winscp file. This file you would then use as part of your scripting so you could automate the FTP process. I can't find the option to save the session out to a file anymore.

There is no (and was no) way to save session settings to a file.
If you was to save session settings to a WinSCP configuration, just press the //Save// or //Save As// button.


Yes there was. It created an ini file like I have attached. (I added .txt on the end so I could attach the file to this post)
WinSCP.ini.txt (13.41 KB) [Download]

Description: (none)

martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
That is a whole configuration export (and in this instance there are no session settings at all).
In 5.2.x you can export the configuration using Tools > Export/Backup Configuration on Login dialog.
sherrireid
[View user's profile]

Joined: 2013-10-01
Posts: 7
Location: Seattle, WA
prikryl wrote:
That is a whole configuration export (and in this instance there are no session settings at all).
In 5.2.x you can export the configuration using Tools > Export/Backup Configuration on Login dialog.


OK. So we got the FTP working and we are able to ftp the file to the bank.

The next step is that we need to ftp some files FROM the bank and put them out on a share in our network.

We found out that you can't use a UNC path, so we are mapping a drive in our powershell script so that we can refer to that mapped drive in the Winscp.INI file (attached - remove .txt extension).

If I am in the powershell session I can ask it to repeat back to me what the mapped drive is and I can list the contents of the directory. So I know I've got the mapping done correctly.

The problem that we are having is that WinSCP doesn't seem to be recognizing the mapped drive. The error we get is 'Error changing directory to 'K:\'.'

I wanted to attach a log file from the winscp session but I can't find where to tell winscp that I want it to save a log file and what to name it.
WinSCP.ini.txt (13.05 KB) [Download]

Description: (none)

martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
sherrireid wrote:
We found out that you can't use a UNC path

Why?

Quote:
The problem that we are having is that WinSCP doesn't seem to be recognizing the mapped drive. The error we get is 'Error changing directory to 'K:\'.'

Is the drive mapped in the session in which WinSCP script is running?

Quote:
I wanted to attach a log file from the winscp session but I can't find where to tell winscp that I want it to save a log file and what to name it.

Please read documentation:
https://winscp.net/eng/docs/commandline#logging
_________________
Martin Prikryl
Guest




prikryl wrote:
sherrireid wrote:
We found out that you can't use a UNC path

Why?

Because when we tried it - it said UNC Mapping wasn't allowed.

Quote:
The problem that we are having is that WinSCP doesn't seem to be recognizing the mapped drive. The error we get is 'Error changing directory to 'K:\'.'

Is the drive mapped in the session in which WinSCP script is running?

Yes

Quote:
I wanted to attach a log file from the winscp session but I can't find where to tell winscp that I want it to save a log file and what to name it.

Please read documentation:
https://winscp.net/eng/docs/commandline#logging


I have attached a log file
winscp.log (4.94 KB) [Download]

Description: log file

martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
Quote:
Because when we tried it - it said UNC Mapping wasn't allowed.

Can you please be more specific? What did you try in particular? Can you post an exact error message (there's no similar error message in WinSCP)? Maybe you tried cd to UNC path before you started WinSCP. Windows shell indeed does not support UNC path as a current working directory. But that does not mean you cannot use it in WinSCP script itself.

Quote:
I have attached a log file

Thanks.
I'm sending you a dev version of WinSCP to your email. Can you please provide me a log using that version?
_________________
Martin Prikryl
Guest




Quote:
I'm sending you a dev version of WinSCP to your email. Can you please provide me a log using that version?


I have attached a log file. Also, I can't send you a print screen of tghe UNC error because WinSCP is now throwing up an error and it doesn't get to the point where the directory is set. You can see the error in the log file. Like I said, this is new - there must be an issue with the dev version you sent me.
winscp.log (6.9 KB) [Download]

Description: Log file

martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
It rather looks like a problem on your server:
Quote:
No buffer space available (maximum connections reached?): connect

_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License